OpenJPA
  1. OpenJPA
  2. OPENJPA-815

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0, 2.0.0-M2
    • Component/s: None
    • Labels:
      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)

        Activity

        Hide
        Fay Wang added a comment -

        patch is committed to openjpa 1.3.0 r-73477, and trunk r-723480.

        Show
        Fay Wang added a comment - patch is committed to openjpa 1.3.0 r-73477, and trunk r-723480.

          People

          • Assignee:
            Unassigned
            Reporter:
            Fay Wang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development