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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.2.0.Final, 1.3.0.Alpha1
    • Fix Version/s: 1.3.0.Beta7
    • Component/s: jberet-support
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  cfang Cheng Fang
                  Reporter:
                  cfang Cheng Fang
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: