[SOLVED]: EntityModeler: Failed to generate SQL.

From: Kieran Kelleher (kieran_list..ac.com)
Date: Thu Oct 22 2009 - 15:07:44 EDT

  • Next message: Kieran Kelleher: "Re: EntityModeler: Failed to generate SQL."

    Never mind! .... I had switched recently to extended prototypes usage
    and removed Custom Protos framework from this app and thus the Default
    database connection no longer had a prototype selected in the
    connection settings in the eomodel.

    On Oct 22, 2009, at 2:59 PM, Kieran Kelleher wrote:

    > Any thoughts on this error below during SQL generation? FWIW,
    > ERPrototypes is not linked to the project and the one and only
    > prototype entity is in the model itself and is named:
    > EOJDBCMySQLcheetahPrototypes.
    >
    > WOLips nightly version 3.4.5950
    >
    >
    > java.lang.RuntimeException: Failed to generate SQL.
    > at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory
    > $
    > ReflectionSQLGenerator
    > .generateSchemaCreationScript(EOFSQLGeneratorFactory.java:60)
    > at
    > org
    > .objectstyle
    > .wolips
    > .eomodeler
    > .actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:298)
    > at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog
    > $1.run(GenerateSQLDialog.java:279)
    > at java.lang.Thread.run(Thread.java:613)
    > Caused by: java.lang.reflect.InvocationTargetException
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    > at
    > sun
    > .reflect
    > .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    > at
    > sun
    > .reflect
    > .DelegatingMethodAccessorImpl
    > .invoke(DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:592)
    > at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory
    > $
    > ReflectionSQLGenerator
    > .generateSchemaCreationScript(EOFSQLGeneratorFactory.java:58)
    > ... 3 more
    > Caused by: java.lang.NullPointerException
    > at java.lang.Class.isAssignableFrom(Native Method)
    > at
    > com.webobjects.eoaccess.EOEntity.hasSimplePrimaryKey(EOEntity.java:
    > 4343)
    > at
    > com
    > .webobjects
    > .eoaccess
    > .EOSynchronizationFactory
    > .primaryKeyEntityGroupsForEntities(EOSynchronizationFactory.java:820)
    > at
    > com
    > .webobjects
    > .eoaccess
    > .EOSynchronizationFactory
    > .schemaCreationStatementsForEntities(EOSynchronizationFactory.java:
    > 940)
    > at
    > com
    > .webobjects
    > .eoaccess
    > .EOSynchronizationFactory
    > .schemaCreationScriptForEntities(EOSynchronizationFactory.java:747)
    > at
    > org
    > .objectstyle
    > .wolips
    > .eomodeler
    > .core
    > .sql
    > .EOFSQLGenerator.generateSchemaCreationScript(EOFSQLGenerator.java:
    > 483)
    > ... 8 more
    >



    This archive was generated by hypermail 2.0.0 : Thu Oct 22 2009 - 15:09:28 EDT