[jboss-osgi-issues] [JBoss JIRA] (JBOSGI-560) NullPointerException in AbstractBundleState#ensureResolved if debug logging is enabled

Rico Neubauer (JIRA) jira-events at lists.jboss.org
Thu May 24 09:21:17 EDT 2012


    [ https://issues.jboss.org/browse/JBOSGI-560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694967#comment-12694967 ] 

Rico Neubauer edited comment on JBOSGI-560 at 5/24/12 9:20 AM:
---------------------------------------------------------------

De rien.
On first sight it looks like wiring is null for every fragment bundle. Will prepare an easy host- and fragment-bundle to prove it.
Edit: Not true in general. It does occur with fragments, however not reproducible with a simple bundle+fragment. Will continue investigating.
                
      was (Author: MrEasy):
    De rien.
On first sight it looks like wiring is null for every fragment bundle. Will prepare an easy host- and fragment-bundle to prove it.
                  
> NullPointerException in AbstractBundleState#ensureResolved if debug logging is enabled
> --------------------------------------------------------------------------------------
>
>                 Key: JBOSGI-560
>                 URL: https://issues.jboss.org/browse/JBOSGI-560
>             Project: JBoss OSGi
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Core Framework
>            Reporter: Rico Neubauer
>            Assignee: Thomas Diesler
>              Labels: osgi
>
> Occurs with JBoss 7.1.2.Final (EAP) running with jbosgi-framework 1.3.0.Final
> If debug logging is enabled, method org.jboss.osgi.framework.internal.AbstractBundleState#ensureResolved may throw a NullPointerException in case of "wiring" being null. See stacktrace below.
> Will add a pull request, doing the missing check for null.
> {noformat}
> Caused by: java.lang.NullPointerException
>     at org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:558)
>     at org.jboss.osgi.framework.internal.FallbackLoader.findInUnresolvedModules(FallbackLoader.java:230)
>     at org.jboss.osgi.framework.internal.FallbackLoader.findModuleDynamically(FallbackLoader.java:156)
>     at org.jboss.osgi.framework.internal.FallbackLoader.loadClassLocal(FallbackLoader.java:85)
>     at org.jboss.modules.Module.loadModuleClass(Module.java:535)
>     at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
>     at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
>     at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
>     at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
>     at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
>     at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
>     at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_31]
>     at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_31]
>     at com.company.sth.ConnectionPool.<init>(ConnectionPool.java:131)
> {noformat}

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

        


More information about the jboss-osgi-issues mailing list