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:08:28 EDT