org.omg.CORBA.TRANSIENT: Connection refused
 Technote (troubleshooting)
 
Problem(Abstract)
Trace from server shows "org.omg.CORBA.TRANSIENT: Connection refused: connect:host=localhost,port=3243 minor code: 4942F301 completed: No
at com.ibm.CORBA.transport.TransportConnectionBase.connect (TransportConnectionBase.java:353)"
 
Cause
The error message indicates you cannot connect to the remote host, but the details show an attempt to connect to the local host. The Object Request Broker (ORB) has received an Interoperable Object Reference (IOR) that includes a remote hostname of "localhost". This is a known problem with Java™ SDK 1.4.1.

When the IOR is populated, the ORB invokes the socket API to get the hostname. The socket API returns the hostname as 'localhost', then sends the IOR to the remote ORB. The remote ORB attempts to connect using the information in the IOR, which is incorrectly set to 'localhost'. In other words, the remote ORB attempts to connect to itself.

 
Resolving the problem
Solution for client EJB™ created in WebSphere® Studio Application Developer:
  1. Edit the server configuration.

  2. Select port settings.

  3. Set the hostname of the WebSphere Application Server:
    • Include the hostname and IP address.
    • Do not use localhost.

If this does not solve the problem:
  1. Select environment tab

  2. Add the system property com.ibm.CORBA.LocalHost with value of the hostname or IP address.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Object Request Broker (ORB)
Operating system(s): Windows
Software version: 5.1.1.1
Software edition:
Reference #: 1179599
IBM Group: Software Group
Modified date: Sep 16, 2004