You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Fay Wang (JIRA)" <ji...@apache.org> on 2008/12/05 00:52:44 UTC

[jira] Commented: (OPENJPA-815) Exception is thrown when retrieving an entity which contains an embeddable and the embeddable contains a toMany relation

    [ https://issues.apache.org/jira/browse/OPENJPA-815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653554#action_12653554 ] 

Fay Wang commented on OPENJPA-815:
----------------------------------

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

> Exception is thrown when retrieving an entity which contains an embeddable and the embeddable contains a toMany relation 
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-815
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-815
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Fay Wang
>             Fix For: 1.3.0, 2.0.0
>
>         Attachments: openjpa-815.patch
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.