Re: Cayenne 3t returning DataObjects instead of Persistent

From: Marcin Skladaniec (marci..sh.com.au)
Date: Mon Jan 16 2006 - 19:34:12 EST

  • Next message: Andrus Adamchik: "Re: Custom Configuration Question"

    On 17/01/2006, at 10:08 AM, Andrus Adamchik wrote:

    >
    > On Jan 16, 2006, at 2:06 AM, Marcin Skladaniec wrote:
    >> 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 ?
    >
    > I won't exclude a possibility of a bug, but I can't reproduce this
    > on my end. Can you come up with an isolated reproducible scenario?
    > Maybe you should try putting a breakpoint in
    > ClientServerChannel.onSelectObjects(..) and run the server in
    > Eclipse debugger to see what really happens.

    We are using Netbeans, and we are using jar cayenne jar files,
    debugging will be difficult. I'm working on isolated scenario, but I
    have more important tasks for now.

    >
    > My bad. "entityResolver" is initialized on demand, so I should be
    > calling 'getEntityResolver' instead of using the ivar. I will check
    > in the fix in 5 minutes.

    > Good point - I am also checking in this code (I simply changed the
    > signature of the methods as DataObject extends Persistent
    > interface)... 'objectForPK' is going to be more tricky as. I'll
    > think what we can do.
    >
    Amazing ... Cayenne has best support I know of.

    Regards
    Marcin



    This archive was generated by hypermail 2.0.0 : Mon Jan 16 2006 - 19:34:14 EST