[jboss-jira] [JBoss JIRA] (AS7-2580) CLI jms-queue --help and jms-topic --help does not work when connected to domain

Alexey Loubyansky (Commented) (JIRA) jira-events at lists.jboss.org
Thu Nov 10 11:38:45 EST 2011


    [ https://issues.jboss.org/browse/AS7-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641837#comment-12641837 ] 

Alexey Loubyansky commented on AS7-2580:
----------------------------------------

This affects all the generic commands.
It requires --profile in the domain mode. It pulls description for the help content from the domain model description.

On one hand, it's bizarre to require a profile for the help. On the other hand --profile is a required argument in the domain mode no matter what you do.

It could actually be made optional. In that case, resource description will be missing from the printed help text (with, perhaps, a note like 'execute help with --profile=<profile_name> to include resource description here.'). I think, I'll do that.
                
> CLI jms-queue --help and jms-topic --help does not work when connected to domain
> --------------------------------------------------------------------------------
>
>                 Key: AS7-2580
>                 URL: https://issues.jboss.org/browse/AS7-2580
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 7.1.0.Beta1
>            Reporter: Dominik Pospisil
>            Assignee: Alexey Loubyansky
>
> CLI jms-queue --help and jms-topic --help does not work when connected to a domain.
> [disconnected /] connect                                                                                                                                                               
> Connected to domain controller at localhost:9999                                                                                                                                       
> [domain at localhost:9999 /] jms-topic --help                                                                                                                                             
> java.lang.IllegalArgumentException: newValue is null                                                                                                                                   
>         at org.jboss.dmr.ModelNode.set(ModelNode.java:349)                                                                                                                             
>         at org.jboss.dmr.ModelNode.set(ModelNode.java:537)                                                                                                                             
>         at org.jboss.dmr.ModelNode.add(ModelNode.java:939)                                                                                                                             
>         at org.jboss.as.cli.handlers.GenericTypeOperationHandler.initRequest(GenericTypeOperationHandler.java:684)
>         at org.jboss.as.cli.handlers.GenericTypeOperationHandler.printNodeDescription(GenericTypeOperationHandler.java:591)
>         at org.jboss.as.cli.handlers.GenericTypeOperationHandler.printHelp(GenericTypeOperationHandler.java:484)
>         at org.jboss.as.cli.handlers.CommandHandlerWithHelp.handle(CommandHandlerWithHelp.java:75)
>         at org.jboss.as.cli.CommandLineMain.processLine(CommandLineMain.java:501)
>         at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:345)
>         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:616)
>         at org.jboss.modules.Module.run(Module.java:243)
>         at org.jboss.modules.Main.main(Main.java:310)
> Closed connection to localhost:9999

--
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

        


More information about the jboss-jira mailing list