[ 
https://wso2.org/jira/browse/ESBJAVA-559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18776#action_18776
 ] 

Ruwan Linton commented on ESBJAVA-559:
--------------------------------------

Kevin, according to the SOAP11 and SOAP12 specifications it is not possible to 
have headers without namespaces, in other words each and every SOAP header 
block has to be namespace qualified.

There is an issue in the Header mediator, which allows you to add SOAP headers 
without namespaces and it has to be fixed. There is a JIRA for this already in 
Synapse. Please refer to https://issues.apache.org/jira/browse/SYNAPSE-345

Ruwan 

> 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

Reply via email to