camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-4198) Bindy Parser not handling Null values in KVP
Date Mon, 19 Sep 2011 19:40:08 GMT

     [ 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

        

Mime
View raw message