Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2679

Version field in a mapped super class causes java.lang.ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3, 1.3.0
    • Fix Version/s: None
    • Component/s: jdbc
    • Labels:

      Description

      Version field in a mapped super class causes java.lang.ArrayIndexOutOfBoundsException

      StackTrace version 1.2.3
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
      at org.apache.openjpa.jdbc.sql.DBDictionary.appendUpdates(DBDictionary.java:2124)
      at org.apache.openjpa.jdbc.sql.DBDictionary.toBulkOperation(DBDictionary.java:2068)
      at org.apache.openjpa.jdbc.sql.DBDictionary.toUpdate(DBDictionary.java:1953)

      The bug has been fixed in 2.x version, in class org.apache.openjpa.jdbc.meta.FieldMapping, in method public Column[] getColumns() by rgc : 2 March 2011

      The idea is to backport this method from 2.4.0 to 1.x

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yvesdm Yves De Moor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified