Re: Error on SQL generation

From: Mike Schrag (mschra..dimension.com)
Date: Sat Mar 08 2008 - 12:03:20 EST

  • Next message: Johann Werner: "Re: Eclipse/WOLips settings?"

    I suspect it's 5.4 vs 5.3, not Leopard vs Tiger ... I've never run EM
    against a release version of 5.4, because I only use 5.3. Does SQL
    gen work for anyone on 5.4? Does someone with 5.4 running want to jad
    and look at some of those methods and see what would cause that?

    ms

    On Mar 8, 2008, at 11:58 AM, David Holt wrote:

    > Right list might help!
    >
    > I got the following error from EntityModeler when I tried to
    > generate SQL. This is happening on Leopard. The same model was
    > working fine on my Tiger work machine. Same version of Eclipse 3.3.2
    > and WOLips nightly, WO 5.4.1
    >
    > A brand new project and model resulted in the same error. They're
    > WOnder projects, but I doubt that is where the issue lies...
    >
    > java.lang.NullPointerException
    > at com.webobjects.foundation.NSDictionary.<init>(NSDictionary.java:
    > 341)
    > at
    > com
    > .webobjects
    > .eoaccess.EOAdaptor.setConnectionDictionary(EOAdaptor.java:758)
    > at
    > com
    > .webobjects
    > .jdbcadaptor.JDBCAdaptor.setConnectionDictionary(JDBCAdaptor.java:214)
    > at
    > com.webobjects.eoaccess.EOAdaptor.adaptorWithModel(EOAdaptor.java:315)
    > at
    > com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:622)
    > at
    > com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:
    > 697)
    > at com.webobjects.eoaccess.EOAttribute.<init>(EOAttribute.java:998)
    > at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:814)
    > at com.webobjects.eoaccess.EOEntity.attributeNamed(EOEntity.java:787)
    > at
    > com
    > .webobjects
    > .eoaccess.EORelationship.awakeWithPropertyList(EORelationship.java:
    > 941)
    > at com.webobjects.eoaccess.EOEntity.relationships(EOEntity.java:1069)
    > at com.webobjects.eoaccess.EOEntity.relationshipNamed(EOEntity.java:
    > 914)
    > at com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:
    > 1098)
    > at
    > org
    > .objectstyle
    > .wolips
    > .eomodeler
    > .core
    > .sql.EOFSQLGenerator.createLocalizedAttributes(EOFSQLGenerator.java:
    > 276)
    > at
    > org
    > .objectstyle
    > .wolips
    > .eomodeler
    > .core.sql.EOFSQLGenerator.localizeEntities(EOFSQLGenerator.java:228)
    > at
    > org
    > .objectstyle
    > .wolips
    > .eomodeler.core.sql.EOFSQLGenerator.<init>(EOFSQLGenerator.java:171)
    > 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:494)
    > at
    > org
    > .objectstyle
    > .wolips
    > .eomodeler
    > .core
    > .sql.EOFSQLGeneratorFactory.sqlGenerator(EOFSQLGeneratorFactory.java:
    > 33)
    > at
    > org
    > .objectstyle
    > .wolips
    > .eomodeler
    > .actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:270)
    > at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog
    > $1.run(GenerateSQLDialog.java:252)
    > at java.lang.Thread.run(Thread.java:613)
    >



    This archive was generated by hypermail 2.0.0 : Sat Mar 08 2008 - 12:04:27 EST