Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 CA5B57D5D for ; Wed, 28 Sep 2011 20:55:31 +0000 (UTC) Received: (qmail 66357 invoked by uid 500); 28 Sep 2011 20:55:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 66319 invoked by uid 500); 28 Sep 2011 20:55:30 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 66280 invoked by uid 99); 28 Sep 2011 20:55:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 20:55:30 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vperez.rapidreporting@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qy0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 20:55:25 +0000 Received: by qyk29 with SMTP id 29so2958832qyk.2 for ; Wed, 28 Sep 2011 13:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=i1tOJnKErvt8OcJHFgWAbVyaHLCaS+NyGEc7dynWrhA=; b=h+ONbiV1V8U3ofvmdCJnhJDsQ3g8ahJFs7H0GTPUWJdyGxwP244B9vFsHzKj6tA1GZ ccI1W/QemFmlZINxoo9iZglf4LRlDxpuL8WsDv5hK7jpirQse5LCn8y4E27IjNho5QBG h+WFYDNFlehE6Ubg4nXrwaf9KiON/g81MpvsA= MIME-Version: 1.0 Received: by 10.224.206.8 with SMTP id fs8mr7000555qab.272.1317243302261; Wed, 28 Sep 2011 13:55:02 -0700 (PDT) Received: by 10.224.74.18 with HTTP; Wed, 28 Sep 2011 13:55:01 -0700 (PDT) In-Reply-To: <1317241048.2856.7.camel@OfficePC> References: <1317235673.2856.3.camel@OfficePC> <1317241048.2856.7.camel@OfficePC> Date: Wed, 28 Sep 2011 15:55:01 -0500 Message-ID: Subject: Re: STOMP NMS: cannot retrieve messages published from ruby From: Victor Perez To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=20cf300fb42b1d342b04ae069b20 --20cf300fb42b1d342b04ae069b20 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 28, 2011 at 3:17 PM, Timothy Bish wrote: > On Wed, 2011-09-28 at 15:09 -0500, Victor Perez wrote: > > On Wed, Sep 28, 2011 at 1:47 PM, Timothy Bish > wrote: > > > > > On Wed, 2011-09-28 at 11:41 -0500, Victor Perez wrote: > > > > We have a Ruby app publishing messages to ActiveMQ through STOMP. > When I > > > use > > > > Apache.NMS.Stomp in .NET to consume the messages, they come in as > > > > IBytesMessage with no content. > > > > > > > > If I use NMS to publish a message, it can be consumed with no > problems by > > > > our ruby, java and NMS (.NET) apps. > > > > When i publish the message from ruby, it can be consumed by ruby and > java > > > > but not NMS. > > > > > > > > Any ideas? > > > > > > Capturing the frame that the ruby client is sending would help, also > > > knowing what versions of AMQ and .NET client would be good. > > > > > > Regards > > > > > > -- > > > Tim Bish > > > ------------ > > > FuseSource > > > Email: tim.bish@fusesource.com > > > Web: http://fusesource.com > > > Twitter: tabish121 > > > Blog: http://timbish.blogspot.com/ > > > > > > > > > > > > AMQ server is 1.5.0 > > .NET is 1.5.0 for Apache.NMS (from NuGet package) and 1.5.1 for > > Apache.NMS.Stomp (compiled from sources) > > I have no idea how to capture frames (wireshark?) > > > > I compiled trunk NMS and Stomp and got it to work with latest AMQ (5.5.0) > > running locally. Problem persists when using our production AMQ. > > > > Thanks > > Have a look at the Stomp page at the ActiveMQ site, the debugging > section tells you how to enable logging for frames that are sent and > received. > > http://activemq.apache.org/stomp.html > > Knowing what the Ruby client is sending to the broker and what the > broker is sending to NMS.Stomp would help to figure out why NMS isn't > giving you a valid message. > > Regards > > > -- > Tim Bish > ------------ > FuseSource > Email: tim.bish@fusesource.com > Web: http://fusesource.com > Twitter: tabish121 > Blog: http://timbish.blogspot.com/ > > > > It seems that uncommenting the line for the frame IO doesn't have any effect: log4j.logger.org.apache.activemq.transport.stomp.StompIO=TRACE, stomp This is what i got with trace: --- publish from ruby --- 2011-09-28 15:46:12,341 [127.0.0.1:56861] TRACE StompTransportFilter - Received: CONNECT content-type:text/plain; charset=UTF-8 content-length:0 passcode:***** login: 2011-09-28 15:46:12,343 [127.0.0.1:56861] TRACE StompTransportFilter - Sending: CONNECTED session:ID:ZPW7PLAP041-56857-1317242756357-4:1 2011-09-28 15:46:12,347 [127.0.0.1:56861] TRACE StompTransportFilter - Received: SEND content-type:text/plain; charset=UTF-8 destination:/queue/development/rrvc/ssa/request persistent:true content-length:99 --- dob: "1971-11-11" order_id: "101" ssn: "...e: " Some " --- end --- --- publish from NMS --- 2011-09-28 15:46:57,121 [127.0.0.1:56868] TRACE StompTransportFilter - Received: CONNECT heart-beat:10000,30000 host:localhost accept-version:1.0,1.1 client-id:ID:ZPW7PLAP041-56869-634528216169788254-0:0 2011-09-28 15:46:57,124 [127.0.0.1:56868] TRACE StompTransportFilter - Sending: CONNECTED session:ID:ZPW7PLAP041-56869-634528216169788254-0:0 2011-09-28 15:46:57,266 [127.0.0.1:56868] TRACE StompTransportFilter - Received: SEND receipt:2 NMSXDeliveryMode:true destination:/queue/development/rrvc/ssa/request timestamp:1317242817255 persistent:true priority:5 %YAML 1.2 --- !CBSV.Processor.Messages.Veri...rra S ... --- end --- Notable difference here is the content-length header in the ruby message, it must be throwing off NMS and making it return IBytesMessage. Thanks --20cf300fb42b1d342b04ae069b20--