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

Colm O hEigeartaigh commented on WSS-576:
-----------------------------------------

You said that "we have flows where needs XML security before WSS4J". In this 
case, you must call WSSec.init *before* the XML Security code is initialized. 
Otherwise WSS4J won't work. The error properties / resources are only 
initialized once between both WSS4J + XML Security, and in this case XML 
Security is initializing them first, which means that the WSS4J error message 
can't be found.

> No message with ID "SECURITY_ERROR" found in resource bundle
> ------------------------------------------------------------
>
>                 Key: WSS-576
>                 URL: https://issues.apache.org/jira/browse/WSS-576
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>    Affects Versions: 2.0.7
>         Environment: Any
>            Reporter: Namrata Jaiswal
>            Assignee: Colm O hEigeartaigh
>            Priority: Critical
>             Fix For: 2.0.8
>
>         Attachments: graycol.gif, graycol.gif
>
>
> When decryption fails Stax API throws unfriendly exception,
> Caused by: javax.xml.stream.XMLStreamException: 
> org.apache.wss4j.common.ext.WSSecurityException: No message with ID 
> "SECURITY_ERROR" found in resource bundle 
> "org/apache/xml/security/resource/xmlsecurity"
>       at 
> org.apache.wss4j.stax.impl.WSSecurityStreamReader.next(WSSecurityStreamReader.java:56)
>       at javax.xml.stream.util.StreamReaderDelegate.next(Unknown Source)
>       at 
> org.apache.axiom.om.impl.builder.SafeXMLStreamReader.next(SafeXMLStreamReader.java:185)
>       at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:639)
>       at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:187)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to