Hello,
I am testing a simple Hello World application using Java and CORBA (the source can be found at
http://java.sun.com/j2se/1.4.2/docs/guide/idl/jidlExample.htmlI've gone through all of the steps successfully (IDL to Java compiler, compiling the Java files) and so on, but when I try to run I get a series of errors. On the surface it appears ORB is trying to use my fw0 interface (firewire interface, I'm using a Mac w/ OSX 10.5).
Can you please help me with this?
Here's the output when I run the ORB:
$ orbd -ORBInitialPort 1050 -ORBInitialHost localhost
< no output >
Here's the output when I run the HelloServer application:
n$ java HelloServer -ORBInitialPort 1050 -ORBInitialHost 127.0.0.1
Sep 13, 2008 12:24:34 PM com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 169.254.199.147; port: 1049"
org.omg.CORBA.COMM_FAILURE
: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2172)
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2193)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:20
5)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:21
8)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lContactIn
foImpl.cre
ateConnect
ion(Socket
OrChannelC
ontactInfo
Impl.java:
101)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientRequ
estDispatc
herImpl.be
ginRequest
(CorbaClie
ntRequestD
ispatcherI
mpl.java:1
52)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.r
equest(Cor
baClientDe
legateImpl
.java:118)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.i
s_a(CorbaC
lientDeleg
ateImpl.ja
va:211)
at org.omg.CORBA.portable.Obj
ectImpl._i
s_a(Object
Impl.java:
112)
at org.omg.CosNaming.NamingCo
ntextExtHe
lper.narro
w(NamingCo
ntextExtHe
lper.java:
73)
at HelloServer.main(HelloServ
er.java:54
)
Caused by: java.net.ConnectException:
Operation timed out
at sun.nio.ch.Net.connect(Nat
ive Method)
at sun.nio.ch.SocketChannelIm
pl.connect
(SocketCha
nnelImpl.j
ava:464)
at java.nio.channels.SocketCh
annel.open
(SocketCha
nnel.java:
146)
at com.sun.corba.se.impl.tran
sport.Defa
ultSocketF
actoryImpl
.createSoc
ket(Defaul
tSocketFac
toryImpl.j
ava:60)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:18
8)
... 8 more
Sep 13, 2008 12:25:49 PM com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 169.254.199.147; port: 1050"
org.omg.CORBA.COMM_FAILURE
: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2172)
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2193)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:20
5)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:21
8)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lContactIn
foImpl.cre
ateConnect
ion(Socket
OrChannelC
ontactInfo
Impl.java:
101)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientRequ
estDispatc
herImpl.be
ginRequest
(CorbaClie
ntRequestD
ispatcherI
mpl.java:1
52)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientRequ
estDispatc
herImpl.be
ginRequest
(CorbaClie
ntRequestD
ispatcherI
mpl.java:1
72)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.r
equest(Cor
baClientDe
legateImpl
.java:118)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.i
s_a(CorbaC
lientDeleg
ateImpl.ja
va:211)
at org.omg.CORBA.portable.Obj
ectImpl._i
s_a(Object
Impl.java:
112)
at org.omg.CosNaming.NamingCo
ntextExtHe
lper.narro
w(NamingCo
ntextExtHe
lper.java:
73)
at HelloServer.main(HelloServ
er.java:54
)
Caused by: java.net.ConnectException:
Operation timed out
at sun.nio.ch.Net.connect(Nat
ive Method)
at sun.nio.ch.SocketChannelIm
pl.connect
(SocketCha
nnelImpl.j
ava:464)
at java.nio.channels.SocketCh
annel.open
(SocketCha
nnel.java:
146)
at com.sun.corba.se.impl.tran
sport.Defa
ultSocketF
actoryImpl
.createSoc
ket(Defaul
tSocketFac
toryImpl.j
ava:60)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:18
8)
... 9 more
ERROR: org.omg.CORBA.COMM_FAILURE
: vmcid: SUN minor code: 201 completed: No
org.omg.CORBA.COMM_FAILURE
: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2172)
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2193)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:20
5)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:21
8)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lContactIn
foImpl.cre
ateConnect
ion(Socket
OrChannelC
ontactInfo
Impl.java:
101)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientRequ
estDispatc
herImpl.be
ginRequest
(CorbaClie
ntRequestD
ispatcherI
mpl.java:1
52)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientRequ
estDispatc
herImpl.be
ginRequest
(CorbaClie
ntRequestD
ispatcherI
mpl.java:1
72)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.r
equest(Cor
baClientDe
legateImpl
.java:118)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.i
s_a(CorbaC
lientDeleg
ateImpl.ja
va:211)
at org.omg.CORBA.portable.Obj
ectImpl._i
s_a(Object
Impl.java:
112)
at org.omg.CosNaming.NamingCo
ntextExtHe
lper.narro
w(NamingCo
ntextExtHe
lper.java:
73)
at HelloServer.main(HelloServ
er.java:54
)
Caused by: java.net.ConnectException:
Operation timed out
at sun.nio.ch.Net.connect(Nat
ive Method)
at sun.nio.ch.SocketChannelIm
pl.connect
(SocketCha
nnelImpl.j
ava:464)
at java.nio.channels.SocketCh
annel.open
(SocketCha
nnel.java:
146)
at com.sun.corba.se.impl.tran
sport.Defa
ultSocketF
actoryImpl
.createSoc
ket(Defaul
tSocketFac
toryImpl.j
ava:60)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:18
8)
... 9 more
HelloServer Exiting ...
Here's the output when I run the HelloClient application:
$ java HelloClient -ORBInitialPort 1050 -ORBInitialHost 127.0.0.1
Sep 13, 2008 12:23:27 PM com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 169.254.199.147; port: 1049"
org.omg.CORBA.COMM_FAILURE
: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2172)
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2193)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:20
5)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:21
8)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lContactIn
foImpl.cre
ateConnect
ion(Socket
OrChannelC
ontactInfo
Impl.java:
101)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientRequ
estDispatc
herImpl.be
ginRequest
(CorbaClie
ntRequestD
ispatcherI
mpl.java:1
52)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.r
equest(Cor
baClientDe
legateImpl
.java:118)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.i
s_a(CorbaC
lientDeleg
ateImpl.ja
va:211)
at org.omg.CORBA.portable.Obj
ectImpl._i
s_a(Object
Impl.java:
112)
at org.omg.CosNaming.NamingCo
ntextExtHe
lper.narro
w(NamingCo
ntextExtHe
lper.java:
73)
at HelloClient.main(HelloClie
nt.java:21
)
Caused by: java.net.SocketException: Host is down
at sun.nio.ch.Net.connect(Nat
ive Method)
at sun.nio.ch.SocketChannelIm
pl.connect
(SocketCha
nnelImpl.j
ava:464)
at java.nio.channels.SocketCh
annel.open
(SocketCha
nnel.java:
146)
at com.sun.corba.se.impl.tran
sport.Defa
ultSocketF
actoryImpl
.createSoc
ket(Defaul
tSocketFac
toryImpl.j
ava:60)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:18
8)
... 8 more
Sep 13, 2008 12:23:27 PM com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 169.254.199.147; port: 1050"
org.omg.CORBA.COMM_FAILURE
: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2172)
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2193)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:20
5)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:21
8)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lContactIn
foImpl.cre
ateConnect
ion(Socket
OrChannelC
ontactInfo
Impl.java:
101)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientRequ
estDispatc
herImpl.be
ginRequest
(CorbaClie
ntRequestD
ispatcherI
mpl.java:1
52)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientRequ
estDispatc
herImpl.be
ginRequest
(CorbaClie
ntRequestD
ispatcherI
mpl.java:1
72)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.r
equest(Cor
baClientDe
legateImpl
.java:118)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.i
s_a(CorbaC
lientDeleg
ateImpl.ja
va:211)
at org.omg.CORBA.portable.Obj
ectImpl._i
s_a(Object
Impl.java:
112)
at org.omg.CosNaming.NamingCo
ntextExtHe
lper.narro
w(NamingCo
ntextExtHe
lper.java:
73)
at HelloClient.main(HelloClie
nt.java:21
)
Caused by: java.net.SocketException: Host is down
at sun.nio.ch.Net.connect(Nat
ive Method)
at sun.nio.ch.SocketChannelIm
pl.connect
(SocketCha
nnelImpl.j
ava:464)
at java.nio.channels.SocketCh
annel.open
(SocketCha
nnel.java:
146)
at com.sun.corba.se.impl.tran
sport.Defa
ultSocketF
actoryImpl
.createSoc
ket(Defaul
tSocketFac
toryImpl.j
ava:60)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:18
8)
... 9 more
ERROR : org.omg.CORBA.COMM_FAILURE
: vmcid: SUN minor code: 201 completed: No
org.omg.CORBA.COMM_FAILURE
: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2172)
at com.sun.corba.se.impl.logg
ing.ORBUti
lSystemExc
eption.con
nectFailur
e(ORBUtilS
ystemExcep
tion.java:
2193)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:20
5)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:21
8)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lContactIn
foImpl.cre
ateConnect
ion(Socket
OrChannelC
ontactInfo
Impl.java:
101)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientRequ
estDispatc
herImpl.be
ginRequest
(CorbaClie
ntRequestD
ispatcherI
mpl.java:1
52)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientRequ
estDispatc
herImpl.be
ginRequest
(CorbaClie
ntRequestD
ispatcherI
mpl.java:1
72)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.r
equest(Cor
baClientDe
legateImpl
.java:118)
at com.sun.corba.se.impl.prot
ocol.Corba
ClientDele
gateImpl.i
s_a(CorbaC
lientDeleg
ateImpl.ja
va:211)
at org.omg.CORBA.portable.Obj
ectImpl._i
s_a(Object
Impl.java:
112)
at org.omg.CosNaming.NamingCo
ntextExtHe
lper.narro
w(NamingCo
ntextExtHe
lper.java:
73)
at HelloClient.main(HelloClie
nt.java:21
)
Caused by: java.net.SocketException: Host is down
at sun.nio.ch.Net.connect(Nat
ive Method)
at sun.nio.ch.SocketChannelIm
pl.connect
(SocketCha
nnelImpl.j
ava:464)
at java.nio.channels.SocketCh
annel.open
(SocketCha
nnel.java:
146)
at com.sun.corba.se.impl.tran
sport.Defa
ultSocketF
actoryImpl
.createSoc
ket(Defaul
tSocketFac
toryImpl.j
ava:60)
at com.sun.corba.se.impl.tran
sport.Sock
etOrChanne
lConnectio
nImpl.<ini
t>(SocketO
rChannelCo
nnectionIm
pl.java:18
8)
... 9 more
Thank you in advance for any help you can provide!!!