When I try to start my grails application, I get the following error with partial stacktrace):
The relevant datasource is:Code:| Error Error executing script RunApp: INSTANCE (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang.NoSuchFieldError: INSTANCE at org.hibernate.dialect.Dialect.<clinit>(Dialect.java:119) at DataSource$_run_closure3_closure4_closure7.class$(DataSource.groovy) at DataSource$_run_closure3_closure4_closure7.$get$$class$org$hibernate$dialect$MySQL5InnoDBDialect(DataSource.groovy) at DataSource$_run_closure3_closure4_closure7.doCall(DataSource.groovy:19) at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231) at DataSource$_run_closure3_closure4_closure7.doCall(DataSource.groovy) at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231) at DataSource$_run_closure3_closure4_closure7.call(DataSource.groovy) at java_util_concurrent_Callable$call.call(Unknown Source) at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231) at DataSource.invokeMethod(DataSource.groovy) at DataSource$_run_closure3.invokeMethod(DataSource.groovy) at DataSource$_run_closure3_closure4.doCall(DataSource.groovy:16) at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231) at DataSource$_run_closure3_closure4.doCall(DataSource.groovy) at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231) at DataSource$_run_closure3_closure4.call(DataSource.groovy) at java_util_concurrent_Callable$call.call(Unknown Source) at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231) at DataSource.invokeMethod(DataSource.groovy) at DataSource$_run_closure3.doCall(DataSource.groovy:15) <snipped>
I am running mySQL 5.5.24 and the driver is mysql-connector-java:5.1.18. It is an older driver, but it is compatible with mySQL 5.5.Code:environments { development { dataSource { logSql = false dbCreate = "create-drop" // one of 'create', 'create-drop','update' dialect=org.hibernate.dialect.MySQL5InnoDBDialect url = "jdbc:mysql://localhost:3306/plover_development?tcpKeepAlive=true" } }
Anyone else encountered a similar problem in the past?


Reply With Quote
