Bug 459130

Summary: Session exceptions aren't handled gracefully in java client
Product: Red Hat Enterprise MRG Reporter: Gordon Sim <gsim>
Component: qpid-javaAssignee: Rafael H. Schloming <rafaels>
Status: CLOSED ERRATA QA Contact: Kim van der Riet <kim.vdriet>
Severity: medium Docs Contact:
Priority: urgent    
Version: 1.0CC: freznice, tross
Target Milestone: 1.0.1   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-06 19:08:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 460187    

Description Gordon Sim 2008-08-14 16:05:00 UTC
If broker closes a session after an exceptional condition, the client throws a NullPointerException rather than somehow communicating the original condition.

Comment 2 Frantisek Reznicek 2008-09-16 14:49:53 UTC
RHTS test MRG_Messaging/qpid_java_exceptions_bz459130 shows that java client now currently reports the rootcause of exception. (->VERIFIED)


ADDITIONAL INFO:
[root@dhcp-lab-200 bin]# bash ./qpid-bench --mode publish
broker = localhost
port = 5672
count = 1000000
window = 100000
sample = 100000
size = 1024
mode = PUBLISH
timestamp = false
message_id = false
message_cache = false
persistent = false
jms_publish = false
jms_consume = false
help = false
NP: Tue Sep 16 10:20:52 CEST 2008
Exception in thread "Thread-2" java.lang.RuntimeException: org.apache.qpid.transport.SessionException: [ch=0 id=0 ExecutionException(errorCode=RESOURCE_LIMIT_EXCEEDED, commandId=8, classCode=0, commandCode=0, fieldIndex=0, description=resource-limit-exceeded: Policy exceeded for test-queue size: max=100, current=2048; count unlimited, current=0 (qpid/broker/Queue.cpp:418), errorInfo={})]
        at org.apache.qpid.tools.QpidBench$2.run(QpidBench.java:460)
Caused by: org.apache.qpid.transport.SessionException: [ch=0 id=0 ExecutionException(errorCode=RESOURCE_LIMIT_EXCEEDED, commandId=8, classCode=0, commandCode=0, fieldIndex=0, description=resource-limit-exceeded: Policy exceeded for test-queue size: max=100, current=2048; count unlimited, current=0 (qpid/broker/Queue.cpp:418), errorInfo={})]
        at org.apache.qpid.transport.Session.invoke(Session.java:276)
        at org.apache.qpid.transport.Invoker.messageTransfer(Invoker.java:127)
        at org.apache.qpid.tools.QpidBench.native_publisher(QpidBench.java:789)
        at org.apache.qpid.tools.QpidBench.access$500(QpidBench.java:45)
        at org.apache.qpid.tools.QpidBench$2.run(QpidBench.java:455)

Comment 4 errata-xmlrpc 2008-10-06 19:08:41 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0640.html