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

Exception is thrown when retrieving an entity which contains an embeddable and the embeddable contains a toMany relation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0, 2.0.0-M2
    • None
    • None

    Description

      Exception is thrown when retrieving an entity which contains an embeddable and the embeddable contains a toMany relation. This happens when QuerySQLCache is on.

      Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
      at org.apache.openjpa.util.ApplicationIds.toPKValues(ApplicationIds.java:83)
      at org.apache.openjpa.jdbc.sql.SelectImpl.wherePrimaryKey(SelectImpl.java:1444)
      at org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.load(StoreCollectionFieldStrategy.java:608)
      at org.apache.openjpa.jdbc.meta.FieldMapping.load(FieldMapping.java:822)
      at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(JDBCStoreManager.java:682)
      at org.apache.openjpa.kernel.DelegatingStoreManager.load(DelegatingStoreManager.java:116)
      at org.apache.openjpa.kernel.ROPStoreManager.load(ROPStoreManager.java:78)

      Attachments

        1. openjpa-815.patch
          17 kB
          Fay Wang

        Activity

          People

            Unassigned Unassigned
            faywang Fay Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: