You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "John Sisson (JIRA)" <de...@geronimo.apache.org> on 2006/07/31 16:00:13 UTC
[jira] Created: (GERONIMO-2250) Error rather than exception from
server whilst deploying causes deployer to hang (not end)
Error rather than exception from server whilst deploying causes deployer to hang (not end)
------------------------------------------------------------------------------------------
Key: GERONIMO-2250
URL: http://issues.apache.org/jira/browse/GERONIMO-2250
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: deployment
Affects Versions: 1.1, 1.0
Reporter: John Sisson
Priority: Minor
Fix For: 1.x
Whilst using the test application attached to GERONIMO-1996 I found that the Error from the server (e.g. java.lang.ExceptionInInitializerError ) caused the thread (see Thread-2 below) to end and the deploy command does not return.
It appears that the run() methods for commands need to catch Throwable rather than Exception so that it can end more gracefully.
Debugger output:
Java HotSpot(TM) Client VM[localhost:8001]
Thread [main] (Suspended)
org.apache.geronimo.deployment.plugin.jmx.RemoteDeploymentManager(org.apache.geronimo.deployment.plugin.jmx.JMXDeploymentManager).distribute(javax.enterprise.deploy.spi.Target[], java.io.File, java.io.File) line: 176
org.apache.geronimo.deployment.cli.CommandDeploy(org.apache.geronimo.deployment.cli.CommandDistribute).runCommand(javax.enterprise.deploy.spi.DeploymentManager, java.io.PrintWriter, boolean, javax.enterprise.deploy.spi.Target[], java.io.File, java.io.File) line: 75
org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(javax.enterprise.deploy.spi.DeploymentManager, java.io.PrintWriter, boolean, javax.enterprise.deploy.spi.Target[], java.io.File, java.io.File) line: 51
org.apache.geronimo.deployment.cli.CommandDeploy(org.apache.geronimo.deployment.cli.CommandDistribute).executeOnline(org.apache.geronimo.deployment.cli.ServerConnection, boolean, java.util.List, java.io.PrintWriter, java.io.File, java.io.File) line: 148
org.apache.geronimo.deployment.cli.CommandDeploy(org.apache.geronimo.deployment.cli.CommandDistribute).execute(java.io.PrintWriter, org.apache.geronimo.deployment.cli.ServerConnection, java.lang.String[]) line: 132
org.apache.geronimo.deployment.cli.CommandDeploy.execute(java.io.PrintWriter, org.apache.geronimo.deployment.cli.ServerConnection, java.lang.String[]) line: 60
org.apache.geronimo.deployment.cli.DeployTool.execute(java.lang.String[]) line: 159
org.apache.geronimo.deployment.cli.DeployTool.main(java.lang.String[]) line: 313
Thread [Thread-1] (Running)
Thread [Connection HeartBeat] (Running)
Thread [Notification Deliverer #1] (Running)
Thread [Notification Fetcher #1] (Running)
Thread [Thread-2] (Suspended (exception java.lang.ExceptionInInitializerError))
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run() line: 65
java.lang.Thread.run() line: not available
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira