On Nov 6, 2006, at 09:04, Tore Halset wrote:
> Can anyone with a ROP client verify that I did not break anything.
> It works ok for me at least :)
I broke it :(
NamedQueries does work, but not SelectQuery. I used NamedQueries from
CocoaCayenne, so I discovered it a bit too late. Sorry - working on
it now.
Here are the exception at the server side when issuing a SelectQuery
from the client.
NFO: *** Message error for 1: Query - took 67 ms.
Exception in thread "main"
org.apache.cayenne.CayenneRuntimeException: [v.${project.version} ]
Remote error. URL - http://localhost:8080/cayenne-service; CAUSE - [v.
${project.version} ] [v.${project.version} ] No DataMap found, can't
route query org.apache.cayenne.query.SelectQuer..c1a3[root=class
cayenne.tutorial.client.Artist,name=<null>]
at org.apache.cayenne.remote.hessian.HessianConnection.doSendMessage
(HessianConnection.java:145)
at org.apache.cayenne.remote.BaseConnection.sendMessage
(BaseConnection.java:73)
at org.apache.cayenne.remote.ClientChannel.send(ClientChannel.java:262)
at org.apache.cayenne.remote.ClientChannel.onQuery(ClientChannel.java:
109)
at org.apache.cayenne.util.ObjectContextQueryAction.runQuery
(ObjectContextQueryAction.java:282)
at org.apache.cayenne.CayenneContextQueryAction.execute
(CayenneContextQueryAction.java:51)
at org.apache.cayenne.CayenneContext.onQuery(CayenneContext.java:347)
at org.apache.cayenne.CayenneContext.performQuery(CayenneContext.java:
336)
at cayenne.tutorial.client.Main.main(Main.java:37)
Caused by: org.apache.cayenne.CayenneRuntimeException: [v.$
{project.version} ] [v.${project.version} ] No DataMap found, can't
route query org.apache.cayenne.query.SelectQuer..c1a3[root=class
cayenne.tutorial.client.Artist,name=<null>]
at org.apache.cayenne.query.AbstractQuery.route(AbstractQuery.java:134)
at org.apache.cayenne.query.SelectQuery.route(SelectQuery.java:171)
at org.apache.cayenne.access.DataDomainQueryAction.runQuery
(DataDomainQueryAction.java:406)
at org.apache.cayenne.access.DataDomainQueryAction.access$0
(DataDomainQueryAction.java:393)
at org.apache.cayenne.access.DataDomainQueryAction$2.transform
(DataDomainQueryAction.java:387)
at org.apache.cayenne.access.DataDomain.runInTransaction
(DataDomain.java:800)
at
org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction
(DataDomainQueryAction.java:384)
at org.apache.cayenne.access.DataDomainQueryAction.execute
(DataDomainQueryAction.java:115)
at org.apache.cayenne.access.DataDomain.onQuery(DataDomain.java:710)
at org.apache.cayenne.util.ObjectContextQueryAction.runQuery
(ObjectContextQueryAction.java:282)
at org.apache.cayenne.access.DataContextQueryAction.execute
(DataContextQueryAction.java:60)
at org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1313)
at org.apache.cayenne.access.ClientServerChannelQueryAction.runQuery
(ClientServerChannelQueryAction.java:105)
at org.apache.cayenne.access.ClientServerChannelQueryAction.execute
(ClientServerChannelQueryAction.java:66)
at org.apache.cayenne.access.ClientServerChannel.onQuery
(ClientServerChannel.java:80)
at org.apache.cayenne.remote.service.DispatchHelper.dispatch
(DispatchHelper.java:40)
at org.apache.cayenne.remote.service.BaseRemoteService.processMessage
(BaseRemoteService.java:147)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.caucho.hessian.server.HessianSkeleton.invoke
(HessianSkeleton.java:157)
at com.caucho.hessian.server.HessianServlet.service
(HessianServlet.java:343)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
427)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:475)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:556)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1563)
at org.mortbay.jetty.servlet.WebApplicationContext.handle
(WebApplicationContext.java:623)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1515)
at org.mortbay.http.HttpServer.service(HttpServer.java:956)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
at org.mortbay.http.SocketListener.handleConnection
(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
This archive was generated by hypermail 2.0.0 : Mon Nov 06 2006 - 16:55:40 EST