Re: Getting up and running

From: Gili (cowwo..bs.darktech.org)
Date: Tue Sep 06 2005 - 11:53:52 EDT

  • Next message: Gentry, Michael \(Contractor\): "RE: Getting up and running"

            Good catch. I'm trying to maintain both Hibernate and Cayenne class
    files within the same JAR. Hibernate uses an older release of
    commons-collections (which I've just removed).

            Now I get:

    Caching of unnamed queries is not supported

            I see this has been discussed on the mailing list before but no
    solution was posted. I traced through the code and this seems to be
    caused by a Cayenne bug. In DataContext.java line 1240 we execute:

                     query = select.createQuery(parameters != null
                             ? parameters
                             : Collections.EMPTY_MAP);

            and this discards the query name for some reason, which later on causes
    "Caching of unnamed queries is not supported" to be thrown.

    Gili

    Andrus Adamchik wrote:
    > check that you don't have commons-collections.jar (version < 3.1)
    > elsewhere.
    >
    > Andrus
    >
    > On Sep 6, 2005, at 11:34 AM, Gili wrote:
    >
    >>
    >> I would appreciate some help getting Cayenne up and running. I
    >> ported most of my application over to Cayenne and my code finally
    >> compiles. Now when I try getting up and running I get:
    >>
    >> java.lang.NoSuchMethodError:
    >> org.apache.commons.collections.IteratorUtils.singletonIterator
    >> (Ljava/lang/Object;)Lorg/apache/commons/collections/ ResettableIterator;
    >> at org.objectstyle.cayenne.map.ObjAttribute.getDbPathIterator
    >> (ObjAttribute.java:216)
    >>
    >> I've got cayenne.jar in my classpath. This would all go a lot
    >> quicker (and with less email on the list) if someone could join me at
    >> #cayenne on IRC :)
    >>
    >> Gili
    >> --
    >> http://www.desktopbeautifier.com/
    >>
    >>
    >
    >

    -- 
    http://www.desktopbeautifier.com/
    



    This archive was generated by hypermail 2.0.0 : Tue Sep 06 2005 - 11:53:53 EDT