This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Help! I caught NullPointException when call axis web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Help! I caught NullPointException when call axis web service" Watch "Help! I caught NullPointException when call axis web service" New topic
Author

Help! I caught NullPointException when call axis web service

Jamy Wang
Ranch Hand

Joined: Sep 21, 2003
Posts: 83
sometimes successed, sometimes failed, drive me crazy...
I trace the log on the server side, it had already normally completed..so why the error occur? I just use the code generated by axis integrated in JBuilder, who can tell me why? thanks in advance!


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

java.lang.NullPointerException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)remote err: java.lang.NullPointerException

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
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:424)
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:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at com.ffcs.epscweb.generated.SPHelperSoapBindingStub.UPGOfflinePay(SPHelperSoapBindingStub.java:218)
at com.ffcs.epscweb.SPTestClient.offlinePay(SPTestClient.java:195)
at com.ffcs.epscweb.SPTestClient.main(SPTestClient.java:43)



Best Regards<br /> <br />SCJP1.4 SCJD1.4 SCEA
Jamy Wang
Ranch Hand

Joined: Sep 21, 2003
Posts: 83
no help?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help! I caught NullPointException when call axis web service
 
Similar Threads
How to pass Java vector to a web service using Apache AXIS
faultString: SOAP-ERROR: Encoding: object hasn't 'code' property
Cannot invoke method get() on null object
Server.userException: Exception while executing Client
Currency Web Service almost there