This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis - Null pointer exception  RSS feed

 
Suneesh Raman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am getting the exception while running a small program to print the argument passed . I think it is some xml parsing problem . I am using axis1.3 and weblogic 8.1 . Any one can help ?


AxisFault
faultCode {http//schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode
faultString java.lang.NullPointerException
faultActor
faultNode
faultDetail
{http//xml.apache.org/axis/}stackTracejava.lang.NullPointerException
at org.apache.axis.message.MessageElement.addTextNode(Ljava.lang.String;
)Ljavax.xml.soap.SOAPElement;(MessageElement.java1388)
at org.apache.axis.message.SOAPHandler.addTextNode()V(SOAPHandler.java1
48)
at org.apache.axis.message.SOAPHandler.endElement(Ljava.lang.String;Ljav
a.lang.String;Lorg.apache.axis.encoding.DeserializationContext V(SOAPHandler.ja
va112)
at org.apache.axis.encoding.DeserializationContext.endElement(Ljava.lang
.String;Ljava.lang.String;Ljava.lang.String V(DeserializationContext.java1087)

at weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(Lweblogic
.apache.xerces.xni.QName;Lweblogic.apache.xerces.xni.Augmentations V(AbstractSA
XParser.java585)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(Lwebl
ogic.apache.xerces.xni.QName;Lweblogic.apache.xerces.xni.Augmentations;Z)V(XMLNa
mespaceBinder.java898)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(Lweblogic.a
pache.xerces.xni.QName;Lweblogic.apache.xerces.xni.Augmentations V(XMLNamespace
Binder.java644)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndEle
ment()I(XMLDocumentFragmentScannerImpl.java1008)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
ntentDispatcher.dispatch(Z)Z(XMLDocumentFragmentScannerImpl.java1469)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
nt(
 
Jesus Angeles
Ranch Hand
Posts: 2070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many classes are involved(client, web service, handlers)? Just client adn web service?

Maybe you can trace where the null pointer thing happened.

Try debug at the client, and also the the web service; you can do this with simple println.
[ February 02, 2006: Message edited by: Jesus Angeles ]
 
Onkar Shendge
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I faced similar problem with client generated by WSDL2Java tool in Axis 1.1 . It got solved after creating client through WSDL2Java tool in Axis 1.3

You need to call your web service method in following way.

...Stub stub = new ...Stub();
stub.<WSMethod>(...)

Onkar.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!