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

Anli Shundi updated WSS-283:
----------------------------

    Attachment: wss-283.patch

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to