[
https://issues.apache.org/jira/browse/SYNAPSE-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495553
]
Chathura Ekanayake commented on SYNAPSE-99:
-------------------------------------------
This is not a bug in Synapse. This is caused by the Axiom bug
https://issues.apache.org/jira/browse/WSCOMMONS-202, which serializes the fault
detail twice.
However this is fixed in the current Axiom release and will be availabe to
Synapse, when Synapse starts using next Axis2 version.
> When makefault version is set to soap12 the fault detail gets printed twice
> ---------------------------------------------------------------------------
>
> Key: SYNAPSE-99
> URL: https://issues.apache.org/jira/browse/SYNAPSE-99
> Project: Synapse
> Issue Type: Bug
> Environment: Windows XP, JDK1.5, synapse-1.0-RC2-SNAPSHOT
> Reporter: Evanthika Amarasiri
>
> When the version of the makefault mediator is set to soap12 and if the tag
> <detail> is specified, it is printed twice. The configuration is as follows.
> **********************************************************************************************************
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <sequence name="myFaultHandler">
> <makefault version="soap11">
> <code value="tns:Receiver"
> xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
> <reason expression="get-property('ERROR_MESSAGE')"/>
> <detail>This is the detail section of the makefault
> mediator</detail>
> </makefault>
> .
> .
> .
> </definitions>
> **********************************************************************************************************
> and the following is the soap fault which is returned
> ************************************************************************************************************************************************************
> <soapenv:Fault xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Code>
> <soapenv:Value
> xmlns:tns="http://www.w3.org/2003/05/soap-envelope">tns:Receiver</soapenv:Value>
> </soapenv:Code>
> <soapenv:Reason>
> <soapenv:Text>
> <soapenv:Fault
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <faultcode>soapenv:Client</faultcode>
> <faultstring>java.net.UnknownHostException:
> bogus</faultstring>
> <detail />
> </soapenv:Fault>
> </soapenv:Text>
> </soapenv:Reason>
> <soapenv:Detail>This is the detail section of the makefault
> mediatorThis is the detail section of the makefault mediator</soapenv:Detail>
> </soapenv:Fault>
> ************************************************************************************************************************************************************
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]