You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ijaz (JIRA)" <ax...@ws.apache.org> on 2010/09/07 13:04:35 UTC
[jira] Commented: (AXIS-1642) axis.development.system doesn't
supress stack traces
[ https://issues.apache.org/jira/browse/AXIS-1642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906765#action_12906765 ]
Ijaz commented on AXIS-1642:
----------------------------
any comment about this issue?
Is it going to be fixed?
> axis.development.system doesn't supress stack traces
> ----------------------------------------------------
>
> Key: AXIS-1642
> URL: https://issues.apache.org/jira/browse/AXIS-1642
> Project: Axis
> Issue Type: Bug
> Components: Serialization/Deserialization
> Affects Versions: 1.2 Beta
> Reporter: Nelson Minar
>
> I had this problem in 1.2beta1, and another user just reported it on axis-user. As a convenience I'm copying his mail into a Jira bug report.
> http://marc.theaimsgroup.com/?l=axis-user&m=109952829914606&w=2
> I ran into a problem with not being able to stop stack traces from being
> sent to the client even though "axis.development.system" was set to
> false in the wsdd. The beauty of open source is that I've been able to
> trace through the code and figure out what the problem was. The service
> that I'm developing has an onFault handler that had the following line
> of code:
> SOAPFault fault =
> (SOAPFault)ctx.getResponseMessage().getSOAPEnvelope().getBody().getFault();
> Before this call, the response message contained the fault that my
> service had thrown but after the call it contained a copy of the fault.
> Unfortunately, the code that removes the stack trace from the fault
> works on the original, not the copy, so the stack trace is still in the
> response when the response gets sent.
> By changing the above to:
> Object fault_obj =
> ((SOAPPart)ctx.getResponseMessage().getSOAPPart()).getCurrentMessage();
> which does not change the response message. I now simply check whether
> fault_obj is an AxisFault or a SOAPFault and act accordingly.
> Hope this helps others who have run into this problem.
> Dan.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org