You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rajith Attapattu (JIRA)" <ji...@apache.org> on 2013/03/07 23:34:13 UTC

[jira] [Commented] (QPID-4274) second invocation of createConsumer fails for queue in JNDI properties

    [ https://issues.apache.org/jira/browse/QPID-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596486#comment-13596486 ] 

Rajith Attapattu commented on QPID-4274:
----------------------------------------

Applied Pavel's patch but in a different location (where node deletion is handled) as the Queue can be deleted by Producer not just a Consumer and will cause the same issue.
http://svn.apache.org/r1454134

Also applied the same fix for exchanges as a deletion triggered by a consumer/producer close can cause the same issue if the same destination is re-used to create another producer or consumer.
http://svn.apache.org/r1454135
                
> 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
>            Assignee: Rajith Attapattu
>            Priority: Trivial
>              Labels: patch
>             Fix For: 0.21
>
>         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(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.<init>(Test_00689136.java:71)
> 	at Test_00689136.main(Test_00689136.java:46)
> Caused by: 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_0_10.setCurrentException(AMQSession_0_10.java:1102)
> 	at org.apache.qpid.client.AMQSession_0_10.sync(AMQSession_0_10.java:1082)
> 	at org.apache.qpid.client.AMQSession_0_10.sendConsume(AMQSession_0_10.java:686)
> 	at org.apache.qpid.client.AMQSession_0_10.sendConsume(AMQSession_0_10.java:87)
> 	at org.apache.qpid.client.AMQSession.consumeFromQueue(AMQSession.java:2626)
> 	at org.apache.qpid.client.AMQSession.registerConsumer(AMQSession.java:2962)
> 	at org.apache.qpid.client.AMQSession.access$500(AMQSession.java:120)
> 	at org.apache.qpid.client.AMQSession$4.execute(AMQSession.java:2082)
> 	... 8 more
> Expected results:
> No exception raised.
> Additional info:
> trivial patch to be uploaded

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org