You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Radek Kraus (JIRA)" <ji...@apache.org> on 2013/07/18 10:46:49 UTC

[jira] [Created] (CAMEL-6560) [JDBC Component] ResultMetaData as a header value - IndexOutOfBoundsException

Radek Kraus created CAMEL-6560:
----------------------------------

             Summary: [JDBC Component] ResultMetaData as a header value - IndexOutOfBoundsException
                 Key: CAMEL-6560
                 URL: https://issues.apache.org/jira/browse/CAMEL-6560
             Project: Camel
          Issue Type: Bug
          Components: camel-jdbc
    Affects Versions: 2.11.1
            Reporter: Radek Kraus


The {{java.lang.IndexOutOfBoundsException: Index: 0, Size: 0}} exception is thrown, if select statement returns empty result.

The correction is already made in version 2.12.0, see issue [CAMEL-6157|https://issues.apache.org/jira/browse/CAMEL-6157], but this 'Parametrized queries in JDBC component' issue looks as more complex. 

It will be nice to fix only this exception in version 2.11.2. I attached the extended {{JdbcRSMetaDataTest.java}} and fixed {{JdbcProducer.java}} as patch.


--
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