Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-363

JdbcItemReader->Writer fail after upgrage 1.1.0.Final to 1.3.0.Beta6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.3.0.Beta7
    • 1.2.0.Final, 1.3.0.Alpha1
    • jberet-support
    • None

    Description

      when java.util.List is used as beanType (each data item fed to jdbcItemWriter is a List), jdbcItemWriter tries to assign each element of the list to a insert-sql parameter. If the list size is greater than the number of sql parameters (i.e., some elements in the end of the list should not be used), jdbcItemWriter will still try to assign to a non-exist sql parameter, causing out-of-range exeption.

      The commit that made the difference in jdbcItemWriter when handling java.util.List type data item:

      https://github.com/jberet/jsr352/commit/7d4f04bd52c7030e34fb17c1f0f798dc0a3bc9b7

      there a code block was added to skip determing insert sql parameters when java.util.List is used.

      Attachments

        Issue Links

          Activity

            People

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: