[
https://issues.jboss.org/browse/AS7-3996?page=com.atlassian.jira.plugin.s...
]
Alexey Loubyansky commented on AS7-3996:
----------------------------------------
Thanks, Dominik. I didn't add a test, let's pull yours in.
Also for your tests, this may simplify things
https://community.jboss.org/wiki/JBossAS7Command-linePublicAPI
I am interested in making it easier and more useful. So, your feedback will be helpful.
CLI: deployment crashes console with --header={rollout id=XXX}
parameter
------------------------------------------------------------------------
Key: AS7-3996
URL:
https://issues.jboss.org/browse/AS7-3996
Project: Application Server 7
Issue Type: Bug
Components: CLI
Affects Versions: 7.1.0.Final
Reporter: Dominik Pospisil
Assignee: Alexey Loubyansky
1) connect to a domain using CLI
2) create a rollout-plan
3) deploy /tmp/RolloutPlanTestCase.war --all-server-groups --headers={rollout
id=testPlan}
[domain@localhost:9999 /] deploy /tmp/RolloutPlanTestCase.war --all-server-groups
--headers={rollout id=testPlan}
java.lang.NullPointerException
at
org.jboss.as.cli.operation.impl.ParsedRolloutPlanHeader.addTo(ParsedRolloutPlanHeader.java:277)
at
org.jboss.as.cli.ArgumentValueConverter$5.fromNonDMRString(ArgumentValueConverter.java:157)
at
org.jboss.as.cli.ArgumentValueConverter$DMRWithFallbackConverter.fromString(ArgumentValueConverter.java:50)
at
org.jboss.as.cli.handlers.BaseOperationCommand.addHeaders(BaseOperationCommand.java:214)
at org.jboss.as.cli.handlers.DeployHandler.execute(DeployHandler.java:559)
at org.jboss.as.cli.handlers.DeployHandler.doHandle(DeployHandler.java:365)
at
org.jboss.as.cli.handlers.CommandHandlerWithHelp.handle(CommandHandlerWithHelp.java:84)
at org.jboss.as.cli.impl.CommandContextImpl.handle(CommandContextImpl.java:458)
at
org.jboss.as.cli.impl.CommandContextImpl.handleSafe(CommandContextImpl.java:469)
at
org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1022)
at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:191)
at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.modules.Module.run(Module.java:260)
at org.jboss.modules.Main.main(Main.java:291)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira