File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unclear Axis fault" Watch "Unclear Axis fault" New topic

Unclear Axis fault

Guy Roth
Ranch Hand

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

faultCode: {}Server.userException
faultString: java.lang.NullPointerException

at org.apache.axis.message.SOAPFaultBuilder.createFault(
at org.apache.axis.message.SOAPFaultBuilder.endElement(
at org.apache.axis.encoding.DeserializationContext.endElement(
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(
at org.apache.axis.encoding.DeserializationContext.parse(
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(
at org.apache.axis.Message.getSOAPEnvelope(
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(
at org.apache.axis.client.AxisClient.invoke(
at org.apache.axis.client.Call.invokeEngine(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
at com.actimize.wsclient.AuthServiceSoapBindingStub.login(

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

Joined: Mar 22, 2005
Posts: 42965
Where are you seeing this message? By the way, there is no "middle" here - only a client and server (service).
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
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:
Best wishes!

My free books and tutorials:
I agree. Here's the link:
subject: Unclear Axis fault
It's not a secret anymore!