]
Kabir Khan resolved WFLY-9635.
------------------------------
Fix Version/s: 12.0.0.CR1
Resolution: Done
I am resolving as this looks fixed in a core version consumed by WildFly
jdr throws IllegalArgumentException if server is not started
------------------------------------------------------------
Key: WFLY-9635
URL:
https://issues.jboss.org/browse/WFLY-9635
Project: WildFly
Issue Type: Bug
Components: JDR
Reporter: Marek Kopecký
Assignee: Jean-Francois Denise
Priority: Blocker
Fix For: 12.0.0.CR1
Attachments: jboss-eap-7.1.0.log, wildfly-11.0.0.Final.log
*Description of the issue:*
jdr throws IllegalArgumentException if server is not started
*Steps to reproduce:*
# do *not* start the server
# ./jdr.sh
*Actual results:*
{noformat}
[mkopecky@dhcp-10-40-4-226 bin]$ ./jdr.sh
Initializing JBoss Diagnostic Reporter...
Trying to connect to http-remoting localhost:9990
Starting embedded server
Exception for embed-server --std-out=echo : Task java.util.concurrent.FutureTask@6631f5ca
rejected from java.util.concurrent.ThreadPoolExecutor@5ace1ed4[Terminated, pool size = 0,
active threads = 0, queued tasks = 0, completed tasks = 0]
Exception for stop-embedded-server: Task java.util.concurrent.FutureTask@31e5415e
rejected from java.util.concurrent.ThreadPoolExecutor@5ace1ed4[Terminated, pool size = 0,
active threads = 0, queued tasks = 0, completed tasks = 0]
Exception in thread "main" java.lang.IllegalArgumentException: Error handling
command: /subsystem=jdr:generate-jdr-report()
at org.jboss.as.cli.scriptsupport.CLI.cmd(CLI.java:248)
at org.jboss.as.jdr.CommandLineMain.main(CommandLineMain.java:120)
at org.jboss.modules.Module.run(Module.java:344)
at org.jboss.modules.Main.main(Main.java:525)
Caused by: org.jboss.as.cli.CommandLineException: The connection to the controller has
not been established.
at org.jboss.as.cli.impl.CommandContextImpl.execute(CommandContextImpl.java:804)
at org.jboss.as.cli.impl.CommandContextImpl.execute(CommandContextImpl.java:823)
at org.jboss.as.cli.scriptsupport.CLI.cmd(CLI.java:241)
... 3 more
[mkopecky@dhcp-10-40-4-226 bin]$
{noformat}