commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BCEL-110) Problem with JAXB if the bcel classloader is used
Date Thu, 13 Aug 2015 09:47:46 GMT

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

Sebb commented on BCEL-110:
---------------------------

I would be happy with that; it will also allow removal of the deprecated method ConstantUtf8.setBytes(String
bytes).

Furthermore, it's very confusing that ClassLoader extends java.lang.ClassLoader!

> Problem with JAXB if the bcel classloader is used
> -------------------------------------------------
>
>                 Key: BCEL-110
>                 URL: https://issues.apache.org/jira/browse/BCEL-110
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: 5.2
>         Environment: Operating System: Windows XP
> Platform: PC
>            Reporter: Oleg Barmin
>            Assignee: Apache Commons Developers
>
> 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)



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

Mime
View raw message