• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MySQL JDBC generate SQL exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MySQL JDBC generate SQL exception


  • Subject: Re: MySQL JDBC generate SQL exception
  • From: amiel montecillo <email@hidden>
  • Date: Thu, 19 Feb 2009 09:04:21 +0800

As expected from a noob screwed up. Thanks Chuck!

Though it would have been nice to see that suggestion on the error message box? That would keep noobs like me spamming the list.

Amiel

On Wed, Feb 18, 2009 at 11:56 AM, Chuck Hill <email@hidden> wrote:

On Feb 17, 2009, at 7:35 PM, amiel montecillo wrote:

Hello List,

I am trying to generate the sql for my eomodel but got an exception:

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:595)
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:58)
   ... 3 more
Caused by: java.lang.NullPointerException
   at com.webobjects.jdbcadaptor.JDBCExpression.columnTypeStringForAttribute(JDBCExpression.java:160)

Check your model for missing external type on one of your attributes.


Chuck



   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:233)
   at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGenerator.generateSchemaCreationScript(EOFSQLGenerator.java:483)
   ... 8 more

I have the latest wolips nightly build and WO 5.4.3, mysql connector/j 5.1.7

I found this a post simillar to my problem at http://lists.apple.com/archives/webobjects-dev/2008/May/msg00882.html but this was a few months ago.

Does anyone know if this is already resolved?

Thanks,
Amiel

--
socket error: unable to connect to 127.0.0.1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









--
socket error: unable to connect to 127.0.0.1
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: MySQL JDBC generate SQL exception
      • From: David Avendasora <email@hidden>
    • Re: MySQL JDBC generate SQL exception
      • From: Chuck Hill <email@hidden>
References: 
 >MySQL JDBC generate SQL exception (From: amiel montecillo <email@hidden>)
 >Re: MySQL JDBC generate SQL exception (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Using MS SQL Server with WO
  • Next by Date: java wotaskd crash
  • Previous by thread: Re: MySQL JDBC generate SQL exception
  • Next by thread: Re: MySQL JDBC generate SQL exception
  • Index(es):
    • Date
    • Thread