Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 68233 invoked from network); 21 Jan 2011 14:26:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2011 14:26:09 -0000 Received: (qmail 3616 invoked by uid 500); 21 Jan 2011 14:26:09 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 3517 invoked by uid 500); 21 Jan 2011 14:26:07 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 3456 invoked by uid 99); 21 Jan 2011 14:26:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 14:26:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 14:26:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0LEPjLM012931 for ; Fri, 21 Jan 2011 14:25:45 GMT Message-ID: <25506821.106741295619945333.JavaMail.jira@thor> Date: Fri, 21 Jan 2011 09:25:45 -0500 (EST) From: "Peter Pfort (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQCPP-346) No UTF8 conversation in OpenWire strings In-Reply-To: <787747.103971295607712289.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQCPP-346?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1298= 4745#action_12984745 ]=20 Peter Pfort commented on AMQCPP-346: ------------------------------------ Try=20 int _tmain(int argc, _TCHAR* argv[]) { activemq::library::ActiveMQCPP::initializeLibrary(); // Create a ConnectionFactory ConnectionFactory* connectionFactory =3D ConnectionFactory::createCMSConnectionFactory("tcp://xxxxx:61616?wire= Format=3Dopenwire&wireFormat.MaxInactivityDuration=3D120000"); // Create a Connection Connection * connection =3D connectionFactory->createConnection("default= ", "", "yyyyy"); delete connectionFactory; //connection->setClientId(clientId); connection->start(); // Create a Session Session * session =3D connection->createSession( Session::AUTO_ACKNOWLED= GE); Topic *t =3D session->createTopic( "MYTOPIC" ); MessageConsumer * consumer =3D session->createDurableConsumer( t, "xxxxx= ", "=C3=A4UserName =3D 'German=C3=A4'"); =09return 0; } > No UTF8 conversation in OpenWire strings > ---------------------------------------- > > Key: AMQCPP-346 > URL: https://issues.apache.org/jira/browse/AMQCPP-346 > Project: ActiveMQ C++ Client > Issue Type: Bug > Components: CMS Impl > Affects Versions: 3.1.3, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4 > Environment: Windows XP/VISTA/7 > Reporter: Peter Pfort > Assignee: Timothy Bish > > Hello, > I have found a bug in the implementation of the OpenWire protocol. When y= ou have non ascii character i.e. in the selector of a topic consumer, then = the program hangs in createConsumer. > The problem is in the class BaseDataStreamMarshaller. In BaseDataStreamMa= rshaller::tightMarshalString1() thinks, the string will be converted to UTF= 8, but BaseDataStreamMarshaller::tightMarshalString2() write out the string= with dataOut->writeChars( value ); > I have changed BaseDataStreamMarshaller::tightMarshalString2() to dataOut= ->writeUTF( value ); and everything works fine. > Please correct it in the source. > Best regards --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.