Bug 613837 - NullPointerException thrown when you pass an address with link props but without a capacity property
Summary: NullPointerException thrown when you pass an address with link props but with...
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java   
(Show other bugs)
Version: Development
Hardware: All
OS: Linux
low
high
Target Milestone: 1.3
: ---
Assignee: messaging-bugs
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-12 22:21 UTC by Rajith Attapattu
Modified: 2013-02-25 10:46 UTC (History)
1 user (show)

Fixed In Version: 0.10
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-02-25 10:46:28 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Rajith Attapattu 2010-07-12 22:21:57 UTC
Description of problem:
The following address "amq.topic/usa.#;{link: {name:my-queue}}" will cause the JMS client to throw a null pointer exception as it incorrectly tries to process a capacity option.

Version-Release number of selected component (if applicable):
qpid-java-0.7.946106-6

How reproducible:
Always

Steps to Reproduce:
1. Use the Drain utility included in the qpid-java-examples rpm with the following address.

Ex. ./run_example.sh org.apache.qpid.example.Drain -f 300 "amq.topic/usa.#;{link: {name:my-queue}}"
  
Actual results:
The client throws a null pointer exception

Expected results:
No exception should be shown.

Additional info:

Comment 1 Rajith Attapattu 2010-07-13 02:25:06 UTC
This is committed upstream at rev 958102 in Qpid trunk.

The fix is also ported to our internal git repo.

http://mrg1.lab.bos.redhat.com/cgit/qpid.git/commit/?id=891d02055df68cfef71eafdf82bc7e4b92dee5bc


Note You need to log in before you can comment on or make changes to this bug.