Description
Typing Karaf osgi shell commands such as osgi:list throws NullPointerException:
Error executing command: java.lang.NullPointerException
Stack trace in karaf.log show:
java.lang.NullPointerException at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)[21:org.apache.karaf.shell.console:2.4.0] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)[21:org.apache.karaf.shell.console:2.4.0] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[21:org.apache.karaf.shell.console:2.4.0] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[21:org.apache.karaf.shell.console:2.4.0] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[21:org.apache.karaf.shell.console:2.4.0] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[21:org.apache.karaf.shell.console:2.4.0] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[21:org.apache.karaf.shell.console:2.4.0] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)[21:org.apache.karaf.shell.console:2.4.0] at org.apache.karaf.shell.console.jline.Console.run(Console.java:196)[21:org.apache.karaf.shell.console:2.4.0] at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)[21:org.apache.karaf.shell.console:2.4.0]