NPE when using Geronimo Karaf shell commands
--------------------------------------------
Key: GERONIMO-5278
URL: https://issues.apache.org/jira/browse/GERONIMO-5278
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: commands
Affects Versions: 3.0
Reporter: Jarek Gawor
In certain circumstances I see the following exception when executing any
Geronimo Karaf shell commands:
ka...@root> deploy:list-modules -u system -w manager
Connecting to Geronimo server: localhost:1099
2010-04-28 16:33:42,684 ERROR [BaseDeploymentFactory]
java.lang.NullPointerException
at
javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2327)
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:279)
at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at
org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.newRemoteDeploymentManager(BaseDeploymentFactory.java:185)
at
org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.getDeploymentManager(BaseDeploymentFactory.java:140)
at
javax.enterprise.deploy.shared.factories.DeploymentFactoryManager.getDeploymentManager(DeploymentFactoryManager.java:111)
at
org.apache.geronimo.deployment.cli.OnlineServerConnection.tryToConnect(OnlineServerConnection.java:153)
at
org.apache.geronimo.deployment.cli.OnlineServerConnection.<init>(OnlineServerConnection.java:92)
at
org.apache.geronimo.shell.deploy.ConnectCommand.openConnection(ConnectCommand.java:153)
at
org.apache.geronimo.shell.deploy.ConnectCommand.connect(ConnectCommand.java:93)
at
org.apache.geronimo.shell.deploy.ListModulesCommand.doExecute(ListModulesCommand.java:54)
at
org.apache.felix.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:34)
at
org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:45)
at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:211)
at
org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:146)
at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:91)
at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:75)
at
org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
at
org.apache.felix.karaf.shell.console.jline.Console.run(Console.java:177)
at java.lang.Thread.run(Thread.java:619)
This only happens when executing the Geronimo shell command in a running server
shell and with embedded mode turned off (by modifying code at this point).
As far as I can tell some JNDI lookup does not return the right thing (null
instead of the JMXConnector instance) but it's hard to tell since most of the
stuff happens in Sun's code.
This is not a critical problem now since the Geronimo shell commands should
work fine in embedded mode.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.