Red Hat Bugzilla – Bug 978379
C++ example "client" raises a broker exception
Last modified: 2015-01-21 07:55:31 EST
Description of problem:
C++ example "client.exe" running simultaneously with "server" example (started after the "server) raises the exception on the connected broker, see transcriptions below:
Windows command line transcription:
2013-06-26 09:17:25 [Client] warning Exception received from broker: not-found:
not-found: Queue not found: 92fd9aff-5fcc-43b6-82da-31988fdbd227# (/builddir/bui
ld/BUILD/qpid-0.22/cpp/src/qpid/broker/SessionAdapter.cpp:693) [caused by 4 \x08
Queue 92fd9aff-5fcc-43b6-82da-31988fdbd227# does not exist
Terminal transcription (qpidd.log):
013-06-26 13:29:56 [Broker] info Queue "service_queue": Flow limit created: flowStopCount=0, flowResumeCount=0, flowStopSize=83886080, flowResumeSize=73400320
2013-06-26 13:30:01 [Protocol] error Execution exception: not-found: Queue not found: 7f49a2ed-1a3c-49d5-b2ae-13c6ce3155d0# (/builddir/build/BUILD/qpid-0.22/cpp/src/qpid/broker/SessionAdapter.cpp:693)
Example "client" from the previous packages (qpid-cpp-win-184.108.40.206-1) works properly; the bug is only on this packages.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Unpack the qpid packages.
2. Create project files for examples and compile them.
3. Open a command line and start "server.exe" application.
4. In the second command line windows run "client.exe" application.
The "client.exe" example raises the exception on the broker.
The "client.exe" example should work without exceptions.
This is not unique to windows. It is caused by a change I made to the example itself to better illustrate 1.0 behaviour. However at present the shorthand for a temporary queue - i.e. '#' - doesn't work for 0-10. Fix coming up shortly.
Fixed upstream: https://svn.apache.org/r1496985
The "client" application works properly without exceptions.
Verified on all currently supported platforms:
- Rhel6.4-i686 and x86_64
- Windows7-x86 and x64
- Windows Server2003-x86 and x64
- Windows Server2008-x86, x64 and R2
on packages qpid-cpp-0.22-7.el6 and qpid-cpp-win-220.127.116.11-1.