Yes, as Cayenne itself relies on 3.0 API.
I think Mike Kienenberger had this problem a while ago, and he was able
to upgrade collections used by Struts in his application with no
problems. That's when we decided that rolling back to collections-2.1
is not worth it.
Andrus
On Jun 24, 2004, at 11:48 AM, Leonardo Queiroz Antunes wrote:
> 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(ObjAttribut
>> e
>> .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(Qu
>> e
>> 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.ja
>> v
>> 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.ja
>> v
>> a:1499)
>>
>> 12:25:30,311 ERROR [STDERR] at
>> org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.ja
>> v
>> 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:49:32 EDT