Andrus Adamchik updated CAY-986:
--------------------------------
Fix Version/s: 3.0
> LOCAL_CACHE policy fails when query is paged
> --------------------------------------------
>
> Key: CAY-986
> URL: https://issues.apache.org/cayenne/browse/CAY-986
> Project: Cayenne
> Issue Type: Bug
> Components: Cayenne Core Library
> Affects Versions: 3.0
> Environment: os x 10.5.2, java 1.5.0_13-119, derby, ROP, cayenne build from svn 613861
> Reporter: Marcin Skladaniec
> Assignee: Andrus Adamchik
> Fix For: 3.0
>
>
> The same query which works when cache policy is set to SHARED_CACHE or NO_CACHE fails to execute with LOCAL_CACHE, exception:
> [java] 11:57:32,230 [AWT-EventQueue-0] ERROR ish.oncourse.controller.ListController :335 - Error performing update query (qualifier: 'org.apache.cayenne.query.SelectQuer..afa2[root=class ish.oncourse.cayenne.Room,name=<null>]')
> [java] java.lang.IllegalArgumentException: Returned page size (40) exceeds requested page size (25)
> [java] at org.apache.cayenne.remote.RemoteIncrementalFaultList.<init>(RemoteIncrementalFaultList.java:127)
> [java] at org.apache.cayenne.CayenneContextQueryAction.interceptPaginatedQuery(CayenneContextQueryAction.java:47)
> [java] at org.apache.cayenne.CayenneContextQueryAction$1.createObject(CayenneContextQueryAction.java:66)
> [java] at org.apache.cayenne.cache.MapQueryCache.get(MapQueryCache.java:74)
> [java] at org.apache.cayenne.util.ObjectContextQueryAction.interceptLocalCache(ObjectContextQueryAction.java:258)
> [java] at org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:82)
> [java] at org.apache.cayenne.CayenneContext.onQuery(CayenneContext.java:364)
> [java] at org.apache.cayenne.CayenneContext.performQuery(CayenneContext.java:352)
> [java] at ish.oncourse.cayenne.CayenneContext.performQuery(CayenneContext.java:227)
> I can do some more debug/testing in later time, very busy now...
-- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
This archive was generated by hypermail 2.0.0 : Wed Feb 20 2008 - 16:22:27 EST