[
https://issues.apache.org/jira/browse/QPID-6226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14217597#comment-14217597
]
Keith Wall commented on QPID-6226:
----------------------------------
I have verified changes to the Python tests against C++ Broker. Also verified
that the client/server example now work against the Java Broker.
> 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
> Assignee: 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: [email protected]
For additional commands, e-mail: [email protected]