activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Reese (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-3512) Using browse command fails when a message with an array of bytes is encountered.
Date Tue, 27 Sep 2011 18:25:45 GMT
Using browse command fails when a message with an array of bytes is encountered.
--------------------------------------------------------------------------------

                 Key: AMQ-3512
                 URL: https://issues.apache.org/jira/browse/AMQ-3512
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker
    Affects Versions: 5.5.0
            Reporter: Allen Reese
            Priority: Minor
             Fix For: 5.6.0


-bash-3.2$ /home/y/bin/activemq_server_admin browse   --amqurl
tcp://localhost:61616 VirtualTopicConsumers.ac4-stg-2.Soo_RMXReplicator_Primary


ERROR: java.lang.RuntimeException: Failed to execute browse task. Reason: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: Failed to execute browse task. Reason: java.lang.reflect.InvocationTargetException
     at org.apache.activemq.console.command.AmqBrowseCommand.runTask(AmqBrowseCommand.java:144)
     at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
     at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:143)
     at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
     at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:85)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
     at org.apache.activemq.console.Main.main(Main.java:107)
     at yjava.activemq.server.admin.ActiveMQAdmin.main(ActiveMQAdmin.java:39)
ERROR: java.lang.Exception: java.lang.reflect.InvocationTargetException
java.lang.Exception: java.lang.reflect.InvocationTargetException
     at org.apache.activemq.console.command.AmqBrowseCommand.runTask(AmqBrowseCommand.java:145)
     at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
     at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:143)
     at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
     at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:85)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
     at org.apache.activemq.console.Main.main(Main.java:107)
     at yjava.activemq.server.admin.ActiveMQAdmin.main(ActiveMQAdmin.java:39)
Caused by: java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.apache.activemq.console.filter.MapTransformFilter.transformElement(MapTransformFilter.java:67)
     at org.apache.activemq.console.filter.ResultTransformFilter.transformList(ResultTransformFilter.java:67)
     at org.apache.activemq.console.filter.ResultTransformFilter.query(ResultTransformFilter.java:43)
     at org.apache.activemq.console.filter.PropertiesViewFilter.query(PropertiesViewFilter.java:58)
     at org.apache.activemq.console.filter.PropertiesViewFilter.query(PropertiesViewFilter.java:58)
     at org.apache.activemq.console.util.AmqMessagesUtil.filterMessagesView(AmqMessagesUtil.java:64)
     at org.apache.activemq.console.command.AmqBrowseCommand.runTask(AmqBrowseCommand.java:140)
     ... 11 more
Caused by: java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.Object;
     at org.apache.activemq.console.filter.MapTransformFilter.getDisplayString(MapTransformFilter.java:336)
     at org.apache.activemq.console.filter.MapTransformFilter.transformToMap(MapTransformFilter.java:213)
     ... 22 more
-bash-3.2

I'll attach a patch and a test case for getDisplayString shortly.



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

        

Mime
View raw message