Uploaded image for project: 'Commons BCEL'
  1. Commons BCEL
  2. BCEL-110

Problem with JAXB if the bcel classloader is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.2
    • 6.0
    • Main
    • None
    • Operating System: Windows XP
      Platform: PC

    Description

      When I try to run program with a JAXB code I got an exception if the bcel
      classloader is used.

      Exception in thread "main" java.lang.LinkageError: Class org/xml/sax/InputSource
      violates loader constraints
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at org.apache.bcel.util.ClassLoader.loadClass(ClassLoader.java:127)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
      Source)
      at
      advdebug.config.parser.impl.runtime.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:140)
      at
      javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:131)
      at
      javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:136)
      at
      javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:145)
      at
      javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:163)
      at test.Test.main(Test.java:47)

      Attachments

        Activity

          People

            issues@commons.apache.org Apache Commons Developers
            mail_moderator@mail.ru Oleg Barmin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: