So, does anybody know if this is a confirmed bug?

I'm having exactly the same problem.
I create org.w3c.dom.Element from XML string (SAML).

Thanks,
Eugene

List:     axis-user
Subject:  Axis 1.1 bug in SOAPHeaderElement(Element elem) ?
From:     "Rajvanshi, Shashank" <srajvanshi () netegrity ! com>
Date:     2003-07-31 18:38:38
[Download message RAW]

I am using Axis 1.1 for doing SOAP message handling. I get a
java.lang.NullPointerException at
org.apache.axis.message.SOAPHeaderElement.<init>(SOAPHeaderElement.java:109)

I looked at the code and it is happening at line where Namespace URI is
being checked without checking if it could be  NULL. It is returning as null
in my environment and as a result it is throwing null pointer exception. 

SOAPHeaderElement.java:109
if
(getNamespaceURI().equals(SOAPConstants.SOAP12_CONSTANTS.getEnvelopeURI()))
            soapConstants = SOAPConstants.SOAP12_CONSTANTS;


After putting a check to see if it is null, it is working fine.
I think this is a bug unless this method should always return some value.

Any comments?

Thanks,
Shashank

Reply via email to