I have followed
http://java.sun.com/j2se/1.4.2/docs/...dl/GShome.html to build a
corba application. When i run the orb, server and client on the same
machine it works fine.
When i follow this guide
http://java.sun.com/j2se/1.4.2/docs/...2machines.html
to run the orb and server on one machine and the client on another
machine it doesn't work.
The orb and server starts fine but when I start the client i get the
error below.
I have started the orb with orbd -ORBInitialHost 192.168.1.100
-ORBInitialPort 1050 and the server with java HelloServer
-ORBInitialPort 1050
Both systems are Linux Debian with sun j2sdk1.5_1.5.0+update02
Both systems is on an internal lan with ip's 192.168.1.101 and
192.168.1.100 with no firewall and directly connected.
banke@spand# java HelloClient -ORBInitialHost 192.168.1.100
-ORBInitialPort 1050
Dec 17, 2005 11:21:46 PM
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 1049"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.connectFailure(Unknown
Source)
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.connectFailure(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.<init>(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.<init>(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon tactInfoImpl.createConnection(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.beginRequest(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.request(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.is_a(Unknown Source)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextExtHelper.narrow(Un known Source)
at Client.YellowNotesClient.main(YellowNotesClient.ja va:22)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at java.nio.channels.SocketChannel.open(Unknown Source)
at
com.sun.corba.se.impl.transport.DefaultSocketFacto ryImpl.createSocket(Unknown
Source)
... 9 more
Dec 17, 2005 11:21:46 PM
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 1050"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.connectFailure(Unknown
Source)
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.connectFailure(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.<init>(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.<init>(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon tactInfoImpl.createConnection(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.beginRequest(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.beginRequest(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.request(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.is_a(Unknown Source)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextExtHelper.narrow(Un known Source)
at Client.YellowNotesClient.main(YellowNotesClient.ja va:22)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at java.nio.channels.SocketChannel.open(Unknown Source)
at
com.sun.corba.se.impl.transport.DefaultSocketFacto ryImpl.createSocket(Unknown
Source)
... 10 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.logging.ORBUtilSystemExcepti on.connectFailure(Unknown
Source)
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.connectFailure(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.<init>(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.<init>(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon tactInfoImpl.createConnection(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.beginRequest(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.beginRequest(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.request(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.is_a(Unknown Source)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextExtHelper.narrow(Un known Source)
at Client.YellowNotesClient.main(YellowNotesClient.ja va:22)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at java.nio.channels.SocketChannel.open(Unknown Source)
at
com.sun.corba.se.impl.transport.DefaultSocketFacto ryImpl.createSocket(Unknown
Source)
... 10 more