I have version 3.1 in ERCayenne and I have replaced it with 3.2.2 and even
4-4.1 with the same result
> Op 10 aug. 2016, om 16:30 heeft John Huss <[email protected]> het volgende
> geschreven:
>
> java.lang.NoSuchMethodError: org.apache.commons.collections
> .IteratorUtils.singletonIterator(Ljava/lang/Object;)Lorg/
> apache/commons/collections/ResettableIterator;
>
> This means that you have a version of the commons-collections jar in your
> classpath that is too old. There may be an old one and a new one. You can
> search workspace by pressing Cmd+Shift+R, and you can search your
> frameworks with the Terminal using find, like "find /Library/Frameworks/
> -name 'commons-collections*.jar'"
>
> On Wed, Aug 10, 2016 at 6:35 AM Frank Stock <[email protected]> wrote:
>
>> Hi,
>>
>>
>> I am trying to build from scratch. But I am having problems to convert my
>> EOModel to Cayenne.
>> I follow the example of your presentation at WOWODC 2016 - Bootique.io <
>> http://bootique.io/>.
>> Importing from the CayenneModeler doesn't work: there are no types in the
>> conversion.
>> I have tried now to use the Cayenneconverter in WO but I get:
>>
>> aug 10 13:00:05 ChemLabISO[56477] WARN NSLog - A fatal exception
>> occurred:
>> org.apache.commons.collections.IteratorUtils.singletonIterator(Ljava/lang/Object;)Lorg/apache/commons/collections/ResettableIterator;
>> [2016-8-10 13:0:5 CEST] <main> java.lang.NoSuchMethodError:
>> org.apache.commons.collections.IteratorUtils.singletonIterator(Ljava/lang/Object;)Lorg/apache/commons/collections/ResettableIterator;
>> at
>> org.apache.cayenne.map.ObjAttribute.getDbPathIterator(ObjAttribute.java:249)
>> at
>> org.apache.cayenne.map.ObjAttribute.getDbAttribute(ObjAttribute.java:175)
>> at
>> org.apache.cayenne.map.ObjAttribute.encodeAsXML(ObjAttribute.java:114)
>> at org.apache.cayenne.util.XMLEncoder.print(XMLEncoder.java:84)
>> at org.apache.cayenne.map.ObjEntity.encodeAsXML(ObjEntity.java:180)
>> at org.apache.cayenne.util.XMLEncoder.print(XMLEncoder.java:74)
>> at org.apache.cayenne.map.DataMap.encodeAsXML(DataMap.java:386)
>> at org.apache.cayenne.map.DataMap.encodeAsXML(DataMap.java:314)
>> at er.cayenne.CayenneConverter.run(CayenneConverter.java:167)
>> at iso.app.Application.<init>(Application.java:16)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>> at java.lang.Class.newInstance(Class.java:442)
>> at
>> com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
>> at
>> er.extensions.appserver.ERXApplication.main(ERXApplication.java:877)
>> at iso.app.Application.main(Application.java:9)
>>
>> I can see the start of the conversion in the map.xml file. It must have
>> something to do at the end of the file. It only works when there are no
>> tabels in the EOModel.
>>
>> Thanks,
>> Frank