axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anand kadu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RAMPART-198) Rampart 1.4 assumes WSS10 or WSS11 to be present in the policy
Date Wed, 17 Aug 2011 05:44:27 GMT

    [ https://issues.apache.org/jira/browse/RAMPART-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086153#comment-13086153
] 

anand kadu commented on RAMPART-198:
------------------------------------

I am using Axis2 1.5.4 and rampart 1.6.0 .But I am still facing this issue in security. I
am getting following exception
Exception in thread "main" java.lang.NullPointerException
        at org.apache.rampart.util.RampartUtil.setKeyIdentifierType(RampartUtil.java:1333)
        at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:526)
        at org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:90)
        at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
        at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:419)
        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 org.infosys.www.finacle.ACCTSServiceStub.transceive(ACCTSServiceStub.java:181)
        at sampleaxis2project.Main.main(Main.java:107)

> Rampart 1.4 assumes WSS10 or WSS11 to be present in the policy
> --------------------------------------------------------------
>
>                 Key: RAMPART-198
>                 URL: https://issues.apache.org/jira/browse/RAMPART-198
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.4
>            Reporter: Pete K
>            Assignee: S.Uthaiyashankar
>            Priority: Minor
>             Fix For: 1.5.1
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Rampart 1.4 assumes WSS10 or WSS11 to be present in the policy. This is not a mandatory
requirement and we must use defaults if those assertions are not present.
> http://wso2.org/library/3415
> Exception:java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.rampart.util.RampartUtil.setKeyIdentifierType(RampartUtil.java:1141)
> at org.apache.rampart.builder.BindingBuilder.getSignatureBuider(BindingBuilder.java:243)
> at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:626)
> 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:317)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:429)
> at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
> at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
> at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> at com.my.ws.test.JmeterserviceSecStub.addition(JmeterserviceSecStub.java:240)
> at com.my.ws.test.TestClient.main(TestClient.java:57)
> The code appears to want a Wss10 or Wss11 Assertion in the list of assertions on the
message context.
> But there are none so this line causes a null pointer:
> public class RampartUtil
> ...
> public static void setKeyIdentifierType(RampartPolicyData rpd, WSSecBase secBase,org.apache.ws.secpolicy.model.Token
token) {
> ....
> if (wss.isMustSupportRefKeyIdentifier()) {
> Adding this to the policy fixes the error:
>       <sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
 
>         <wsp:Policy>            
>           <sp:MustSupportRefKeyIdentifier/>       
>           <sp:MustSupportRefIssuerSerial/>          
>         </wsp:Policy>       
>       </sp:Wss10>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message