XStream
  1. XStream
  2. XSTR-596

unmarhsalling in OSGI (Eclipse 3.5) blows up because of SubjectConverter

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.3
    • Component/s: None
    • Labels:
      None

      Description

      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

        Issue Links

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Anton Kraev
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: