openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Law (JIRA)" <j...@apache.org>
Subject [jira] Closed: (OPENJPA-1601) IndexOutOfBoundsException when querying on entity with embeddable compound key
Date Sun, 28 Mar 2010 16:53:27 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kelvin Law closed OPENJPA-1601.
-------------------------------

    Resolution: Not A Problem

Thanks Fay, it does resolve the issue after setting "openjpa.jdbc.QuerySQLCache" to "false".

However, sorry I am quite new to OpenJPA and would like to understand more.
Would you please explain why we need to set this property to false to fix this issue?
Thanks

> 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