Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E8F8D0B9 for ; Tue, 25 Sep 2012 11:00:08 +0000 (UTC) Received: (qmail 87492 invoked by uid 500); 25 Sep 2012 11:00:08 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 87440 invoked by uid 500); 25 Sep 2012 11:00:08 -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 87413 invoked by uid 99); 25 Sep 2012 11:00:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 11:00:07 +0000 Date: Tue, 25 Sep 2012 22:00:07 +1100 (NCT) From: "Andres Velasco (JIRA)" To: dev@activemq.apache.org Message-ID: <779686997.121460.1348570807845.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (AMQCPP-427) Cannot correctly interpret MapMessage from Java broker 5.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Andres Velasco created AMQCPP-427: ------------------------------------- Summary: Cannot correctly interpret MapMessage from Java broker 5.6 Key: AMQCPP-427 URL: https://issues.apache.org/jira/browse/AMQCPP-427 Project: ActiveMQ C++ Client Issue Type: Bug Components: CMS Impl, Openwire Affects Versions: 3.4.4 Environment: linux, broker version 5.6 Reporter: Andres Velasco Assignee: Timothy Bish I am trying to receive MapMessage (in C++) generated from Java application via broker version 5.6. The message is received and is interpreted as a MapMessage. However, it reports all properties as non existent. But I can see the properties using Wireshark. I have the network capture, but dont find a place to paste it here. this is the relevant code:
    // Called from the consumer since this class is a registered MessageListener.
    virtual void onMessage( const Message* message ) throw() {

        static int count = 0;

        try
        {
            count++;

            const MapMessage* mapMessage =
                dynamic_cast( message );
            string text = "";

            if( mapMessage != NULL ) {
                //text = textMessage->getText();
                //text = mapMessage->toString();
                //text = mapMessage->getString("TEXT");
                //text = mapMessage->getString("DESTINATION_ADDRESS");
                text = mapMessage->getString("ORIGIN_ADDRESS");
                if ( mapMessage->itemExists("TEXT") ) {
                  printf("EXISTS\n");
                }

            } else {
                text = "NOT A MAP MESSAGE!";
            }


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira