hi,
i am unable to lookup EJB from standalone EJB Client.
After server started,
On first lookup, i am able to lookup. and able to call amethod on it.(insert the record)
but on second lookup. i am unable to lookup EJB.
EJBclient is deployed in tomcat. And tomcat and glassfish server are on same system.
here is the error stack on tomcat,
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 10.11.32.130; port: 8107"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:131)
at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:220)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:160)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.ndorange.therasystem.services.MPIInitializer.getInstance(MPIInitializer.java:52)
at com.ndorange.therasystem.services.MPIPatientService.addCosPerson(MPIPatientService.java:122)
at com.ndorange.therasystem.services.PatientServiceImpl$MPIRunable.run(PatientServiceImpl.java:3837)
at com.flyinghorsestudios.cyborg.MotorNeuron.run(MotorNeuron.java:73)
at com.flyinghorsestudios.cyborg.glia.BackupExecutor$WorkerThread.run(BackupExecutor.java:113)
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
... 17 more
Caused by: java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:518)
at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
... 18 more
here are the properties i am setting,
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
env.put("org.omg.CORBA.ORBInitialHost", "10.11.32.130");
env.put("org.omg.CORBA.ORBInitialPort", "8107");
env.put("java.naming.factory.url.pkgs","com.sun.enterprise.naming");
env.put("java.naming.factory.state","com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
InitialContext ic = new InitialContext(env);
ProgrammaticLogin programmaticLogin = new ProgrammaticLogin();
Boolean login = programmaticLogin.login(jndiproperties .getString("userid"),jndiproperties.getString("pwd"),"file", false);
logger.debug("login :" + login);
MasterControllerRemote mc = (MasterControllerRemote) ic.lookup("ejb/MasterPatientMasterController");
it is getting hang at this line
mc = (MasterControllerRemote) ic.lookup("ejb/MasterPatientMasterController");
even i have set the iiop listeners to 10.11.32.130 from 0.0.0.0
please help,
Thanks,
Santosh
[Message sent by forum member 'settysantosh' (settysantosh)]
http://forums.java.net/jive/thread.jspa?messageID=330829