cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Stock <frank.st...@telenet.be>
Subject Eomodeler to Cayenne
Date Wed, 10 Aug 2016 11:35:25 GMT
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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message