Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 11894 invoked from network); 28 Apr 2010 20:56:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Apr 2010 20:56:10 -0000 Received: (qmail 68563 invoked by uid 500); 28 Apr 2010 20:56:10 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 68517 invoked by uid 500); 28 Apr 2010 20:56:10 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 68510 invoked by uid 99); 28 Apr 2010 20:56:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Apr 2010 20:56:10 +0000 X-ASF-Spam-Status: No, hits=-1362.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Apr 2010 20:56:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3SKtmpV012083 for ; Wed, 28 Apr 2010 20:55:48 GMT Message-ID: <21533871.6551272488148082.JavaMail.jira@thor> Date: Wed, 28 Apr 2010 16:55:48 -0400 (EDT) From: "Jarek Gawor (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Created: (GERONIMO-5278) NPE when using Geronimo Karaf shell commands MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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: karaf@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.(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.