You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2011/05/05 13:52:03 UTC

[jira] [Resolved] (WSS-283) ClassCastException when signing message with existing WSSE header containing Text as first child

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

Colm O hEigeartaigh resolved WSS-283.
-------------------------------------

    Resolution: Fixed

> ClassCastException when signing message with existing WSSE header containing Text as first child
> ------------------------------------------------------------------------------------------------
>
>                 Key: WSS-283
>                 URL: https://issues.apache.org/jira/browse/WSS-283
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Handlers
>    Affects Versions: 1.6
>            Reporter: Anli Shundi
>            Assignee: Colm O hEigeartaigh
>             Fix For: 1.6.1
>
>         Attachments: wss-283.patch
>
>
> WSSecSignature doesn't expect that a text node might be the first child of securityHeader...
> Will submit a patch.
> org.apache.ws.security.WSSecurityException: Signature creation failed; nested exception is: 
> 	java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DeferredTextImpl cannot be cast to org.w3c.dom.Element
> 	at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:515)
> 	at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:442)
> 	at org.apache.ws.security.message.WSSecSignature.build(WSSecSignature.java:348)
> ...
> Caused by: java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DeferredTextImpl cannot be cast to org.w3c.dom.Element
> 	at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:487)
> 	... 24 more

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

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