Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Please ask technical questions in the appropriate category. Thank you!

javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRM

3039115Sep 25 2015 — edited Sep 25 2015

Hi

I am trying to do a lookup by using InitialContext, but got below error. The server is running on my localhost and the my application is a standalone app which runs independently. it's a weblogic 10.3 server and my initialcontectfactory is

weblogic.jndi.WLInitialContextFactory

javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:

java.io.EOFException]

at weblogic.jrmp.Context.lookup(Context.java:189)

at weblogic.jrmp.Context.lookup(Context.java:195)

at javax.naming.InitialContext.lookup(InitialContext.java:392)

at com.ml.gmi.eds.nigel.agent.test.AbstractNigelAgent.findServiceHome(AbstractNigelAgent.java:193)

at com.ml.gmi.eds.nigel.agent.test.AbstractNigelAgent.setUp(AbstractNigelAgent.java:137)

at com.ml.gmi.eds.nigel.agent.test.NigelAgent.main(NigelAgent.java:61)

Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:

java.io.EOFException

at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286)

at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)

at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)

at weblogic.jrmp.BaseRemoteRef.invoke(BaseRemoteRef.java:221)

at weblogic.jrmp.RegistryImpl_Stub.lookup(Unknown Source)

at weblogic.jrmp.Context.lookup(Context.java:185)

... 5 more

Caused by: java.io.EOFException

at java.io.DataInputStream.readByte(DataInputStream.java:250)

at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228)

... 10 more

java.lang.Exception

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2015
Added on Sep 25 2015
0 comments
1,997 views