[ http://issues.apache.org/jira/browse/AXIS-2200?page=comments#action_12429705 ] Thibault commented on AXIS-2200: --------------------------------
I don't find the propertie 'axis.addHostnameFaultDetail' in axis 1.4 source code. Is it realy implemented ? Because this bug is fixed !!! > Unable to throw CustomException without hostname and exceptionName being > added to details > ----------------------------------------------------------------------------------------- > > Key: AXIS-2200 > URL: http://issues.apache.org/jira/browse/AXIS-2200 > Project: Apache 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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
