[jboss-user] [Remoting] - Re: Exceptions in calls and callbacks
shdv
do-not-reply at jboss.com
Tue Jun 26 10:17:57 EDT 2007
"tom.elrod at jboss.com" wrote : About the only thing can know for sure is if get a CannotConnectException, the call never reached the server. Anything else would be difficult to know for sure (i.e. if get SocketException, can't be certain that call didn't make it to server).
Why does org.jboss.remoting.Client.invoke() throw Exception when client is not connected? According to the above description it should be CannotConnectExcetption.
I was really disappointed when I got it. My code catches CannotConnectException to handle connection issues.
Since Client is usually wrapped in a proxy, under some circumstances proxy class can wrap it into UndeclaredThrowableException making things even worse.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057730#4057730
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057730
More information about the jboss-user
mailing list