[
https://wso2.org/jira/browse/ESBJAVA-559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18795#action_18795
]
Kevin Treacy commented on ESBJAVA-559:
--------------------------------------
Just to clarify, the bug is happening on a response message. So I understand
that this response message does not comply with the SOAP11 and/orSOAP12 spec
for namespaces on headers, but we do not own the service that is being proxied
so we would have to ask the service owner to fix the headers in their response
message to comply with the specs. This a reasonable request, but not something
that I can control. So as it stands currently we can not use the ESB to
front-end this service because of this bug.
> 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: Ruwan Linton
>
> 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