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 B95D27D44 for ; Fri, 16 Sep 2011 12:49:48 +0000 (UTC) Received: (qmail 50341 invoked by uid 500); 16 Sep 2011 12:49:48 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 50313 invoked by uid 500); 16 Sep 2011 12:49:48 -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 50305 invoked by uid 99); 16 Sep 2011 12:49:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 12:49:48 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gsim@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 12:49:41 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8GCnJun011313 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 16 Sep 2011 08:49:19 -0400 Received: from [10.3.232.250] (vpn-232-250.phx2.redhat.com [10.3.232.250]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p8GCnIJi025229 for ; Fri, 16 Sep 2011 08:49:18 -0400 Message-ID: <4E7345A2.9000709@redhat.com> Date: Fri, 16 Sep 2011 13:48:34 +0100 From: Gordon Sim Organization: Red Hat UK Ltd, Registered in England and Wales under Company Registration No. 3798903, Directors: Michael Cunningham (USA), Mark Hegarty (Ireland), Matt Parsons (USA), Charlie Peters (USA) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Lightning/1.0b1 Thunderbird/3.0.10 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: JMS client skips string message properties References: <4E72452A.50709@blueyonder.co.uk> <4E7308E3.7080804@blueyonder.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Virus-Checked: Checked by ClamAV on apache.org On 09/16/2011 09:42 AM, Jiri Krutil wrote: > Hi Fraser > > When I call Message.toString(), I see a list of all non-string properties, > but there is no trace of the string properties I have set in C++. > I think the difference in behaviour that we see could be explained by > different versions of the C++ client or broker or Java client. > > I was experimenting with Variant.setEncoding() on the sending side, as > Gordon suggested, but to no avail. Unfortunatelly there is no documentation > for this function, so it's hard to guess what the supported encodings are. > (I was trying encodings "str8" and "UTF-8", but this did not help. My string > only contains plain 7-bit ASCII characters.) Yes, sorry about that, it does need addressed. The encoding you want is utf8 (also recognised are utf16, binary and iso-8859-15). > By the way if the property value cannot be treated as a String in Java, I > still don't see why is it not at least made available as a byte array. > > Let's wait and see if Gordon has something to say on this... Could you get a broker trace for a simple send and receive of such a message? That might shed a clue at least as to which side the issue is on. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org