UnmarshalException: Error unmarshaling return header; Connection reset
843793Jan 21 2010 — edited Jan 23 2010Hi,
I have an RMI client running under Tomcat,
When I restart the server the client gets this exception:
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.io.IOException: Connection reset by peer
The client and the server had a peer to peer connection, and I have a re-connect logic on my client, but it didn't catch this exception since it is "UnmarshalException" and not "MarshalException" like I am used to in this scenario.
What can cause the peer to be reset? any other solution besides looking up the stub again?
Edited by: yaog on Jan 21, 2010 7:47 AM