Hi to the list,
I have a service implementation which throws an UserException (MyException
extends RemoteException).
All works fine, but in the response I could not find my individual message and
details. It just looks like this:
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>unknown</faultstring>
<detail>
<Exception>
org.apache.axis2.AxisFault
at
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
....
</Exception>
</detail>
</soapenv:Fault>
....
I debugged the service, and in class
RawXMLINOutMessageReceiver::invokeBusinessLogic() my service-method is called
and throws the exception. The exception is of type InvocationTargetException
and has as a member variable called "target" my userdefined excpetion, with all
the details and messages I defined.
invokeBusinessLogic() catches this exception and throws an AxisFault using my
userException, like this:
throw new AxisFault(e.getMessage());
The message member of the InvocationTargetException is null !! so all my user
definitions are gone.
Could someone please shed some light on this. Is there any other setting I
missed.
I nearly grow insane with that.
By the way, the strange thing is that the faultCode says soapenv:Client !!!
Thanks a lot for any hints.
I was not able to find any tutorial or HowTo on ErrorHandling in Axis...?!
Bille
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]