Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 58169 invoked from network); 12 Mar 2007 20:32:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2007 20:32:55 -0000 Received: (qmail 62154 invoked by uid 500); 12 Mar 2007 20:33:04 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 62113 invoked by uid 500); 12 Mar 2007 20:33:03 -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 62086 invoked by uid 99); 12 Mar 2007 20:33:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 13:33:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Mon, 12 Mar 2007 13:32:54 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 750C1714044 for ; Mon, 12 Mar 2007 13:32:34 -0700 (PDT) Message-ID: <11483144.1173731554458.JavaMail.jira@brutus> Date: Mon, 12 Mar 2007 13:32:34 -0700 (PDT) From: "Albert Strasheim (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQCPP-77) Inconsistency when getting string property between Stomp and Openwire 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 Inconsistency when getting string property between Stomp and Openwire --------------------------------------------------------------------- Key: AMQCPP-77 URL: https://issues.apache.org/activemq/browse/AMQCPP-77 Project: ActiveMQ C++ Client Issue Type: Bug Components: Openwire Affects Versions: 2.0 Reporter: Albert Strasheim Assigned To: Nathan Mittler In our current code we call getStringProperty on a BytesMessage for a property that might not exist. When running with Stomp, this returns an empty string. When running with Openwire, a NoSuchElementException is thrown. We could easily change our code to first check whether the property exists with propertyExists prior to getting it, but Stomp and Openwire should probably handle missing string properties in the same way. I think this default empty string value was added at some point to avoid null pointers elsewhere in the code. Refer to AMQCPP-43. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.