You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Tore Halset <ha...@pvv.ntnu.no> on 2006/11/06 22:53:35 UTC

Re: svn commit: r471567 - in /incubator/cayenne/main/trunk: ./ core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/remote/hessian/service / tutorials/quick-start-rop/cayenne-rop-client-tutorial/ tutorials/quick-start-rop/cayenne-rop-server-tutorial/

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.SelectQuery@ec1a3[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.SelectQuery@ec1a3[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) 

Re: svn commit: r471567 - in /incubator/cayenne/main/trunk: ./ core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/remote/hessian/service / tutorials/quick-start-rop/cayenne-rop-client-tutorial/ tutorials/quick-start-rop/cayenne-rop-server-tutorial/

Posted by Tore Halset <ha...@pvv.ntnu.no>.
On Nov 6, 2006, at 22:53, Tore Halset wrote:

> 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.

This is very strange. Running it a second time - every thing worked  
just fine. Now I can not reproduce the problem. I must be too tired.  
Sorry for this long and boring thread.

  - Tore.

Hessian Upgrade [Was: svn commit: r471567 - in /incubator/cayenne/mai...]

Posted by Andrus Adamchik <an...@objectstyle.org>.
Interestingly, all unit tests do pass with the new Hessian jars. I  
think it may be worthwhile setting up integration test environment to  
test in a real container (e.g. via Cargo: http:// 
cargo.codehaus.org/). Just an idea.

Andrus


On Nov 6, 2006, at 10:00 PM, Aristedes Maniatis wrote:
> On 07/11/2006, at 8:53 AM, 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.
>
> I am seeing a breakage. I'll have time later tonight to delve into  
> exactly where, but the first query we do fails. So far I just took  
> our working application, updated Cayenne to current svn and  
> Hessian, and tried some basic tests.
>
> Ari Maniatis
>
>
>
> -------------------------->
> ish
> http://www.ish.com.au
> Level 1, 30 Wilson Street Newtown 2042 Australia
> phone +61 2 9550 5001   fax +61 2 9550 4001
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>
>


Re: svn commit: r471567 - in /incubator/cayenne/main/trunk: ./ core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/remote/hessian/service / tutorials/quick-start-rop/cayenne-rop-client-tutorial/ tutorials/quick-start-rop/cayenne-rop-server-tutorial/

Posted by Aristedes Maniatis <ar...@ish.com.au>.
On 07/11/2006, at 8:53 AM, 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.

I am seeing a breakage. I'll have time later tonight to delve into  
exactly where, but the first query we do fails. So far I just took  
our working application, updated Cayenne to current svn and Hessian,  
and tried some basic tests.

Ari Maniatis



-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A