SOAP Header without a namespeace causes a java.lang.NullPointerExceptionl
--------------------------------------------------------------------------
Key: ESBJAVA-559
URL: https://wso2.org/jira/browse/ESBJAVA-559
Project: WSO2 ESB
Issue Type: Bug
Affects Versions: 1.7
Reporter: Kevin Treacy
Assignee: Asankha Perera
The following SOAP header cause a null pointer exception:
<MessageHeader soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0">
<MessageName>...</MessageName>
</MessageHeader>
It appears that the line of code causing the error is
"header.getNamespace().getNamespaceURI()", where "header.getNamespace()" is
returning a null.
Stack trace:
Exception in thread "HttpClientWorker-1" java.lang.NullPointerException
at
org.apache.axiom.soap.impl.llom.RolePlayerChecker.checkHeader(SOAPHeaderImpl.java:113)
at
org.apache.axiom.soap.impl.llom.SOAPHeaderImpl$HeaderIterator.checkHeader(SOAPHeaderImpl.java:192)
at
org.apache.axiom.soap.impl.llom.SOAPHeaderImpl$HeaderIterator.<init>(SOAPHeaderImpl.java:180)
at
org.apache.axiom.soap.impl.llom.SOAPHeaderImpl.getHeadersToProcess(SOAPHeaderImpl.java:293)
at
org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(AddressingInHandler.java:116)
at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at
org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:200)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Esb-java-dev mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-dev