You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/09/09 15:54:03 UTC

DO NOT REPLY [Bug 12437] New: - Null Pointer in DeserializationContextImpl

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12437>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12437

Null Pointer in DeserializationContextImpl

           Summary: Null Pointer in DeserializationContextImpl
           Product: Axis
           Version: beta-3
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: cmarshall@infoclarus.com


I have a need to create my own servlet that functions as a SOAPServant and the
following code fragment (from the servlet):
            SOAPMessage smsg = 
                mf.createMessage(mh, request.getInputStream());
            SOAPPart sp = smsg.getSOAPPart();
            SOAPEnvelope se = (SOAPEnvelope)sp.getEnvelope();
causes a NullPointer in DeserializationContextImpl at line 160.

Looking at the code it appears that the SOAPPart should have a pointer to a
MessageContext object which with this sequence of code never gets set and thus
is invalid.  Almost the first thing the constructor for
DeserializationContextImpl does is attempt to access the MesssageContext when
the call to the getEnvelope method occurs.