Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMI Client: An existing connection was forcibly closed by the remote host

843793Dec 17 2009 — edited Dec 22 2009
Hi, I enabled server rmi trace and see that it prints the following:

java.rmi.NoSuchObjectException: no such object in table
at sun.rmi.transport.Transport.serviceCall(Transport.java:135)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)


However, the client only sees this exception:

java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.IOException: An existing connection was forcibly closed by the remote host

when my client tries to re-connect, still the same error. only client full restart enables it to continue working. please advise.

I am using the rmiregistry as an external process. java 6 update 14.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2010
Added on Dec 17 2009
16 comments
1,553 views