Context.lookup() - call hangs, no response from the remote side.
843793Aug 10 2008 — edited Apr 17 2009Hi, buddies
I'm really upset very much to have this issue as it's not happened always.:(
I've attached the code below. The program is running at Solaris 10.
....
// Setup naming context
Context namingContext = NamingServerUtilities.getNamingContext(properties
.getProperty("HOSTNAME"), properties.getProperty("NAMING_SERVER_PORT"));
log4jDebugLogger.info("Looking up Process Watchdog...");
processWatchdog = (ProcessWatchdogInterface) PortableRemoteObject.narrow(
namingContext.lookup(ProcessWatchdogInterface.BOUND_NAME),
ProcessWatchdogInterface.class);
....
The program hangs after the higlighted codes...I tried to kill -QUIT the process and found
*"main" prio=10 tid=0x00031400 nid=0x2 in Object.wait() [0xfe77f000..0xfe77fd88]*
* java.lang.Thread.State: WAITING (on object monitor)*
* at java.lang.Object.wait(Native Method)*
* - waiting on <0xf40dc328> (a java.lang.Object)*
* at java.lang.Object.wait(Object.java:485)*
* at com.sun.corba.se.impl.transport.CorbaResponseWaitingRoomImpl.waitForResponse(CorbaResponseWaitingRoomImpl.java:140)*
- locked <0xf40dc328> (a java.lang.Object)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.waitForResponse(SocketOrChannelConnectionImpl.java:1058)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.waitForResponse(CorbaMessageMediatorImpl.java:253)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete1(CorbaClientRequestDispatcherImpl.java:349)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:323)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:213)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:472)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:523)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:501)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.nortel.cdma.app.cemsadmin.SystemAdminClientApp.connectProcessManagement(SystemAdminClientApp.java:743)
at com.nortel.cdma.app.cemsadmin.SystemAdminClientApp.startupApplication(SystemAdminClientApp.java:652)
at com.nortel.cdma.gsf.util.Application.run(Application.java:470)
at com.nortel.cdma.gsf.util.Application.main(Application.java:130)
at com.nortel.cdma.app.cemsadmin.SystemAdminClientApp.main(SystemAdminClientApp.java:576)
Does anyone have ideas about the Corba call above?
Thanks in advanced.