[jboss-jira] [JBoss JIRA] Created: (JBASM-35) CLONE -Allow execution of server:stop for servers that aren't running
Shelly McGowan (JIRA)
jira-events at lists.jboss.org
Tue Jan 19 15:38:47 EST 2010
CLONE -Allow execution of server:stop for servers that aren't running
---------------------------------------------------------------------
Key: JBASM-35
URL: https://jira.jboss.org/jira/browse/JBASM-35
Project: JBoss AS Server Manager
Issue Type: Feature Request
Reporter: Brian Stansberry
Assignee: Shelly McGowan
Fix For: 1.0.3.GA
See JBAS-7582 for the use case.
If you call server:stop passing the name of a server that isn't running, an ISE is thrown, blowing up the overall testsuite run:
exec-jbmcluster:
[junit] Running org.jboss.test.jbossmessaging.clustertest.ClusteredTestCase
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 19.861 sec
[server:stop] Shutting down server: jbm-cluster1
[server:stop] shutdownTimeout will be=45
[server:stop] Server stopped.
BUILD FAILED
java.lang.IllegalArgumentException: The jbm-cluster2 is not running; it cannot be stopped.
at org.jboss.jbossas.servermanager.ServerController.stopServer(ServerController.java:377)
at org.jboss.jbossas.servermanager.ServerManager.stopServer(ServerManager.java:174)
at org.jboss.ant.taskdefs.server.StopServerTask.stopServer(StopServerTask.java:74)
at org.jboss.ant.taskdefs.server.StopServerTask.execute(StopServerTask.java:61)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
I request that this condition be handled with a log message rather than an ISE.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list