Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 80047 invoked from network); 7 Feb 2008 15:58:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 15:58:02 -0000 Received: (qmail 29889 invoked by uid 500); 7 Feb 2008 15:57:54 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 29859 invoked by uid 500); 7 Feb 2008 15:57:54 -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 29850 invoked by uid 99); 7 Feb 2008 15:57:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 07:57:54 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 15:57:46 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E4351714074 for ; Thu, 7 Feb 2008 07:57:36 -0800 (PST) Message-ID: <6378997.1202399856930.JavaMail.jira@brutus> Date: Thu, 7 Feb 2008 07:57:36 -0800 (PST) From: "Thomas Johnson (JIRA)" To: dev@activemq.apache.org Subject: [jira] Reopened: (AMQCPP-166) MapMessage does not send mapped fields In-Reply-To: <19107813.1202304875920.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQCPP-166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Johnson reopened AMQCPP-166: ----------------------------------- The message has to be sent to a topic for the test to fail. Sorry I did not notice this yesterday. > MapMessage does not send mapped fields > -------------------------------------- > > Key: AMQCPP-166 > URL: https://issues.apache.org/activemq/browse/AMQCPP-166 > Project: ActiveMQ C++ Client > Issue Type: Bug > Components: Openwire > Affects Versions: 2.1.3 > Environment: 32-bit XP client with client compiled under VS 2005, ActiveMQ v5.0 is running on a 32-bit Windows 2003 server. > Reporter: Thomas Johnson > Assignee: Timothy Bish > > Modified the vs2005-activemq-example's HelloWorldProducer to use a map message: > MapMessage *message=session->createMapMessage(); > message->setInt("MsgNum",ix); > message->setString("Thread",threadIdStr.c_str()); > producer->send( message ); > and the HelloWorldConsumer to receive it: > const MapMessage * mapMessage= > dynamic_cast(message); > if (mapMessage!=NULL) { > int num=mapMessage->getInt("MsgNum"); > printf("Msg #%d from thread %s\n",num,mapMessage->getString("Thread").c_str()); > } else { > printf("Not a map message\n"); > } > The getInt with Msgnum throw a field not in map exception. After closer inspection, the map was empty. Also, while not an expert in the code, but I tried tracing it through the producer->send and as far as I could tell, the map was never marshalled. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.