ServiceMix
  1. ServiceMix
  2. SM-2206

An exception is thrown in the console

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Component/s: None
    • Labels:
      None

      Description

      ERROR: Bundle org.apache.activemq.activemq-core [55] EventDispatcher: Error during dispatch. (java.lang.NullPointerException)
      java.lang.NullPointerException
      at org.apache.felix.framework.resolver.ResolverImpl.toStringBlame(ResolverImpl.java:1583)
      at org.apache.felix.framework.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:924)
      at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:171)
      at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:4103)
      at org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1412)
      at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:734)
      at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
      at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
      at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1619)
      at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:900)
      at org.apache.activemq.util.osgi.Activator.isImportingClass(Activator.java:213)
      at org.apache.activemq.util.osgi.Activator.isImportingUs(Activator.java:205)
      at org.apache.activemq.util.osgi.Activator.register(Activator.java:105)
      at org.apache.activemq.util.osgi.Activator.bundleChanged(Activator.java:97)
      at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
      at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3761)
      at org.apache.felix.framework.Felix.access$600(Felix.java:80)
      at org.apache.felix.framework.Felix$FelixResolver.fireResolvedEvents(Felix.java:4299)
      at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:4065)
      at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3439)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
      at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
      at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
      at java.lang.Thread.run(Thread.java:662)
      registering compiler services
      registering api : org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl@1fff962 : interface org.drools.builder.KnowledgeBuilderFactoryService
      compiler services registered
      registering core services
      registering api : org.drools.io.impl.ResourceFactoryServiceImpl@1faf9eb : interface org.drools.io.ResourceFactoryService
      registering api : org.drools.impl.KnowledgeBaseFactoryServiceImpl@126557e : interface org.drools.KnowledgeBaseFactoryService
      registering api : org.drools.marshalling.impl.MarshallerProviderImpl@45265a : interface org.drools.marshalling.MarshallerProvider
      registering api : org.drools.marshalling.impl.MarshallerProviderImpl@45265a : interface org.drools.marshalling.MarshallerProvider
      core services registered
      registering decision tables drools services
      registering compiler : org.drools.decisiontable.DecisionTableProviderImpl@114db2a : interface org.drools.compiler.DecisionTableProvider
      registering api : org.drools.decisiontable.DecisionTableProviderImpl@114db2a : interface org.drools.compiler.DecisionTableProvider
      drools decision tables services registered

        Activity

        Hide
        Freeman Fang added a comment -

        This is actually a felix issue[1] which get fixed by felix framework 4.0.3, which will be used when Servicemix 5 get released

        [1]https://issues.apache.org/jira/browse/FELIX-3003

        Show
        Freeman Fang added a comment - This is actually a felix issue [1] which get fixed by felix framework 4.0.3, which will be used when Servicemix 5 get released [1] https://issues.apache.org/jira/browse/FELIX-3003
        Hide
        Walid Joseph Gedeon added a comment -

        Hello, I have a similar exception when installing ehcache on 4.4.2

        smx@root> install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache/2.6.6_1
        ERROR: Bundle org.apache.activemq.activemq-core [49] EventDispatcher: Error during dispatch. (java.lang.NullPointerException)
        java.lang.NullPointerException
        at org.apache.felix.framework.resolver.ResolverImpl.permutateIfNeeded(ResolverImpl.java:1156)
        at org.apache.felix.framework.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1085)
        at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:171)
        at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:4103)
        at org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1412)
        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:734)
        at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
        at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
        at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1619)
        at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:900)
        at org.apache.activemq.util.osgi.Activator.isImportingClass(Activator.java:213)
        at org.apache.activemq.util.osgi.Activator.isImportingUs(Activator.java:205)
        at org.apache.activemq.util.osgi.Activator.register(Activator.java:105)
        at org.apache.activemq.util.osgi.Activator.bundleChanged(Activator.java:97)
        at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3761)
        at org.apache.felix.framework.Felix.access$600(Felix.java:80)
        at org.apache.felix.framework.Felix$FelixResolver.fireResolvedEvents(Felix.java:4299)
        at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:4065)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3439)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:918)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
        at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:55)
        at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
        at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:218)
        at java.lang.Thread.run(Thread.java:679)
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.doRun(ShellFactoryImpl.java:142)
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4$1.run(ShellFactoryImpl.java:133)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:357)
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.run(ShellFactoryImpl.java:131)

        Show
        Walid Joseph Gedeon added a comment - Hello, I have a similar exception when installing ehcache on 4.4.2 smx@root> install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache/2.6.6_1 ERROR: Bundle org.apache.activemq.activemq-core [49] EventDispatcher: Error during dispatch. (java.lang.NullPointerException) java.lang.NullPointerException at org.apache.felix.framework.resolver.ResolverImpl.permutateIfNeeded(ResolverImpl.java:1156) at org.apache.felix.framework.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1085) at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:171) at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:4103) at org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1412) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:734) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1619) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:900) at org.apache.activemq.util.osgi.Activator.isImportingClass(Activator.java:213) at org.apache.activemq.util.osgi.Activator.isImportingUs(Activator.java:205) at org.apache.activemq.util.osgi.Activator.register(Activator.java:105) at org.apache.activemq.util.osgi.Activator.bundleChanged(Activator.java:97) at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729) at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610) at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3761) at org.apache.felix.framework.Felix.access$600(Felix.java:80) at org.apache.felix.framework.Felix$FelixResolver.fireResolvedEvents(Felix.java:4299) at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:4065) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3439) at org.apache.felix.framework.Felix.startBundle(Felix.java:1734) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:918) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905) at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:55) at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38) at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35) at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78) at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400) at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) at org.apache.karaf.shell.console.jline.Console.run(Console.java:218) at java.lang.Thread.run(Thread.java:679) at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.doRun(ShellFactoryImpl.java:142) at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4$1.run(ShellFactoryImpl.java:133) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:357) at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.run(ShellFactoryImpl.java:131)
        Hide
        Rubin C Roy added a comment -

        i'm using apache service mix 4.4 and i'm getting this error while i'm running my integration engine...

        Show
        Rubin C Roy added a comment - i'm using apache service mix 4.4 and i'm getting this error while i'm running my integration engine...
        Hide
        Freeman Fang added a comment -

        Hi,

        Could you please elaborate which Servicemix version you're using and how to reproduce this NPE?

        Freeman

        Show
        Freeman Fang added a comment - Hi, Could you please elaborate which Servicemix version you're using and how to reproduce this NPE? Freeman

          People

          • Assignee:
            Freeman Fang
            Reporter:
            Rubin C Roy
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development