Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6560

[JDBC Component] ResultMetaData as a header value - IndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.1
    • 2.11.2
    • camel-jdbc
    • None
    • Patch Available
    • Novice

    Description

      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, 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 (based on tag camel-2.11.1).

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              rkraus Radek Kraus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: