You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Carl Allain (Commented) (JIRA)" <ji...@apache.org> on 2011/11/03 18:35:33 UTC

[jira] [Commented] (AMQ-2794) javax.jms.JMSException: User name or password is invalid --> activemq-admin browse --amqurl tcp://localhost:61616 TEST.FOO

    [ https://issues.apache.org/jira/browse/AMQ-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143358#comment-13143358 ] 

Carl Allain commented on AMQ-2794:
----------------------------------

Same issue for me, how to pass the username and password to the activemq-admin browse operation??? Not documented or a lack of feature?

                
> javax.jms.JMSException: User name or password is invalid --> activemq-admin browse --amqurl tcp://localhost:61616 TEST.FOO
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-2794
>                 URL: https://issues.apache.org/jira/browse/AMQ-2794
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.3.0
>            Reporter: Charles Moulliard
>
> When security is enable on ActiveMq 5.3.1, the following command 
> activemq-admin browse --amqurl tcp://localhost:61616 TEST.FOO 
> generates the error :
> {code}
> [root@mombrks10 bin]# ./activemq-admin browse --amqurl tcp://localhost:64011  Q.INAMEDIA.GESCOM.PANIER.P
> Java Runtime: Sun Microsystems Inc. 1.6.0_20 /usr/java/jre1.6.0_20
>   Heap sizes: current=15680k  free=15284k  max=251456k
>     JVM args: -Dactivemq.classpath=/ap03/brokermutd1/appl/conf; -Dactivemq.home=/ap03/brokermutd1/appl -Dactivemq.base=/ap03/brokermutd1/appl
> ACTIVEMQ_HOME: /ap03/brokermutd1/appl
> ACTIVEMQ_BASE: /ap03/brokermutd1/appl
> ERROR: java.lang.RuntimeException: Failed to execute browse task. Reason: javax.jms.JMSException: User name or password is invalid.
> java.lang.RuntimeException: Failed to execute browse task. Reason: javax.jms.JMSException: User name or password is invalid.
>         at org.apache.activemq.console.command.AmqBrowseCommand.runTask(AmqBrowseCommand.java:130)
>         at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:136)
>         at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:82)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
>         at org.apache.activemq.console.Main.main(Main.java:107)
> {code}
> If we use the command activemq-admin query --jmxuser=monitorRole --jmxpassword=abc123, it works

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira