[ https://issues.apache.org/jira/browse/AXIS2-4514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794304#action_12794304 ]
Kent Tong commented on AXIS2-4514: ---------------------------------- Please find it below. It is because the parent of the <usernameToken> is null. Exception in thread "main" java.lang.NullPointerException at org.apache.axiom.om.impl.dom.ChildNode.insertSiblingAfter(ChildNode.java:159) at org.apache.rampart.util.RampartUtil.insertSiblingAfter(RampartUtil.java:713) at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:629) at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:413) at org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:93) at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147) at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64) at org.apache.axis2.engine.Phase.invoke(Phase.java:318) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:416) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at com.ttdev.ss.SecureServiceStub.concat(SecureServiceStub.java:183) at com.ttdev.ss.SecureClient.main(SecureClient.java:29) > Axis1.5 NPE nested down to jdom with working Axis1.4 Rampart Configuration > -------------------------------------------------------------------------- > > Key: AXIS2-4514 > URL: https://issues.apache.org/jira/browse/AXIS2-4514 > Project: Axis2 > Issue Type: Bug > Components: modules > Affects Versions: 1.5 > Environment: Not a development specific issue. > Reporter: Paul R > > There is a very detailed description of the issue at this thread: > http://mail-archives.apache.org/mod_mbox/ws-rampart-dev/200907.mbox/%3c4a7143fd.5090...@wilken.de%3e > I am not one of the two people in that thread but I am experiencing the issue > and have tried to debug the issue by downloading Rampart v1.4 source code. > It would appear that the NPE occurs when the Signed WS-S header is being > added after the Username token has already been added. > I traced the NPE down to RampartUtil: > ((OMElement) child).insertSiblingAfter((OMElement) sibling); > where neither child nor sibling is null so insertSiblingAfter has the NPE. > The thread described above has example policy and configuration files. I had > to downgrade to Axis2 v1.4 and everything started working again. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.