It’s in the previous email. Here again: public static ERXEnterpriseObjectCache<Airport> cacheByPrimaryKey = new ERXEnterpriseObjectCache<Airport>(Airport.ENTITY_NAME, "primaryKey", // Cache Key null, // qualifier 300000L, // timeout - 0=never true, // shouldRetainObjects true, // shouldFetchInitialValues false); // shouldReturnUnsavedObjects
Ah… “shouldFetchInitialValues” I guess that’s going to actually try to do some EOF work, which in WOLips isn’t really going to be possible… I see what you were saying about lazy initializing it instead of doing it in a static variable. I still say it’s weird to be initializing the EO to do SQL generation… So there. I retain some of my dignit… no, I don’t have any of that … I retain some of my blind belief that not everything is my fault. Dave On Apr 24, 2014, at 12:18 PM, Chuck Hill <ch...@global-village.net> wrote: > Still working on my first cup of coffee… is the issue here that you are suing > a static initializer on an EO? If so, I think you need to show it to us, or > tell us why. That is a bad thing to do if it touches any of EOF. It just > is. > > Chuck > > > On 2014-04-24, 8:42 AM, "David Avendasora" wrote: > > > On Apr 24, 2014, at 11:05 AM, David Avendasora <webobje...@avendasora.com> > wrote: > >> If ERXEnterpriseObjectCache breaks it, what else can? > > That was *supposed* to be rhetorical. But, well, guess what? I can tell you > at least one other thing that breaks it: > ERXFrameworkPrincipal.setUpFrameworkPrincipalClass(Class) > > Seriously, does SQL Generation work for anyone using Wonder? I’m just curious > because I can’t see how it does. > > Either that or I’m doing something fundamentally wrong. Place your bets! > > Dave > > > java.lang.NoClassDefFoundError: com/webobjects/directtoweb/D2W > at java.lang.Class.getDeclaredFields0(Native Method) > at java.lang.Class.privateGetDeclaredFields(Class.java:2348) > at java.lang.Class.getField0(Class.java:2675) > at java.lang.Class.getField(Class.java:1554) > at > er.extensions.ERXFrameworkPrincipal.setUpFrameworkPrincipalClass(ERXFrameworkPrincipal.java:157) > at > er.extensions.ERXFrameworkPrincipal.setUpFrameworkPrincipalClass(ERXFrameworkPrincipal.java:163) > at > er.corebusinesslogic.ERCoreBusinessLogic.<clinit>(ERCoreBusinessLogic.java:82) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:171) > at > com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:348) > at com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:335) > at com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:1760) > at com.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:700) > at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:344) > at > com.webobjects.eoaccess.EOAdaptor.infoDictionaryForAdaptorNamed(EOAdaptor.java:230) > at > com.webobjects.eoaccess.EOAdaptor.classNameForAdaptorNamed(EOAdaptor.java:246) > at com.webobjects.eoaccess.EOAdaptor.classForAdaptorNamed(EOAdaptor.java:262) > at com.webobjects.eoaccess.EOAdaptor.adaptorWithName(EOAdaptor.java:287) > at com.webobjects.eoaccess.EOAdaptor.adaptorWithModel(EOAdaptor.java:312) > at com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:624) > at com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699) > at com.webobjects.eoaccess.EOAttribute.<init>(EOAttribute.java:998) > at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816) > at > org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGenerator53.createLocalizedAttributes(EOFSQLGenerator53.java:339) > at > org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGenerator53.localizeEntities(EOFSQLGenerator53.java:276) > at > org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGenerator53.<init>(EOFSQLGenerator53.java:206) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at > org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory.sqlGenerator(EOFSQLGeneratorFactory.java:43) > at > org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:297) > at > org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run(GenerateSQLDialog.java:279) > at java.lang.Thread.run(Thread.java:695) > Caused by: java.lang.ClassNotFoundException: com.webobjects.directtoweb.D2W > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:627) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > ... 34 more > > > > > ————————————————————————————— > WebObjects - so easy that even Dave Avendasora can do it!™ > ————————————————————————————— > David Avendasora > Senior Software Abuser > Nekesto, Inc. > > > > > ————————————————————————————— WebObjects - so easy that even Dave Avendasora can do it!™ ————————————————————————————— David Avendasora Senior Software Abuser Nekesto, Inc.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com