-
1. Re: Catching org.apache.cxf.interceptor.Fault: Connection refused
osltops Mar 8, 2013 9:09 AM (in response to minibiti)I found the answer to my own question...
The reason why the exception was not caught it because the exception is not under java.lang.Exception but under java.lang.Error (both superseeded by java.lang.Throwable).
Indeed, and for some very murky reasons, the exception return by my CXF client when I try to call a web service on a server which is down, is "java.lang.LinkageError: javax/xml/soap/SOAPFault"
So if I add the following catch in my processor I do catch the error:
} catch (LinkageError le) {
This is a bit risky because such high level exception usually mean that something really wrong is going on in the code.
-
2. Re: Catching org.apache.cxf.interceptor.Fault: Connection refused
ffang Mar 11, 2013 4:12 AM (in response to osltops)For better track, the "java.lang.LinkageError: javax/xml/soap/SOAPFault" is further discussed at
http://fusesource.com/forums/thread.jspa?threadID=4684
Freeman