Re: How to respond to UnmarshalExceptions...

Robert DiFalco <[email protected]>
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Oddly enough, there is no exception on the server side.

-----Original Message-----
From: Ben Keeping [mailto:[email protected]] 
Sent: Thursday, August 25, 2005 12:13 PM
To: Robert DiFalco; [email protected]
Subject: RE: How to respond to UnmarshalExceptions...

My thoughts are, for that particular exception, your physical TCP/IP
connection with the remote server broke (for whatever reason) - and
there is no actual way to know if your method call actually executed or
not (reliably). 

You need to catch these exceptions server-side and rollback any
updates/changes done by the call.

Could be wrong though !

-----Original Message-----
From: Robert DiFalco [mailto:[email protected]]
Sent: Thu 8/25/2005 6:39 PM
To: [email protected]
Subject: How to respond to UnmarshalExceptions...
 
When I make a call to a server and I get an UnmarshalException, is there
anyway to know if the call executed on the server and had a connection
error returning the result value (in which case I don't really need to
"retry" or if the call did not execute on the server and I should retry?
This seems like a fairly important distinction when dealing with errors.
Thoughts?

 java.rmi.UnmarshalException: Error unmarshaling return header; nested
exception is: 
        java.net.SocketException: Broken pipe
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:203
)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
        at
com.tripwire.space.services.server.ServerService_Stub.exec(Unknown
Source)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)

========================================================================
===
To unsubscribe, send email to [email protected] and include in the
body of the message "signoff RMI-USERS".  For general help, send email
to [email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.