It's not a secret anymore!*
The moose likes Web Services and the fly likes Unclear Axis fault Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unclear Axis fault" Watch "Unclear Axis fault" New topic
Author

Unclear Axis fault

Guy Roth
Ranch Hand

Joined: Aug 09, 2009
Posts: 74
I got this error:

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:ilva1rcmbuilds

java.lang.NullPointerException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
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.XML11Configuration.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:375)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.actimize.wsclient.AuthServiceSoapBindingStub.login(AuthServiceSoapBindingStub.java:182)


Does it mean that the error happened in the Client side, in the Server side or not in any side but in the Axis framework that in the middle?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42601
    
  65
Where are you seeing this message? By the way, there is no "middle" here - only a client and server (service).


Ping & DNS - my free Android networking tools app
Guy Roth
Ranch Hand

Joined: Aug 09, 2009
Posts: 74
I see this in the client side console.
The middle is the Axis framework that deliver the message between the two sides of my application. It can produce an internal exeptions too...
Guy Roth
Ranch Hand

Joined: Aug 09, 2009
Posts: 74
I investigated my specific probelm.

The answer is that this error is a NullPointerException that come from inside the service of the server side.

It's not obvious to understand it from Axis error message, but I assume now that 'userException' is exception that comes from the server's service.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
If you receive a SOAP fault, then that means that your SOAP request reached at least an intermediary. If you have no intermediaries, then it reached the server and was processed by the server. The SOAP 1.1 specification says this about the Server fault code:

The Server class of errors indicate that the message could not be processed for reasons not directly attributable to the contents of the message itself but rather to the processing of the message. For example, processing could include communicating with an upstream processor, which didn't respond. The message may succeed at a later point in time. See also section 4.4 for a description of the SOAP Fault detail sub-element.

Translated, this means that your server blew up when processing the request due to some internal error.
See this link for more details:
http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383507
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unclear Axis fault