You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Pavel Moravec (JIRA)" <ji...@apache.org> on 2012/08/31 13:27:07 UTC
[jira] [Created] (QPID-4274) second invocation of createConsumer
fails for queue in JNDI properties
Pavel Moravec created QPID-4274:
-----------------------------------
Summary: 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.18
Reporter: Pavel Moravec
Priority: Trivial
Attachments: test_00689136.java
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
[jira] [Updated] (QPID-4274) second invocation of createConsumer
fails for queue in JNDI properties
Posted by "Pavel Moravec (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Moravec updated QPID-4274:
--------------------------------
Labels: patch (was: )
> 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(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
[jira] [Updated] (QPID-4274) second invocation of createConsumer
fails for queue in JNDI properties
Posted by "Pavel Moravec (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Moravec updated QPID-4274:
--------------------------------
Affects Version/s: 0.14
> 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(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
[jira] [Updated] (QPID-4274) second invocation of createConsumer
fails for queue in JNDI properties
Posted by "Pavel Moravec (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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(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
[jira] [Updated] (QPID-4274) second invocation of createConsumer
fails for queue in JNDI properties
Posted by "Pavel Moravec (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Moravec updated QPID-4274:
--------------------------------
Attachment: test_00689136.java
Reproducer
> 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.18
> Reporter: Pavel Moravec
> Priority: Trivial
> Attachments: 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