axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kent Tong (JIRA)" <>
Subject [jira] Commented: (AXIS2-4514) Axis1.5 NPE nested down to jdom with working Axis1.4 Rampart Configuration
Date Thu, 24 Dec 2009 03:41:29 GMT


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.rampart.util.RampartUtil.insertSiblingAfter(
	at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(
	at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(
	at org.apache.rampart.handler.RampartSender.invoke(
	at org.apache.axis2.engine.Phase.invoke(
	at org.apache.axis2.engine.AxisEngine.invoke(
	at org.apache.axis2.engine.AxisEngine.send(
	at org.apache.axis2.description.OutInAxisOperationClient.send(
	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
	at org.apache.axis2.client.OperationClient.execute(

> Axis1.5 NPE nested down to jdom with working Axis1.4 Rampart Configuration
> --------------------------------------------------------------------------
>                 Key: AXIS2-4514
>                 URL:
>             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:
> 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.

View raw message