You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org> on 2008/02/20 22:16:49 UTC

[JIRA] Closed: (CAY-986) LOCAL_CACHE policy fails when query is paged

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

Andrus Adamchik closed CAY-986.
-------------------------------

    Resolution: Fixed

Caching of paginated lists is actually broken for the server-side DataContext as well, although the symptoms are not as obvious. Should be fixed now.

> 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
>
> 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.SelectQuery@6afa2[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.