qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-6226) Running client/server C++ client examples fail against the Java Broker with 'Cannot declare queue..'
Date Tue, 18 Nov 2014 17:07:35 GMT

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

ASF subversion and git services commented on QPID-6226:
-------------------------------------------------------

Commit 1640390 from [~k-wall] in branch 'qpid/trunk'
[ https://svn.apache.org/r1640390 ]

QPID-6226: [Java Broker] Change queue.declare so that on the passive path, exclusivity is
verified if command has set the exclusive flag.

Also strengthen the python tests.

> Running client/server C++ client examples fail against the Java Broker with 'Cannot declare
queue..'
> ----------------------------------------------------------------------------------------------------
>
>                 Key: QPID-6226
>                 URL: https://issues.apache.org/jira/browse/QPID-6226
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client, Java Broker
>    Affects Versions: 0.30
>         Environment: Qpid C++ client
> Built from source from Trunk (rev 1638936)
> Running on Fedora 20 (guest OS).
> Qpid Java Broker
> Trunk (rev 1638936)
> Running on Mac OS X
>            Reporter: Keith Wall
>         Attachments: client.log, server.log
>
>
> Running the Qpid C++ client examples client/server against a clean Java Broker ends with
the following error being emitted by the server example.
> {noformat}
> 2014-11-13 23:20:09 [Client] debug treating target address as queue: 8564d8c8-1fc3-4a96-bb04-4e21795049e2#;{node:{type:queue}}
> 2014-11-13 23:20:09 [Network] trace SENT [[10.211.55.15:55482-192.168.1.6:5672]]: Frame[BEbe;
channel=1; {QueueDeclareBody: queue=8564d8c8-1fc3-4a96-bb04-4e21795049e2#; alternate-exchange=;
passive=1; arguments={}; }]
> 2014-11-13 23:20:09 [Network] trace RECV [[10.211.55.15:55482-192.168.1.6:5672]]: Frame[BEbe;
channel=1; {ExecutionExceptionBody: error-code=405; command-id=8; description=Cannot declare
queue('8564d8c8-1fc3-4a96-bb04-4e21795049e2#'), as exclusive queue with same name declared
on another session; }]
> 2014-11-13 23:20:09 [System] debug Exception constructed: Cannot declare queue('8564d8c8-1fc3-4a96-bb04-4e21795049e2#'),
as exclusive queue with same name declared on another session
> 2014-11-13 23:20:09 [Client] warning Exception received from broker: resource-locked:
Cannot declare queue('8564d8c8-1fc3-4a96-bb04-4e21795049e2#'), as exclusive queue with same
name declared on another session [caused by 8 \x00:\x00]
> resource-locked: Cannot declare queue('8564d8c8-1fc3-4a96-bb04-4e21795049e2#'), as exclusive
queue with same name declared on another session
> {noformat}
> It appears that both the client and server declare the temporary queue for the response:
> {noformat}
> (client)
> 2014-11-13 23:20:09 [Network] trace SENT [[10.211.55.15:55483-192.168.1.6:5672]]: Frame[BEbe;
channel=1; {QueueDeclareBody: queue=8564d8c8-1fc3-4a96-bb04-4e21795049e2#; alternate-exchange=;
exclusive=1; auto-delete=1; arguments={}; }]
> {noformat}
> {noformat}
> (server)
> 2014-11-13 23:20:09 [Network] trace SENT [[10.211.55.15:55482-192.168.1.6:5672]]: Frame[BEbe;
channel=1; {QueueDeclareBody: queue=8564d8c8-1fc3-4a96-bb04-4e21795049e2#; alternate-exchange=;
passive=1; arguments={}; }]
> {noformat}
> The error suggests a behaviour difference between CPP and Java Broker around the handling
of the passive flag.
> I am running:
> {noformat}
> ./server 192.168.1.6:5672   '{username:guest,password:guest}'
> ./client 192.168.1.6:5672   '{username:guest,password:guest}'
> {noformat}
> with QPID_LOG_ENABLE set for tracing.
> {noformat}
> export QPID_LOG_ENABLE="trace+"
> {noformat}
> Java Broker is out of the box i.e. default Auth Provider (Plain) and default password
db.
> I get no error when running the same programs against the CPP broker.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message