Re: EntityModeler: Failed to generate SQL.

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

  • Next message: David Avendasora: "Re: JavaHL interface not available with Eclipse3.5.1 Cocoa + Maclipse + Subclipse 1.6"

    Problem solved as per previous email, however to answer your question,
    EntityModeler does support the ERXModel naming conventions it
    seems ... see this screenshot. I think you said that sometime last
    year IIRC.

    The ones with arrows are model based ones from the project and linked
    frameworks.

    On Oct 22, 2009, at 3:07 PM, Mike Schrag wrote:

    > Does EntityModeler support loading those custom prototype names? It
    > looks to me like you have a pk with an unknown value type (to entity
    > modeler). You should get a warning or error at startup if it can't
    > find a prototype name, though.
    >
    > ms
    >
    > 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:17:50 EDT