RES: org.apache.commons.collections.IteratorUtils.singletonIterator

From: Leonardo Queiroz Antunes (Leonardo.Antune..r-tcs.com)
Date: Thu Jun 24 2004 - 11:48:34 EDT

  • Next message: Andrus Adamchik: "Re: DB Adapter Failing to Load"

    Even if i deploy the file cayenne.jar instead of cayenne-nodes.jar?

    ________________________________

    De: Andrus Adamchik [mailto:andru..bjectstyle.org]
    Enviada: qui 24/6/2004 12:40
    Para: cayenne-use..bjectstyle.org
    Assunto: Re: org.apache.commons.collections.IteratorUtils.singletonIterator

    Hi Leonardo,

    This is cause Cayenne 1.1 uses commons-collections 3.0.

    Your container (what do you have ? JBoss, Tomcat?) or your application
    may stick collections-2.1 somewhere in the classpath. You will have to
    upgrade it to 3.0, this should fix the error.

    Andrus

    On Jun 24, 2004, at 11:35 AM, Leonardo Queiroz Antunes wrote:

    > Please help!
    >
    > I´m on 1.1M7 and when i perform the query i get this error. It does
    > not happen on 1.0.7.
    >
    > Thanks,
    >
    > Leonardo
    >
    > 12:25:30,311 ERROR [STDERR] Caused by: java.lang.NoSuchMethodError:
    > org.apache.commons.collections.IteratorUtils.singletonIterator(Ljava/
    > lang/Object;)Lorg/apache/commons/collections/ResettableIterator;
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.map.ObjAttribute.getDbPathIterator(ObjAttribute
    > .java:184)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.trans.SelectTranslator.appendAttributes(
    > SelectTranslator.java:318)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.trans.SelectTranslator.buildColumnList(S
    > electTranslator.java:268)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.trans.SelectTranslator.createSqlString(S
    > electTranslator.java:118)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.trans.QueryAssembler.createStatement(Que
    > ryAssembler.java:131)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.DataNode.runSelect(DataNode.java:381)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:
    > 343)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.DataDomain.performQueries(DataDomain.jav
    > a:654)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.j
    > ava:1325)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.Transaction.performQueries(Transaction.j
    > ava:176)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.j
    > ava:1284)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.jav
    > a:1499)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.jav
    > a:1404)
    >
    > 12:25:30,311 ERROR [STDERR] at
    > br.ucb.msiab.entidade.Usuario.getUsuario(Usuario.java:25)
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Jun 24 2004 - 11:45:05 EDT