IBM Support

UnknownHostException from application client

Troubleshooting


Problem

A WebSphere Application client is unable to connect to a WebSphere Application Server when trying to do a JNDI lookup of an EJB. The root exception is java.net.UnknownHostException.

Symptom

Trace from the Application Server:

1292951558 at host myHost.company.com >> org.omg.CORBA.COMM_FAILURE: vmcid: 0x49421000 minor code: 40 completed: No
at com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRegulator.getException

(OrbWorkloadRegulator.java:814)
at com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRegulator.handleRequest
ForQuiesceRequestedMode(OrbWorkloadRegulator.java:464)
at com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRegulator.handleRequest


(OrbWorkloadRegulator.java:348)
at com.ibm.ws.runtime.workloadcontroller.
OrbWorkloadRequestInterceptor.receive_request

(OrbWorkloadRequestInterceptor.java:44)
at com.ibm.rmi.pi.InterceptorManager.iterateReceiveRequest

(InterceptorManager.java:748)

In an ORB trace
orbtrc.txt:
13:59:07.063 com.ibm.ws.orbimpl.transport.WSTCPTransportConnection createSocket:635 P=545782:O=0:CT ORBRas[default] createSocket

(String host, int port, InetAddress localInetAddress) is not implemented by this transport. Ignoring the value localInetAddress=localhost/127.0.0.1

13:59:09.327 com.ibm.ws.orbimpl.transport.WSTCPTransportConnection connect:467 P=545782:O=0:CT ORBRas[default] java.net.UnknownHostException: myHost
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:176)
at java.net.Socket.connect(Socket.java:459)
at java.net.Socket.connect(Socket.java:409)
at java.net.Socket.<init>(Socket.java:315)

Cause

In the WebSphere Application Server configuration, the serverindex.xml and plugin-cfg.xml had the shortname (myHost) of the server defined for the host rather than the fully qualified hostname (myhost.domainname.com).

Resolving The Problem

Make sure that machine where the client is running from can resolve the shortname of the server machine WebSphere is running on, for instance, updating the machines "hosts" file.

Or

Manually modify the servers serverindex.xml and plugin-cfg.xml files to contain the fully qualified hostname. This name must still be resolvable from the client server.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Application Client","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5.5;8.0;7.0","Edition":"Edition Independent","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

90274;500;000

Document Information

Modified date:
15 June 2018

UID

swg21198886