Uploaded image for project: 'JBoss OSGi'
  1. JBoss OSGi
  2. JBOSGI-560

NullPointerException in AbstractBundleState#ensureResolved if debug logging is enabled

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: framework
    • Labels:

      Description

      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.

      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)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                thomas.diesler Thomas Diesler
                Reporter:
                MrEasy Rico Neubauer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: