If you are using WebObjects 5.4, the SQL generation is broken. It works just fine in 5.3.

http://lists.apple.com/archives/webobjects-dev/2008/Apr/msg00585.html

Dave

On May 22, 2008, at 3:53 AM, Francisc Simon wrote:

Hi @all,


i've tried to connect to my mysql database and create the sql with Entity Modeler but it gives me the following error:
Can somebody help me please ?
THX :-)


java.lang.RuntimeException: Failed to generate SQL.
at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory $ ReflectionSQLGenerator .generateSchemaCreationScript(EOFSQLGeneratorFactory.java:57) at org .objectstyle .wolips .eomodeler .actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:271) at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog $1.run(GenerateSQLDialog.java:252)
        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:585)
at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory $ ReflectionSQLGenerator .generateSchemaCreationScript(EOFSQLGeneratorFactory.java:55)
        ... 3 more
Caused by: java.lang.NullPointerException
at com .webobjects .jdbcadaptor .JDBCExpression.columnTypeStringForAttribute(JDBCExpression.java:160) at com .webobjects .eoaccess .synchronization .EOSchemaSynchronizationFactory ._columnCreationClauseForAttribute (EOSchemaSynchronizationFactory.java:2124) at com .webobjects .eoaccess .synchronization .EOSchemaSynchronizationFactory .createTableStatementsForEntityGroup (EOSchemaSynchronizationFactory.java:350) at com .webobjects .eoaccess .synchronization .EOSchemaSynchronizationFactory .createTableStatementsForEntityGroups (EOSchemaSynchronizationFactory.java:500) at com .webobjects .eoaccess .synchronization .EOSchemaSynchronizationFactory .schemaCreationStatementsForEntities (EOSchemaSynchronizationFactory.java:887) at com .webobjects .eoaccess .synchronization .EOSchemaSynchronizationFactory .schemaCreationScriptForEntities(EOSchemaSynchronizationFactory.java: 685) at com .webobjects .eoaccess .EOSynchronizationFactory .schemaCreationScriptForEntities(EOSynchronizationFactory.java:220) at org .objectstyle .wolips .eomodeler .core .sql .EOFSQLGenerator.generateSchemaCreationScript(EOFSQLGenerator.java: 407)
        ... 8 more


_______________________________________________
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:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to