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