felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Humeniuk (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-3350) ClassNotFoundException missing bundle information when bundle class loader fails to find class
Date Mon, 13 Feb 2012 23:16:59 GMT

    [ https://issues.apache.org/jira/browse/FELIX-3350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207318#comment-13207318

David Humeniuk commented on FELIX-3350:

Should have pasted the entire stack trace, but yes it is coming from the Java serialization
code.  I'm trying to deserialize an object and it needs to load a class.  The class that it
needs to load is in another bundle so I would assume that I need to add an import statement
to wire the missing package.
> ClassNotFoundException missing bundle information when bundle class loader fails to find
> ----------------------------------------------------------------------------------------------
>                 Key: FELIX-3350
>                 URL: https://issues.apache.org/jira/browse/FELIX-3350
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-4.0.2
>            Reporter: David Humeniuk
>            Priority: Minor
> There is code in BundleWiringImpl, line 1460 that will throw a new ClassNotFoundException
with bundle information.  However, I don't see how this code is reached.  A ClassNotFoundException
will be thrown by the boot class loader that is not caught if all other methods fail.  See
partial stack trace below:
> Caused by: java.lang.ClassNotFoundException: org.datanucleus.identity.OIDImpl
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>     at org.apache.felix.framework.BundleWiringImpl.doImplicitBootDelegation(BundleWiringImpl.java:1666)
>     at org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1603)
>     at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1439)

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


View raw message