You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2008/09/29 15:22:44 UTC
[jira] Commented: (WSS-41) WSDoAllReceiver throws NPE if older
WssNS is used
[ https://issues.apache.org/jira/browse/WSS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635378#action_12635378 ]
Colm O hEigeartaigh commented on WSS-41:
----------------------------------------
Does one of the Axis devs feel like tackling this one?
> WSDoAllReceiver throws NPE if older WssNS is used
> -------------------------------------------------
>
> Key: WSS-41
> URL: https://issues.apache.org/jira/browse/WSS-41
> Project: WSS4J
> Issue Type: Bug
> Reporter: Yevgeny Rouban
> Priority: Minor
> Fix For: 1.5.5
>
>
> In the following part of the WSDoAllReceiver I encountered a NullPointerException (headerElement == null
> ath the last command) because my SOAP envelope had wsseNS other than WSConstants.WSSE_NS.
> Actually that was set to WSSE_NS_OASIS_2003_06. So I suggest to change
> hE.getNamespaceURI().equals(WSConstants.WSSE_NS)
> to
> hE.getNamespaceURI().equals(reqData.getWssConfig().getWsseNS())
> ---------------------------------------- WSDoAllReceiver.java
> Iterator headers = sHeader.examineHeaderElements(actor);
> SOAPHeaderElement headerElement = null;
> while (headers.hasNext()) {
> org.apache.axis.message.SOAPHeaderElement hE = (org.apache.axis.message.SOAPHeaderElement) headers.next();
> if (hE.getLocalName().equals(WSConstants.WSSE_LN)
> && hE.getNamespaceURI().equals(WSConstants.WSSE_NS)) {
> headerElement = hE;
> break;
> }
> }
> ((org.apache.axis.message.SOAPHeaderElement) headerElement)
> .setProcessed(true);
> ----------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org