You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "S.Uthaiyashankar (JIRA)" <ji...@apache.org> on 2010/12/21 11:45:01 UTC

[jira] Resolved: (RAMPART-279) NPE thrown when WS-Trust renew binding implementation

     [ https://issues.apache.org/jira/browse/RAMPART-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

S.Uthaiyashankar resolved RAMPART-279.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: NextVersion
         Assignee: S.Uthaiyashankar  (was: Ruchith Udayanga Fernando)

Resolving the issue since the patch is applied to trunk. 

> NPE thrown when WS-Trust renew binding implementation
> -----------------------------------------------------
>
>                 Key: RAMPART-279
>                 URL: https://issues.apache.org/jira/browse/RAMPART-279
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-trust
>            Reporter: Thilina Buddhika
>            Assignee: S.Uthaiyashankar
>             Fix For: NextVersion
>
>         Attachments: RAMPART-279.patch
>
>
> Following error is thrown when trying to renew tokens as per the WS-Trust Renew binding.
> java.lang.NullPointerException
>         at sun.security.provider.JavaKeyStore$JKS.convertAlias(JavaKeyStore.java:40)
>         at sun.security.provider.JavaKeyStore.engineGetCertificateChain(JavaKeyStore.java:135)
>         at java.security.KeyStore.getCertificateChain(KeyStore.java:756)
>         at org.wso2.carbon.security.util.ServerCrypto.getCertificates(ServerCrypto.java:275)
>         at org.apache.rahas.impl.SAMLTokenIssuer.getServiceCert(SAMLTokenIssuer.java:461)
>         at org.apache.rahas.impl.SAMLTokenIssuer.createHoKAssertion(SAMLTokenIssuer.java:359)
>         at org.apache.rahas.impl.SAMLTokenIssuer.issue(SAMLTokenIssuer.java:167)
>         at org.apache.rahas.TokenRequestDispatcher.handle(TokenRequestDispatcher.java:70)
>         at org.apache.rahas.STSMessageReceiver.invokeBusinessLogic(STSMessageReceiver.java:57)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:178)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
> This is mainly due to a bug in the Token ID extraction logic when generating Rahas Data. In the request for token renewal, the token id is sent as a key identifier. But current implementation does not cover this case. Hence it ends up with a null value as the token identifier.

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org