Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-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 70F5797EA for ; Mon, 19 Sep 2011 19:40:32 +0000 (UTC) Received: (qmail 3937 invoked by uid 500); 19 Sep 2011 19:40:32 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 3905 invoked by uid 500); 19 Sep 2011 19:40:32 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 3896 invoked by uid 99); 19 Sep 2011 19:40:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2011 19:40:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2011 19:40:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E86A6A2513 for ; Mon, 19 Sep 2011 19:40:08 +0000 (UTC) Date: Mon, 19 Sep 2011 19:40:08 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: dev@camel.apache.org Message-ID: <892745030.43516.1316461208948.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <251700407.11434.1310138296578.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAMEL-4198) Bindy Parser not handling Null values in KVP MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-4198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp updated CAMEL-4198: ------------------------------- Fix Version/s: 2.8.2 > Bindy Parser not handling Null values in KVP > -------------------------------------------- > > Key: CAMEL-4198 > URL: https://issues.apache.org/jira/browse/CAMEL-4198 > Project: Camel > Issue Type: Bug > Components: camel-bindy > Affects Versions: 2.7.1 > Environment: developement > Reporter: surya > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.8.2, 2.9.0 > > Attachments: BindyKeyValuePairFactory_patch_4198.patch, BindyKeyValuePairFactory_patch_4198.patch, fix.txt, fix.txt > > > Camel Bindy is not handling null values in KVP. It throws ArrayIndexOutOfBounds Exception. > From the source below if FIX message has a key value pair with null value i.e (eg: 43=1|63=|64=xyz) the key 63 has no value an while parsing it throws exception for keyValuePair[1]. > // Get KeyValuePair > String[] keyValuePair = s.split(getKeyValuePairSeparator()); > // Extract Key > int key = Integer.parseInt(keyValuePair[0]); > // Extract key value > String value = keyValuePair[1]; -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira