NPE in ResolverImpl.java:1521
afilipchik Feb 7, 2012 11:04 PMHello!
I'm trying to run OSGi version of camel + drools on fuse platform and I'm getting
NPE when trying to install all bundles.
Usually I see in log just -
18:40:31,281 | INFO | l Console Thread | Console | ? ? | 34 - org.apache.karaf.shell.console - 2.2.2.fuse-02-13 | Exception caught while executing command
java.lang.NullPointerException
and this is not very informative.
But today I finally got something:
18:17:16,734 | INFO | l Console Thread | Console | ? ? | 34 - org.apache.karaf.shell.console - 2.2.2.fuse-02-13 | Exception caught while executing command
java.lang.NullPointerException
at org.apache.felix.framework.resolver.ResolverImpl.toStringBlame(ResolverImpl.java:1521)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]
at org.apache.felix.framework.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:943)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]
at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:130)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]
at org.apache.felix.framework.Felix$StatefulResolver.resolve(Felix.java:4042)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3448)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]
at org.apache.felix.framework.Felix.startBundle(Felix.java:1728)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:914)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]
at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:29)[37:org.apache.karaf.shell.osgi:2.2.2.fuse-02-13]
at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:37)[37:org.apache.karaf.shell.osgi:2.2.2.fuse-02-13]
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]
at org.apache.karaf.shell.console.jline.Console.run(Console.java:240)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]
at java.lang.Thread.run(Thread.java:680)[:1.6.0_29]
So, first question - how to enable full logging?
And do you have any ideas what is this exception for?
I saw something similar in felix userlists, and looks like it is fixed startin with 3.3.0 (current verson 4.0.4).