• 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
MySQL JDBC generate SQL exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MySQL JDBC generate SQL exception


  • Subject: MySQL JDBC generate SQL exception
  • From: amiel montecillo <email@hidden>
  • Date: Wed, 18 Feb 2009 11:35:36 +0800

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)
    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

  • Follow-Ups:
    • Re: MySQL JDBC generate SQL exception
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: BigDecimal vs WOConditional
  • Next by Date: Re: MySQL JDBC generate SQL exception
  • Previous by thread: Re: Theorical Question of performActionNamed()
  • Next by thread: Re: MySQL JDBC generate SQL exception
  • Index(es):
    • Date
    • Thread