cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Bondareva (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAY-2068) ObjectSelect limit bug
Date Wed, 13 Apr 2016 10:00:30 GMT

    [ https://issues.apache.org/jira/browse/CAY-2068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15231941#comment-15231941
] 

Olga Bondareva edited comment on CAY-2068 at 4/13/16 10:00 AM:
---------------------------------------------------------------

Query:
     List<Painting> paintings2 = ObjectSelect.query(Painting.class).cacheStrategy(QueryCacheStrategy.SHARED_CACHE)
                .where(Painting.NAME.likeIgnoreCase("gi%")).limit(2).select(context);


was (Author: ollybondareva):
Query:
     List<Painting> paintings2 = ObjectSelect.query(Painting.class).cacheStrategy(QueryCacheStrategy.SHARED_CACHE_REFRESH)
                .where(Painting.NAME.likeIgnoreCase("gi%")).limit(2).select(context);

> ObjectSelect limit bug
> ----------------------
>
>                 Key: CAY-2068
>                 URL: https://issues.apache.org/jira/browse/CAY-2068
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 4.0.M2
>            Reporter: Alexandr
>
> Using limit method of ObjectSetect cause such exception:
> org.apache.cayenne.CayenneRuntimeException: [v.4.0.M2 Feb 26 2015 08:16:32] [v.4.0.M2
Feb 26 2015 08:16:32] Exception processing message org.apache.cayenne.remote.QueryMessage
of type Query
> 	at org.apache.cayenne.remote.service.BaseRemoteService.processMessage(BaseRemoteService.java:154)
> 	at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:180)
> 	at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:109)
> 	at com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:396)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
> 	at ish.oncourse.server.servlet.SecurityFilter.processRequest(SecurityFilter.java:260)
> 	at ish.oncourse.server.servlet.SecurityFilter.doFilter(SecurityFilter.java:208)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> 	at ish.oncourse.server.servlet.DefaultFilter.doFilter(DefaultFilter.java:41)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:499)
> 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
> 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
> 	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.Exception: Conversion = '"'
> 	at org.apache.cayenne.remote.service.BaseRemoteService.processMessage(BaseRemoteService.java:150)
> 	... 31 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message