Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 835D9DECB for ; Wed, 31 Oct 2012 06:29:31 +0000 (UTC) Received: (qmail 84969 invoked by uid 500); 31 Oct 2012 06:29:31 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 84880 invoked by uid 500); 31 Oct 2012 06:29:29 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 84846 invoked by uid 99); 31 Oct 2012 06:29:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 06:29:27 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gordon.r.sim@gmail.com designates 74.125.82.170 as permitted sender) Received: from [74.125.82.170] (HELO mail-we0-f170.google.com) (74.125.82.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 06:29:19 +0000 Received: by mail-we0-f170.google.com with SMTP id x10so457286wey.15 for ; Tue, 30 Oct 2012 23:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=FsN56eYKr1iTWXSVB4GVmsbyLdAMS3tBUVatj4bIAhY=; b=CFlsjqenBNCTyDOoxHSG4bChiPdqwlcnDZXiGEQpQoKwGpqkleGjK3O9ZbgTzYrVXB KypbcW2koWKlTEVNuAugeSdkeQHEKnx0SBXhgZUEgb7RseCofKZBDavQhu5vS7NEjD9D 2Sk7AlUP4Xyx/5xwz8K3lEpyek/Ct0bEGFGy1ao/iTB1BF69sNNc26B+8syXyvPtem+q uo3IIuI0ieqSkpjfwxB2T508hQB6rVVgh6g39gE0Y+qiPCRH6INFhw0Vow/XOCEZ6j8L SiciPiS3Urt2DPCC44C8+Fu2OclsnFvnTHagkBUOVKC1+jhPoObprQNj8HJibw1/udtY biVg== Received: by 10.216.220.78 with SMTP id n56mr18101162wep.135.1351664938439; Tue, 30 Oct 2012 23:28:58 -0700 (PDT) Received: from [192.168.0.3] ([197.237.53.17]) by mx.google.com with ESMTPS id fp6sm16696558wib.0.2012.10.30.23.28.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Oct 2012 23:28:57 -0700 (PDT) Message-ID: <5090C5E4.6020105@gmail.com> Date: Wed, 31 Oct 2012 06:32:04 +0000 From: Gordon Sim User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: C++ clients unable to communicate with Java broker References: <1351193413.33603.YahooMailNeo@web161402.mail.bf1.yahoo.com> <508E28E5.90703@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 10/31/2012 12:14 AM, Sean K wrote: > Interestingly, the c++ client (specifically the helloworld) does not > connect to the Java broker. > > I added this line to my .bash_profile > > export QPID_LOG_ENABLE=trace+:amqp_0_10 > > and I turned up the logging on the java broker as Oleksandr Rudyy > ("Alex") had suggested. > > There is no additional logging activity in the java broker console, > nor is there any log files generated that I noticed. Sorry, that was my stupidity! The log setting above only does the right thing on the broker. On the client, export QPID_LOG_ENABLE=trace+ would be sufficient. Apologies again for sending you on a wild goose chase there! > When I run the c++ client helloworld on the, I only see this: > > [sean@fedora16 messaging]$ ./hello_world > Failed to connect (reconnect disabled) > > I ran the spout and drain (c++ client) as Alex had suggested, and they > worked with the java broker. (interesting). > > [sean@fedora16 messaging]$ ./spout -c 1 -b guest/guest@localhost > --connection-options {sasl-mechanism:PLAIN} queue > [sean@fedora16 messaging]$ ./drain -c 1 -b guest/guest@localhost > --connection-options {sasl-mechanism:PLAIN} queue > Message(properties={spout-id:74c4541b-f57b-44ec-b229-9300b4c972c8:0, > x-amqp-0-10.routing-key:queue}, content='') I think the issue is the SASL mechanism chosen. If no details are specified (as in helloworld), then ANONYMOUS is being chosen which is not enabled by default on the java broker. It would certainly be nice if the client actually logged something about this though, and it would appear it does not. With cyrus sasl integration, there is a message about no suitable mechanism being found but in the simple default impl there is no checking, it just takes whatever is configured. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org