You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Krzysztof Sobkowiak (JIRA)" <ji...@apache.org> on 2015/01/26 22:16:35 UTC

[jira] [Comment Edited] (SM-2317) activemq:browse no more working

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

Krzysztof Sobkowiak edited comment on SM-2317 at 1/26/15 9:15 PM:
------------------------------------------------------------------

Solved in ActiveMQ 5.11.0 and 5.10.1. Currently it's necessary to provide the {{user}} and {{password}} parameters.

{code}
karaf@root> jms:send jms/amq-broker test-queue "test message 1"
karaf@root> jms:send jms/amq-broker test-queue "test message 2"
karaf@root> browse --amqurl tcp://localhost:61616 --user smx --password smx  test-queue
JMS_BODY_FIELD:JMSText = test message 1
JMS_HEADER_FIELD:JMSExpiration = 0
JMS_HEADER_FIELD:JMSMessageID = ID:lenovo-43362-1422306328716-15:5:1:1:1
JMS_HEADER_FIELD:JMSPriority = 4
JMS_HEADER_FIELD:JMSDestination = test-queue
JMS_HEADER_FIELD:JMSTimestamp = 1422306717010
JMS_HEADER_FIELD:JMSRedelivered = false
JMS_HEADER_FIELD:JMSDeliveryMode = persistent

JMS_BODY_FIELD:JMSText = test message 2
JMS_HEADER_FIELD:JMSExpiration = 0
JMS_HEADER_FIELD:JMSMessageID = ID:lenovo-43362-1422306328716-15:6:1:1:1
JMS_HEADER_FIELD:JMSPriority = 4
JMS_HEADER_FIELD:JMSDestination = test-queue
JMS_HEADER_FIELD:JMSTimestamp = 1422306719567
JMS_HEADER_FIELD:JMSRedelivered = false
JMS_HEADER_FIELD:JMSDeliveryMode = persistent
{code}

Otherwise the command fails

{code}
karaf@root> browse --amqurl tcp://localhost:61616   test-queue
ERROR: java.lang.RuntimeException: Failed to execute browse task. Reason: javax.jms.JMSSecurityException: User name [null] or password is invalid.
java.lang.RuntimeException: Failed to execute browse task. Reason: javax.jms.JMSSecurityException: User name [null] or password is invalid.
	at org.apache.activemq.console.command.AmqBrowseCommand.runTask(AmqBrowseCommand.java:155)
	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
	at org.apache.activemq.karaf.commands.ActiveMQCommandSupport.doExecute(ActiveMQCommandSupport.java:49)
	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)
	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
	at org.apache.karaf.shell.console.jline.Console.run(Console.java:184)
	at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)
Error executing command: javax.jms.JMSSecurityException: User name [null] or password is invalid.
{code}




was (Author: sobkowiak):
Solved in ActiveMQ 5.11.0

> activemq:browse no more working
> -------------------------------
>
>                 Key: SM-2317
>                 URL: https://issues.apache.org/jira/browse/SM-2317
>             Project: ServiceMix
>          Issue Type: Bug
>    Affects Versions: 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 6.0.0
>         Environment: Karaf or ServiceMix with ActiveMQ 5.9.0 or 5.9.1
>            Reporter: Krzysztof Sobkowiak
>             Fix For: 5.0.x, 5.1.x, 5.2.x, 6.0.x
>
>
> The command writes an info about unrecognized option {{--jmxlocal}} and writes the help content
> {code}
> karaf@root> activemq:browse --amqurl tcp://localhost:61616 --user karaf --password karaf  queue:events
> INFO: Unrecognized option: --jmxlocal
> Task Usage: Main browse --amqurl <broker url> [browse-options] <destinations>
> Description: Display selected destination's messages.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)