openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fay Wang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-1601) IndexOutOfBoundsException when querying on entity with embeddable compound key
Date Mon, 29 Mar 2010 15:32:28 GMT

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

Fay Wang commented on OPENJPA-1601:
-----------------------------------

Hi Kelvin,
   The cache design for openjpa 1.2 has problems. This area is overhauled in the openjpa 2.x
code base. You might want to try openjpa 2.x or trunk level code. 

> IndexOutOfBoundsException when querying on entity with embeddable compound key
> ------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1601
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1601
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 1.2.2
>            Reporter: Kelvin Law
>         Attachments: openjpa.test.zip
>
>
> When querying on inheritance entities with compound key, OpenJPA will report the following
exception:
> Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
> 	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> 	at java.util.ArrayList.get(ArrayList.java:322)
> 	at org.apache.openjpa.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:615)
> 	at org.apache.openjpa.jdbc.sql.SQLBuffer.prepareStatement(SQLBuffer.java:515)
> 	at org.apache.openjpa.jdbc.sql.SQLBuffer.prepareStatement(SQLBuffer.java:471)
> 	at org.apache.openjpa.jdbc.sql.SelectImpl.prepareStatement(SelectImpl.java:463)
> 	at org.apache.openjpa.jdbc.sql.SelectImpl.execute(SelectImpl.java:379)
> 	at org.apache.openjpa.jdbc.sql.SelectImpl.execute(SelectImpl.java:325)
> 	at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.getInitializeStateResult(JDBCStoreManager.java:503)
> 	at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initializeState(JDBCStoreManager.java:322)
> 	at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initialize(JDBCStoreManager.java:278)
> 	at org.apache.openjpa.kernel.DelegatingStoreManager.initialize(DelegatingStoreManager.java:111)
> 	at org.apache.openjpa.datacache.DataCacheStoreManager.initialize(DataCacheStoreManager.java:352)
> 	at org.apache.openjpa.kernel.DelegatingStoreManager.initialize(DelegatingStoreManager.java:111)
> 	at org.apache.openjpa.kernel.ROPStoreManager.initialize(ROPStoreManager.java:57)
> 	at org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:913)
> 	at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:871)

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


Mime
View raw message