[ https://issues.apache.org/jira/browse/WSS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh updated WSS-41: ----------------------------------- Fix Version/s: (was: 1.5.5) Leaving this one for a future release. > 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 > > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]