Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 53808 invoked from network); 3 Sep 2010 20:13:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Sep 2010 20:13:03 -0000 Received: (qmail 37426 invoked by uid 500); 3 Sep 2010 20:13:02 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 37379 invoked by uid 500); 3 Sep 2010 20:13:02 -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 37371 invoked by uid 99); 3 Sep 2010 20:13:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Sep 2010 20:13:02 +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, 03 Sep 2010 20:13:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o83KCfGj024701 for ; Fri, 3 Sep 2010 20:12:41 GMT Message-ID: <17280160.9931283544761088.JavaMail.jira@thor> Date: Fri, 3 Sep 2010 16:12:41 -0400 (EDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQCPP-306) CMS 3.2.1 - Trouble reading empty strings from MapMessage fields In-Reply-To: <21550226.52651280166351785.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQCPP-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61672#action_61672 ] Timothy Bish commented on AMQCPP-306: ------------------------------------- 1. Not really sure what you mean in that first sentence. If you are still seeing issues then have a look at the MapMessageTest case in test-integration and tell me what case I'm not testing for that I should add in order to see the error you are seeing. 2. No, I only use Windows when I have to, so no DLL hell here. 3. See ConnectionMetaData class in CMS. > CMS 3.2.1 - Trouble reading empty strings from MapMessage fields > ---------------------------------------------------------------- > > Key: AMQCPP-306 > URL: https://issues.apache.org/activemq/browse/AMQCPP-306 > Project: ActiveMQ C++ Client > Issue Type: Bug > Components: Example Code > Affects Versions: 3.2.1 > Environment: - CMS 3.2.1 on Windows XP > - ActiveMQ 5.3.0 and Java 1.6.0 on Red Hat Enterprise Linux Server release 5.3 (Tikanga) > - Sending messages to a queue, using persistent messaging (via KahaDB) > Reporter: Evan Kuhn > Assignee: Timothy Bish > Fix For: 3.2.2 > > Attachments: send_empty_string.cpp > > > Hi, > I just upgraded from ActiveMQ CMS 3.1.3 to 3.2.1, and I'm having some trouble reading > empty strings out of MapMessage fields after sending them through the broker. When I > try to do so, MapMessage::getString() throws the exception "Unsupported Type Conversion". > To explain, here's what I do: > - Open a connection with my ActiveMQ broker > - Create a MapMessage. Set two string fields, one empty, one non-empty: > - request->setString("STR_FIELD_1", ""); > - request->setString("STR_FIELD_2", "asdf"); > - Send the message to a queue > - Read the message from the queue > - Read the two string fields from the response: > - response->getString("STR_FIELD_1", ""); > - response->getString("STR_FIELD_2", "asdf"); > > Reading the non-empty string field works fine. Reading the empty one, however, > results in the exception "Unsupported Type Conversion". > Any idea why this is happening? I did not experience this with CMS 3.1.3. > For reference, I'm using: > - CMS 3.2.1 on Windows XP > - ActiveMQ 5.3.0 and Java 1.6.0 on Red Hat Enterprise Linux Server release 5.3 (Tikanga) > - Sending messages to a queue, using persistent messaging (via KahaDB) > I'll post a small C++ program I'm using to reproduce the problem. > Thank you very much for your help > -- Evan Kuhn -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.