RMI Client: An existing connection was forcibly closed by the remote host
843793Dec 17 2009 — edited Dec 22 2009Hi, 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.