java - Grails hibernate 方言

标签 java hibernate grails

我遇到了一个奇怪的问题,目前无法解决。

今天我无法再启动我的 grails 应用程序。应用程序代码没有改变,上周运行顺利。

这是输出:

| Loading Grails 2.0.3
| Configuring classpath.
| Environment set to development.....
| Packaging Grails application.....
| Compiling 1 source files.
path: /home/jacopo/.grailsApp/xml
| Error Error executing script RunApp: null (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.ExceptionInInitializerError
  at org.hibernate.dialect.Dialect.<clinit>(Dialect.java:113)
  at DataSource$_run_closure1.class$(DataSource.groovy)
  at DataSource$_run_closure1.$get$$class$org$hibernate$dialect$MySQL5InnoDBDialect(DataSource.groovy)
  at DataSource$_run_closure1.doCall(DataSource.groovy:26)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at DataSource$_run_closure1.doCall(DataSource.groovy)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at DataSource$_run_closure1.call(DataSource.groovy)
  at java_util_concurrent_Callable$call.call(Unknown Source)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at DataSource.run(DataSource.groovy:21)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy:51)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
  at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at java_util_concurrent_Callable$call.call(Unknown Source)
  at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
  at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81)
  at org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95)
  at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128)
  at RunApp$_run_closure1.doCall(RunApp.groovy:28)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
  at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at java_util_concurrent_Callable$call.call(Unknown Source)
  at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
  at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at java_util_concurrent_Callable$call.call(Unknown Source)
  at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at java_util_concurrent_Callable$call.call(Unknown Source)
  at gant.Gant.withBuildListeners(Gant.groovy:427)
  at gant.Gant.this$2$withBuildListeners(Gant.groovy)
  at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
  at gant.Gant.dispatch(Gant.groovy:415)
  at gant.Gant.this$2$dispatch(Gant.groovy)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at gant.Gant.invokeMethod(Gant.groovy)
  at gant.Gant.executeTargets(Gant.groovy:591)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  at gant.Gant.executeTargets(Gant.groovy:590)
  at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
  Caused by: org.hibernate.HibernateException: IllegalAccessException trying to instantiate: org.hibernate.type.BlobType
    at org.hibernate.type.AlternativeLobTypes.createLobType(AlternativeLobTypes.java:116)
    at org.hibernate.type.AlternativeLobTypes.<init>(AlternativeLobTypes.java:52)
    at org.hibernate.type.AlternativeLobTypes.<init>(AlternativeLobTypes.java:41)
    at org.hibernate.type.AlternativeLobTypes$BlobTypes.<init>(AlternativeLobTypes.java:148)
    at org.hibernate.type.BlobType.<init>(BlobType.java:42)
    at org.hibernate.type.BlobType.<clinit>(BlobType.java:39)
    ... 71 more
  | Error Error executing script RunApp: null

我现在有点迷失。

也许有人可以给我一个关于在哪里搜索错误/问题的提示。

最佳答案

这个问题看起来和这个类似one

他们的建议是尝试不重新加载:

grails -noreloading run-app

线程中还有一些其他建议,但我在堆栈跟踪中关注的主要错误是 org.hibernate.HibernateException: IllegalAccessException trying to instantiate: org.hibernate.type.BlobType

关于java - Grails hibernate 方言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20218745/

相关文章:

java - 程序无法正常运行

java - 如何检测与 Hibernate 的列冲突?

grails - 在Groovy Controller /服务中使用非默认dataSource

unit-testing - 在哪里配置 Grails 单元测试日志记录

java - 如何读取具有可变数组深度和结构的复杂 JSON 字符串?

java - 如何从 JdbcTemplate 获取受影响的行数?

java - Java 中的 DFS 和 SMB(jcifs) 问题

java - 与属性 : how? 的多对多关系

java - Spring Hibernate 中的@Transient 方法调用

grails - 在Grails中找到对集合的共享引用