Error Registering Consumer Org.apache.qpid.amqexception
fails for queue in JNDI propertiesAgile Board ExportXMLWordPrintableJSON Details Type: Bug Status: Resolved Priority: Trivial Resolution: Fixed Affects Version/s: 0.14, 0.18 Fix Version/s: 0.21 Component/s: Java Client Labels: patch Description Description of problem: Creating in a loop a connection, session and consumer defined in JNDI property file, 2nd instance of the loop raises "Queue not found" exception. Version-Release number of selected component (if applicable): qpid-java-*-0.14-3 How reproducible: 100% Steps to Reproduce: See reproducer. Actual results: (stack trace from Java client 0.14) ERROR [IoReceiver - localhost/127.0.0.1:5672] (AMQConnection.java:1267) - Throwable Received but no listener set: org.apache.qpid.AMQException: ch=0 id=0 ExecutionException(errorCode=NOT_FOUND, commandId=0, classCode=4, commandCode=7, fieldIndex=0, description=not-found: Queue not found: response-queue (qpid/broker/SessionAdapter.cpp:686), errorInfo={}) [error code 404: not found] ERROR [main] (AMQConnection.java:1267) - Throwable Received but no listener set: org.apache.qpid.AMQException: ch=0 id=0 ExecutionException(errorCode=NOT_FOUND, commandId=0, classCode=4, commandCode=7, fieldIndex=0, description=not-found: Queue not found: response-queue (qpid/broker/SessionAdapter.cpp:686), errorInfo={}) [error code 404: not found] javax.jms.JMSException: Error registering consumer: org.apache.qpid.AMQException: ch=0 id=0 ExecutionException(errorCode=NOT_FOUND, commandId=0, classCode=4, commandCode=7, fieldIndex=0, description=not-found: Queue not found: response-queue (qpid/broker/SessionAdapter.cpp:686), errorInfo={}) [error code 404: not found] at org.apache.qpid.client.AMQSession$4.execute(AMQSession.java:2105) at org.apache.qpid.client.AMQSession$4.execute(AMQSession.java:2040) at org.apache.qpid.client.AMQConnectionDelegate_0_10.executeRetrySupport(AMQConnectionDelegate_0_10.java:369) at org.apache.qpid.client.AMQConnection.executeRetrySupport(AMQConnection.java:586) at org.apache.qpid.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102) at org.apache.qpid.client.AMQSession.createConsumerImpl(AMQSession.java:2038) at org.apache.qpid.client.AMQSession.createConsumer(AMQSession.java:996) at Test_00689136.
help others javax.jms.JMSException: Error registering consumer: org.apache.qpid.AMQException: ch=0 id=3 ExecutionException(errorCode=NOT_FOUND, commandId=15, classCode=7, commandCode=4, fieldIndex=0, description=not-found: Bind failed. No such queue: TempQueue63977b9c-0dd1-4159-b65a-fe388b035024 (qpid/broker/Broker.cpp:1041), errorInfo={}) [error code 404: not found] https://bugzilla.redhat.com/bugzilla/ | Rajith Attapattu | 5 years https://issues.apache.org/jira/browse/QPID-4274 ago 0 mark Queue Not Found exception thrown when creating a consumer due to the client using a binding for a previous subscriber https://bugzilla.redhat.com/bugzilla/ | 5 years ago | Rajith Attapattu javax.jms.JMSException: Error registering consumer: org.apache.qpid.AMQException: ch=0 id=3 ExecutionException(errorCode=NOT_FOUND, commandId=15, https://samebug.io/exceptions/2327375/javax.jms.JMSException/error-registering-consumer-orgapacheqpidamqexception?soft=false classCode=7, commandCode=4, fieldIndex=0, description=not-found: Bind failed. No such queue: TempQueue63977b9c-0dd1-4159-b65a-fe388b035024 (qpid/broker/Broker.cpp:1041), errorInfo={}) [error code 404: not found] find similars Qpid AMQP 0-x JMS Client 0 Root Cause Analysis javax.jms.JMSException Error registering consumer: org.apache.qpid.AMQException: ch=0 id=3 ExecutionException(errorCode=NOT_FOUND, commandId=15, classCode=7, commandCode=4, fieldIndex=0, description=not-found: Bind failed. No such queue: TempQueue63977b9c-0dd1-4159-b65a-fe388b035024 (qpid/broker/Broker.cpp:1041), errorInfo={}) [error code 404: not found] at org.apache.qpid.client.AMQSession$4.execute() 0 similar Qpid AMQP 0-x JMS Client AMQSession$4.execute org.apache.qpid.client.AMQSession$4.execute(AMQSession.java:2079) 1 similar 1 frame About Us Explore Tour Blog Privacy Policy Terms Of Use ©2016 Samebug, Inc. This site uses cookies, as explained in our cookie policy. If you agree to our use of cookies, please close this message and continue to use this site. Accept & Close
AANLkTinhd+z1bnJVuKDvWZqrRwOoX=GBQEfO0ukAdZO2 () mail ! gmail ! com [Download message RAW] [Attachment http://marc.info/?l=wsas-java-dev&m=129663915232467&w=2 #2 (multipart/alternative)] Amila, Even though you create a durable subscription what Qpid authorization manger gets is a non-durable subscriptions and hence a different http://osdir.com/ml/dev-qpid.apache.org/2012-08/msg00478.html execution path (yet another bug in Qpid? :-(). Only change was the way the queue name is derived and now it is fixed error registering to handle both cases. Thanks, Danushka On Tue, Feb 1, 2011 at 8:13 PM, Amila Suriarachchi
Pavel Moravec updated QPID-4274: -------------------------------- Attachment: 0001-consumerClose-to-reset-destination-AddressResolved.patch Simple patch proposal. calling Context ctx = new InitialContext(properties); just once causes Destination object to be created just once. First invocation of: MessageConsumer clientConsumer = session.createConsumer(destination/queue) then sets address resolution to current timestamp to prevent resolving the address later on (see handleAddressBasedDestination in AMQSession_0_10 class for details). Next invocation of createConsumer sees the destination has address already resolved, what is wrong. To correct it, once the queue is deleted (when closing the consumer), address resolution of the destination has to be re-set to 0. > second invocation of createConsumer fails for queue in JNDI properties > ---------------------------------------------------------------------- > > Key: QPID-4274 > URL: https://issues.apache.org/jira/browse/QPID-4274 > Project: Qpid > Issue Type: Bug > Components: Java Client > Affects Versions: 0.14, 0.18 > Reporter: Pavel Moravec > Priority: Trivial > Labels: patch > Attachments: > 0001-consumerClose-to-reset-destination-AddressResolved.patch, > test_00689136.java > > Original Estimate: 2h > Remaining Estimate: 2h > > Description of problem: > Creating in a loop a connection, session and consumer defined in JNDI > property file, 2nd instance of the loop raises "Queue not found" exception. > Version-Release number of selected component (if applicable): > qpid-java-*-0.14-3 > How reproducible: > 100% > Steps to Reproduce: > See reproducer. > > Actual results: > (stack trace from Java client 0.14) > ERROR [IoReceiver - localhost/127.0.0.1:5672] (AMQConnection.java:1267) - > Throwable Received but no listener set: org.apache.qpid.AMQException: ch=0 > id=0 ExecutionException(errorC