axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangeeta Chadaga (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-2200) Unable to throw CustomException without hostname and exceptionName being added to details
Date Fri, 20 Jun 2008 21:47:45 GMT

    [ https://issues.apache.org/jira/browse/AXIS-2200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606905#action_12606905
] 

Sangeeta Chadaga commented on AXIS-2200:
----------------------------------------

Any updates on when this will be resolved for Axis 1.4? I see that the AxisServlet/processAxisFault
code removes only the stack trace element from fault details when in production mode but not
the hostname.

> Unable to throw CustomException without hostname and exceptionName being added to details
> -----------------------------------------------------------------------------------------
>
>                 Key: AXIS-2200
>                 URL: https://issues.apache.org/jira/browse/AXIS-2200
>             Project: Axis
>          Issue Type: Bug
>          Components: Basic Architecture
>    Affects Versions: 1.2.1
>         Environment: Windows XP SP1, Sun JDK 1.4.2, JBoss 4.0.2/Tomcat 5.5.9 
>            Reporter: Chris Nappin
>
> When throwing an exception as a fault in Axis, it automatically adds a "hostname" and
"exceptionName" to the "detail" section. Whilst I'm sure this can be really useful for debugging
development systems, it should be possible to turn this behaviour off for a production system.
Perhaps it could be tied to the "axis.development.system" flag, like stack traces in SOAP
faults are?  Below is an example SOAP fault extract thrown by Axis:
> <soapenv:Fault>
>     <faultcode>soapenv:Server.generalException</faultcode>
>     <faultstring/>
>     <detail>
>         <com.test.MyFirstException>
>             <text>Test!</text>
>         </com.test.MyFirstException>
>         <ns1:exceptionName xmlns:ns1="http://xml.apache.org/axis/">
>             com.test.MyFirstException
>         </ns1:exceptionName>
>         <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">
>             PC55-ABMUK
>         </ns2:hostname>
>     </detail>
> </soapenv:Fault>
> This SOAP extract is taken from a fault thrown by an auto-generated exception defined
using the following wsdl:
> <!-- fault element -->
>   <xsd:element name="MyFirstException">
>    <xsd:complexType>
>     <xsd:sequence>
>      <xsd:element name="text" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="false"/>
>     </xsd:sequence>
>    </xsd:complexType>
>   </xsd:element>
> ...
> <message name="MyFirstExceptionFault">
>     <part name="fault" element="typens:MyFirstException"/>
> </message>
> ...
> <portType name="MyPort">
> <operation name="test">
>     <input message="typens:Request"/>
>     <output message="typens:Response"/>
>     <fault name="MySecondException" message="typens:MySecondExceptionFault"/>
> </operation>
> </port>
> ...
> <binding name="MyBinding" type="typens:MyPort">
> 	<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
> 	<operation name="test">
> 	  <input>
> 		<soap:body use="literal"/>
> 	  </input>
> 	  <output>
> 		<soap:body use="literal"/>
> 	  </output>
>           <fault name="MyFirstException">
>                 <soap:fault name="MyFirstException" use="literal"/>
>           </fault>	    
> 	</operation>
>   </binding>

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message