<faultstring>[B2BSERV.0088.9134] Exception occurred while processing the body of the message</faultstring>
becomes
[B2BSERV.0088.9134] Exception occurred while processing the body of the message at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:251)
... etc because the axis client converts SOAP faults back into exceptions. To solve this one you need to fix whatever's causing the real null pointer exception, but the soap fault isn't giving you much help with that. If you can get access to the server logs you should find something there.
Just to reiterate: the previous exception you had was a problem with crimson, this one is a problem with the service you are calling and not a problem in your SOAP frameworks.
- Baz
Reto Badertscher wrote:
Hello,
When using Xerces to parse the following response from a called WS
----Received fromWS (copied from TCPMonitor)--------------------------
HTTP/1.0 500 Internal Server Error?
Set-Cookie: ssnid=335saUhZ9Jym0oNfaUL06hhp+6hhE=5555-10; path=/;?
Content-Type: text/xml?
Connection: Close?
Content-Length: 769?
?
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>[B2BSERV.0088.9134] Exception occurred while processing the body of the message</faultstring>
<faultactor>http://193.5.125.246/soap/rpc</faultactor>
<detail xmlns="http://www.webmethods.com/2001/10/soap/">
<exception>
<className>java.lang.NullPointerException</className>
<message xml:lang="de-CH">
null
</message>
</exception> </detail> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> --------------------------------------------------------------
i'll receive the following error:
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode: faultString: [B2BSERV.0088.9134] Exception occurred while processing the body of the message
faultActor: http://193.5.125.246/soap/rpc
faultNode: faultDetail: {http://www.webmethods.com/2001/10/soap/}exception: <ns1:className>java.lang.NullPointerException</ns1:className>
<ns1:message xml:lang="de-CH" xmlns:xml="http://www.w3.org/XML/1998/namespace">
null
</ns1:message>HTTP/1.0 500 Internal Server Error?
Set-Cookie: ssnid=32AVjYTwbxTyooooP5T2sAhGuTPVc=5555-10; path=/;?
Content-Type: text/xml?
Connection: Close?
Content-Length: 769?
?
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Client</faultcode> <faultstring>[B2BSERV.0088.9134] Exception occurred while processing the body of the message</faultstring> <faultactor>http://193.5.125.246/soap/rpc</faultactor> <detail xmlns="http://www.webmethods.com/2001/10/soap/"> <exception> <className>java.lang.NullPointerException</className> <message xml:lang="de-CH"> null </message> </exception> </detail> </SOAP-ENV:Fault> </SOAP-ENV:Body></SOAP-ENV:Envelope>
[B2BSERV.0088.9134] Exception occurred while processing the body of the message
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:251)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:168)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1001)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
at org.apache.axis.client.Call.invoke(Call.java:2515)
at org.apache.axis.client.Call.invoke(Call.java:2210)
at org.apache.axis.client.Call.invoke(Call.java:2133)
at org.apache.axis.client.Call.invoke(Call.java:1656)
at demo.bc.bank.detail.TestBindingStub.bank_get_detail(TestBindingStub.java:164)
at demo.BankDetailClient.main(BankDetailClient.java:33)
Process terminated with exit code 1
What can i do about this? Thanks for any help
Reto Badertscher