qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wall (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-5868) Java client ignores exceptions when waiting on sync
Date Thu, 03 Jul 2014 19:12:33 GMT

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

Keith Wall commented on QPID-5868:

Hello Rajith,

I'm sure you've realised already but org.apache.qpid.transport.Session is shared code and
is used by the Java Broker for its 0-10 support.   Please keep in mind the need to test it
too with any changes.  

I'm also not too clear on the problem you are solving. I'd like to understand more.  I am
forcing a situation where the Java Broker will produce an ExecutionException by trying to
delete a queue that does not exist thus:

            AMQSession session = (AMQSession) connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
            session.sendQueueDelete(new AMQShortString("wibble"));

Now, when I run this, I get a immediate AMQException wrapping the NOT_FOUND execution exception
from the client.  I don't see a timeout.
What is your test case?

org.apache.qpid.AMQException: ch=0 id=0 ExecutionException(errorCode=NOT_FOUND, commandId=0,
description=No queue wibble found) [error code 404: not found]
	at org.apache.qpid.client.AMQSession_0_10.setCurrentException(AMQSession_0_10.java:1085)
	at org.apache.qpid.client.AMQSession_0_10.sync(AMQSession_0_10.java:1065)
	at org.apache.qpid.client.AMQSession_0_10.sendQueueDelete(AMQSession_0_10.java:829)
	at org.apache.qpid.example.Hello.runTest(Hello.java:62)
	at org.apache.qpid.example.Hello.main(Hello.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

> Java client ignores exceptions when waiting on sync
> ---------------------------------------------------
>                 Key: QPID-5868
>                 URL: https://issues.apache.org/jira/browse/QPID-5868
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.27
>            Reporter: Rajith Attapattu
>             Fix For: 0.29
>         Attachments: QPID-5868.patch
> The java client will wait on the sync command even if an execution exception is received
from the broker.
> It will then proceed to throw a timeout exception and the execution exception is not
reported properly to the application.

This message was sent by Atlassian JIRA

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

View raw message