]
Shelly McGowan updated JBASM-35:
--------------------------------
Fix Version/s: 1.0.5.Alpha1
(was: 1.0.4.Final)
CLONE -Allow execution of server:stop for servers that aren't
running
---------------------------------------------------------------------
Key: JBASM-35
URL:
https://issues.jboss.org/browse/JBASM-35
Project: JBoss AS Server Manager
Issue Type: Feature Request
Reporter: Brian Stansberry
Assignee: Shelly McGowan
Fix For: 1.0.5.Alpha1
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.
-
For more information on JIRA, see: