qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marnie McCormack (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Resolved: (QPID-1878) JMX CLI throws NumberFormatException while attempting to undertake various queue commands
Date Fri, 23 Apr 2010 15:36:52 GMT

     [ https://issues.apache.org/jira/browse/QPID-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marnie McCormack resolved QPID-1878.
------------------------------------

    Resolution: Fixed

Change to use Number and attr name looks fine thx

> JMX CLI throws NumberFormatException while attempting to undertake various queue commands
> -----------------------------------------------------------------------------------------
>
>                 Key: QPID-1878
>                 URL: https://issues.apache.org/jira/browse/QPID-1878
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Management : CLI Tool
>    Affects Versions: 0.5
>         Environment: trunk broker (r778914), 0.5 JMX CLI
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>             Fix For: 0.6
>
>
> While attempting to view messages on a queue, the CLi is unable to determine the message
count for the queue following 2 NumberFormatExceptions and then incorrectly states the given
argument is invalid. This appears to be because instead of the message count, it is retrieving
one of the boolean attributes (durability i believe based on output of list -o queues and
comparison between the source code).
> This also affects other commands, such as viewing the content of a message, although
this actually completes following the exception as it only related to a check for the queue
being empty. The delete command looks like it will be similarly affected, although should
the user not specify a number of messages to delete from the top of the queue then they should
successfully be given the option to delete all messages. 
> qpid-admin-$ queue view -n message_queue -t 5
> java.lang.NumberFormatException: For input string: "false"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> 	at java.lang.Integer.parseInt(Integer.java:447)
> 	at java.lang.Integer.<init>(Integer.java:620)
> 	at org.apache.qpid.commands.objects.QueueObject.getmessagecount(QueueObject.java:71)
> 	at org.apache.qpid.commands.Commandview.viewmessages(Commandview.java:73)
> 	at org.apache.qpid.commands.Commandview.execute(Commandview.java:216)
> 	at org.apache.qpid.CommandExecutionEngine.runcommand(CommandExecutionEngine.java:69)
> 	at org.apache.qpid.CommandLineInterpreter.main(CommandLineInterpreter.java:170)
> java.lang.NumberFormatException: For input string: "false"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> 	at java.lang.Integer.parseInt(Integer.java:447)
> 	at java.lang.Integer.<init>(Integer.java:620)
> 	at org.apache.qpid.commands.objects.QueueObject.getmessagecount(QueueObject.java:71)
> 	at org.apache.qpid.commands.Commandview.viewmessages(Commandview.java:81)
> 	at org.apache.qpid.commands.Commandview.execute(Commandview.java:216)
> 	at org.apache.qpid.CommandExecutionEngine.runcommand(CommandExecutionEngine.java:69)
> 	at org.apache.qpid.CommandLineInterpreter.main(CommandLineInterpreter.java:170)
> Given number is Greater than the Queue Depth
> qpid-admin-$ queue viewcontent -n message_queue -id 120
> java.lang.NumberFormatException: For input string: "false"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> 	at java.lang.Integer.parseInt(Integer.java:447)
> 	at java.lang.Integer.<init>(Integer.java:620)
> 	at org.apache.qpid.commands.objects.QueueObject.getmessagecount(QueueObject.java:71)
> 	at org.apache.qpid.commands.Commandviewcontent.viewcontent(Commandviewcontent.java:74)
> 	at org.apache.qpid.commands.Commandviewcontent.execute(Commandviewcontent.java:212)
> 	at org.apache.qpid.CommandExecutionEngine.runcommand(CommandExecutionEngine.java:69)
> 	at org.apache.qpid.CommandLineInterpreter.main(CommandLineInterpreter.java:170)
>   AMQ MessageId|        Content|       Encoding|       MimeType|
>             120|     Message 19|          UTF-8|     text/plain|

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Mime
View raw message