[ 
https://jira.codehaus.org/browse/XSTR-596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg Schaible resolved XSTR-596.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.x Maintenance

XStream 1.3.3 never existed, so I think this report was for XStream 1.3.1. 
However, that was the first version that actually had a check for the 
availability of the Subject class in the XStream initialization. Unfortunately 
this check did only load the class, but without initializing it. Therefore the 
converter was registered nevertheless and the runtime initialized the class 
later at first access which caused the exception. XStream will now initialize 
the class directly at loading time and ignore any occurring LinkageError 
resulting in a normal failed attempt to locate it.
                
> unmarhsalling in OSGI (Eclipse 3.5) blows up because of SubjectConverter
> ------------------------------------------------------------------------
>
>                 Key: XSTR-596
>                 URL: https://jira.codehaus.org/browse/XSTR-596
>             Project: XStream
>          Issue Type: Bug
>            Reporter: Anton Kraev
>            Assignee: Joerg Schaible
>             Fix For: 1.x Maintenance
>
>
> Here's the stack trace (and I don't need to unmarshal Subjects, but cannot 
> seem to disable that converter)
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Unknown Source)
>       at javax.security.auth.Subject.<clinit>(Subject.java:165)
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Unknown Source)
>       at 
> com.thoughtworks.xstream.converters.extended.SubjectConverter.class$(SubjectConverter.java:42)
>       at 
> com.thoughtworks.xstream.converters.extended.SubjectConverter.canConvert(SubjectConverter.java:42)
>       at 
> com.thoughtworks.xstream.core.DefaultConverterLookup.lookupConverterForType(DefaultConverterLookup.java:60)
>       at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
>       at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>       at com.conceptwave.yaml.XmlConverter.unmarshal(XmlConverter.java:417)
>       at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>       at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>       at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>       at com.conceptwave.yaml.XmlConverter.unmarshal(XmlConverter.java:354)
>       at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>       at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>       at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>       at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
>       at 
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
>       at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
> [... snipped ...]
> Caused by: java.lang.SecurityException: unable to instantiate Subject-based 
> policy
>       at javax.security.auth.Policy.getPolicyNoCheck(Unknown Source)
>       at javax.security.auth.Policy.getPolicy(Unknown Source)
>       at javax.security.auth.SubjectDomainCombiner$5.run(Unknown Source)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.SubjectDomainCombiner.compatPolicy(Unknown 
> Source)
>       at javax.security.auth.SubjectDomainCombiner.<clinit>(Unknown Source)
>       ... 41 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
    <a 
href="http://xircles.codehaus.org/manage_email";>http://xircles.codehaus.org/manage_email</a>
</p>

Reply via email to