Re: No DataMap found for query exception???

From: Mike Kienenberger (mkienen..laska.net)
Date: Tue Aug 10 2004 - 16:20:40 EDT

  • Next message: Arnaud GARCIA: "error saving object, IndexOutOfBoundsException ?"

    =?ISO-8859-1?Q?Holger_Hoffst=E4tte?= <holge..izards.de> wrote:
    >
    > >>After a lot of frustrating time, I found that
    > >>the comparison of XYZ.class to the "entityClass" was false...
    > >>that is, all of my objects were being correctly placed into the
    > >>dbEntityCache, but, due to some weirdness in java,
    > >>User.class didn't equal User.class. (User.class.getName()
    > >>did equal entityClass.getName(), though). So, w/ a different
    > >>jvm, things are working.
    >
    > Just a note:
    > This is very unlikely a bug in the JVM, but rather a misunderstanding. The

    > observed behaviour is completely normal and in fact correct when both User

    > classes have been loaded by different class loaders.

    Holger, that's a good point.

    I wonder why Cayenne would have loaded the entities in two different
    classloaders, though.

    -Mike



    This archive was generated by hypermail 2.0.0 : Tue Aug 10 2004 - 16:20:20 EDT