You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Rajvanshi, Shashank" <sr...@netegrity.com> on 2003/07/31 20:38:38 UTC

Axis 1.1 bug in SOAPHeaderElement(Element elem) ?

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