-
Notifications
You must be signed in to change notification settings - Fork 9
Not passing causing exceptions to SOAPException makes troubleshooting very difficult #71
Comments
Reported by vanto |
Was assigned to gagordon |
vanto said: |
gagordon said: I am checking with some other folks as to whether there are any problems with adding the nested causes. If there are no concerns, I have the changes made in my local copies of the files and will check them in very soon. However, I need to check with the JAX-WS RI people as to whether this merits a new release, as the needs of JAX-WS RI typically dictate when a new SAAJ-RI release is made. Thanks, |
gagordon said: JAX-WS has added a user configurable System property to enable the inclusion of nested exception information in the stack trace shown in the SOAP fault. Since a SAAJ SOAPMessage could be used as the response in a Provider Web Service implementation, we must abide by the same guidelines. Therefore to fix this properly, we'd both need to add a System property that is false by default and also guard all thrown exceptions with a check for whether this property is set to know whether to include the cause. This could take some time to implement, and given that it does not add to the correct functioning of the code, I am going to unfortunately have to lower the priority on this issue. Given the code is open source and rarely changes, it looks like you have been able to solve your issue for now. I will address the issue as soon as I can, but need to look at the JAX-WS code to understand all the implications. |
gagordon said: |
This issue was imported from java.net JIRA SAAJ-71 |
We recently had to troubleshoot a problem with some XML transformer library, which was being called by SAAJ. The troubleshooting became very painful because SAAJ likes to swallow the causing exception, thus we had a hard time to figure out the root causes, i.e. we had to patch SAAJ in order to get the needed information in the logs.
Please make sure that all caught exceptions that then get translated to SOAPExceptions get passed as the cause argument to the SOAPException.
The text was updated successfully, but these errors were encountered: