I would check axis2.xml and set both true. Josef <!-- During a fault, stack trace can be sent with the fault message. The following flag will control --> - <!-- that behavior. --> <parameter name="sendStacktraceDetailsWithFaults">true</parameter> - <!-- If there aren't any information available to find out the fault reason, we set the message of the exception --> - <!-- as the faultreason/Reason. But when a fault is thrown from a service or somewhere, it will be --> - <!-- wrapped by different levels. Due to this the initial exception message can be lost. If this flag --> - <!-- is set, then Axis2 tries to get the first exception and set its message as the faultreason/Reason. --> <parameter name="DrillDownToRootCauseForFaultReason">true</parameter>
-----Ursprüngliche Nachricht----- Von: Trenton D. Adams [mailto:tre...@athabascau.ca] Gesendet: Donnerstag, 24. Mai 2012 18:47 An: java-user@axis.apache.org Betreff: exception messages Hello, I'm using axis 1.6.1. Is there a way that I can have an exception message get through to the client? All I get is a notification that there was an exception, but it does not contain the actual message of the exception, even though the response shows an exception. Here's an example response, in which an axis generated client (from WSDL) does not display the actual message returned. We just receive a stack trace with no actual message. <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server</faultcode> <faultstring>java.sql.SQLException: ORA-02291: integrity constraint (SATURN.SYS_C0065841) violated - parent key not found ORA-06512: at "WEBBANNER.WEB_EXAMS", line 447 ORA-06512: at line 1 </faultstring> <detail> <ns:ExamRequestUpdateSQLException xmlns:ns="http://update.request.exam.athabascau.ca"> <SQLException xmlns="http://update.request.exam.athabascau.ca" xmlns:ax29="http://rmi.java/xsd" xmlns:ax213="http://sql.java/xsd" xmlns:ax210="http://io.java/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax213:SQLException"> <ax213:SQLState xsi:nil="true"/> <ax213:errorCode>0</ax213:errorCode> <ax213:nextException xsi:nil="true"/> </SQLException> </ns:ExamRequestUpdateSQLException> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> We get a stack trace like this... ca.athabascau.exam.request.update.ExamRequestUpdateSQLExceptionException: ExamRequestUpdateSQLExceptionException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at ca.athabascau.exam.request.update.ExamRequestUpdateStub.update(ExamRequestUpdateStub.java:222) at ca.athabascau.exam.request.transfer.cronjob.Main.updateRequest(Main.java:204) at ca.athabascau.exam.request.transfer.cronjob.Main.main(Main.java:123) Thanks. -- Trenton D. Adams Senior Systems Analyst/Web Software Developer Navy Penguins at your service! Athabasca University (780) 675-6195 :wq! -- This communication is intended for the use of the recipient to whom it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communications received in error, or subsequent reply, should be deleted or destroyed. --- --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org