FAQ
Hello,

I am working through the ROP tutorial with Version 2.0.4 and Hessian
3.0.13. I have set up the web service and the client, and I know my
client is connecting because the first connections to clear the
database tables work. But, when I try to create a data object on the
client side, it appears I have missed something (see stack below).
Insight would be most appreciated.

Thanks,
Karen



Mar 7, 2009 5:57:52 PM
org.apache.cayenne.remote.hessian.HessianConnection connect
INFO: Connecting to [http://localhost:8080/example-web-tomcat/cayenne-service
] - dedicated session.
Mar 7, 2009 5:57:52 PM
org.apache.cayenne.remote.hessian.HessianConnection connect
INFO: === Connected, session:
org
.apache
.cayenne
.remote
.RemoteSession@3fa6cd[sessionId=112D519F5ADB9D2BEA685B84C6521D45] -
took 122 ms.
Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection
sendMessage
INFO: --- Message 0: Bootstrap
Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection
sendMessage
INFO: === Message 0: Bootstrap done - took 19 ms.
Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection
sendMessage
INFO: --- Message 1: Query
Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection
sendMessage
INFO: === Message 1: Query done - took 12 ms.
Exception in thread "main" org.apache.cayenne.CayenneRuntimeException:
[v.2.0.4 October 8 2007] No entity mapped for class: class
cayenne.tutorial.client.Artist
at org.apache.cayenne.CayenneContext.newObject(CayenneContext.java:266)
at
cayenne
.tutorial
.client
.CayenneTutorialClientApp
.dataObjectsChapter(CayenneTutorialClientApp.java:52)
at
cayenne
.tutorial
.client.CayenneTutorialClientApp.main(CayenneTutorialClientApp.java:41)

Search Discussions

  • Kevin Menard at Mar 8, 2009 at 2:29 pm
    Hi Karen,
    Are you using the client versions of your DataObjects from the client-side
    or are you using the server versions? Normally you map the two to different
    packages.

    --
    Kevin

    On Sat, Mar 7, 2009 at 7:53 PM, Karen Harper wrote:


    Hello,

    I am working through the ROP tutorial with Version 2.0.4 and Hessian
    3.0.13. I have set up the web service and the client, and I know my client
    is connecting because the first connections to clear the database tables
    work. But, when I try to create a data object on the client side, it appears
    I have missed something (see stack below). Insight would be most
    appreciated.

    Thanks,
    Karen



    Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.hessian.HessianConnection
    connect
    INFO: Connecting to [
    http://localhost:8080/example-web-tomcat/cayenne-service] - dedicated
    session.
    Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.hessian.HessianConnection
    connect
    INFO: === Connected, session:
    org.apache.cayenne.remote.RemoteSession@3fa6cd[sessionId=112D519F5ADB9D2BEA685B84C6521D45]
    - took 122 ms.
    Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection sendMessage
    INFO: --- Message 0: Bootstrap
    Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection sendMessage
    INFO: === Message 0: Bootstrap done - took 19 ms.
    Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection sendMessage
    INFO: --- Message 1: Query
    Mar 7, 2009 5:57:52 PM org.apache.cayenne.remote.BaseConnection sendMessage
    INFO: === Message 1: Query done - took 12 ms.
    Exception in thread "main" org.apache.cayenne.CayenneRuntimeException:
    [v.2.0.4 October 8 2007] No entity mapped for class: class
    cayenne.tutorial.client.Artist
    at
    org.apache.cayenne.CayenneContext.newObject(CayenneContext.java:266)
    at
    cayenne.tutorial.client.CayenneTutorialClientApp.dataObjectsChapter(CayenneTutorialClientApp.java:52)
    at
    cayenne.tutorial.client.CayenneTutorialClientApp.main(CayenneTutorialClientApp.java:41)

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriescayenne
postedMar 7, '09 at 11:53p
activeMar 8, '09 at 2:29p
posts2
users2
websitecayenne.apache.org

2 users in discussion

Kevin Menard: 1 post Karen Harper: 1 post

People

Translate

site design / logo © 2022 Grokbase