axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Tam" <ken...@proteustech.com>
Subject NullPointerException thrown
Date Fri, 02 Aug 2002 19:29:22 GMT
The following simple code resulted in NullPointerException:

  Message msg = new Message(new SOAPEnvelope());

  msg.getSOAPEnvelope();

produces the following stack trace:

    at
org.apache.axis.encoding.DeserializationContextImpl.<init>(DeserializationCo
ntextImpl.java:160)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:451)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:362)

I am using the Axis beta 3 release. The null exception is triggered because
the MessageContext is null. Is a MessageContext required?

Thanks,
Ken



Mime
View raw message