• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Axis - Null pointer exception

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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(
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
today's feeble attempt to support the empire
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic