Cayenne 3t returning DataObjects instead of Persistent

From: Marcin Skladaniec (marci..sh.com.au)
Date: Mon Jan 16 2006 - 02:06:22 EST

  • Next message: Chronos: "Re: Problem with PK"

    Hi.
    We have an application which uses 3t (client swing apps), and
    "standard" Cayenne for SOAP communication with other application, as
    well as for having its own very basic GUI. We were running
    successfully those applications for some time. At some point in time
    server started to send CayenneDataObjects instead of Persistent using
    3t ... I have looked all application over for few times but I cant
    find the cause. What can be wrong with our app, any clues ?
    cayenne.xml was not changed, generated classes neither.
    It looks like it happened at the same time as release 1.2M9... could
    there be a bug in Cayenne ?

    Beside this I CayeneConext.localObjects() throws NullPointerException
    in line 442 -> ObjEntity entity = entityResolver.lookupObjEntity
    (id.getEntityName()); Is that related to the first problem ?
    I'm temporarily adding cayenne.jar (instead of cayenne-client-
    nodeps.jar) to the project, I cant go back, there are too many
    changes in our project since it stopped working properly.

    I have some more, not related questions:
    Is there a replacement to DataObjectUtils.intPKForObject( ) ?

    I have tried to use sessions to provide list of users currently
    logged in to server. The only data I can get on server side is from
    http request (host, port, username etc), service context related data
    like ContextObjectId, and OPPMessage data - parameters and
    attributes. By default OPPMessages have no attributes or params. is
    there a way to add some ? I thought that overriding
    org.objectstyle.cayenne.opp.hessian.HessianService is a good way to
    get more data, should I try something different ?

    Regards
    Marcin Skladaniec



    This archive was generated by hypermail 2.0.0 : Mon Jan 16 2006 - 02:06:28 EST