1

我有一个完美运行的 2.0.1 的现有 Grails 项目。

我希望升级到 grails 2.2.4 附带的 GGTS 3.4.0.M1。已经导入了我现有的项目,它确定了grails版本的差异,我选择将此项目升级到2.2.4,它已经完成了。

每当我运行项目(运行应用程序或用于集成测试的测试应用程序)时,它都会因以下堆栈而失败。我已经阅读了 Grails 文档,尤其是“从以前的版本升级”,并相信我已经涵盖了我需要的所有内容。但是对于这里的问题是什么而挠头。

有什么建议么?

| Loading Grails 2.2.4
| Configuring classpath.
| Environment set to development.....
| Packaging Grails application....
| Compiling 1 source files..
| Compiling 1 source files.....
| Running Grails application
Loading default beans for environment=DEVELOPMENT

Configuring Spring Security Core ...
... finished configuring Spring Security Core

| Error 2013-10-09 17:53:22,446 [localhost-startStop-1] ERROR context.GrailsContextLoader  - Error initializing the application: Error creating bean with name 'grails.plugin.transaction.handling.TransactionHandlingPostProcessor': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this expression must be true
Message: Error creating bean with name 'grails.plugin.transaction.handling.TransactionHandlingPostProcessor': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this expression must be true
    Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   138 | run      in java.util.concurrent.FutureTask
|   886 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
|   908 | run      in     ''
^   662 | run . .  in java.lang.Thread
Caused by IllegalArgumentException: [Assertion failed] - this expression must be true
->> 340 | newInstance in org.grails.plugin.config.AbstractConfigHelper$ConfigObjectProxy
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   111 | doCall   in org.grails.plugin.config.DefaultConfigHelper$_enhanceConfigObjectClass_closure3
|     1 | run . .  in Script1
|   160 | afterPropertiesSet in grails.plugin.transaction.handling.TransactionHandlingPostProcessor
|   303 | innerRun in java.util.concurrent.FutureTask$Sync
|   138 | run      in java.util.concurrent.FutureTask
|   886 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
|   908 | run      in     ''
^   662 | run . .  in java.lang.Thread
4

1 回答 1

0

在我最初的搜索grails-app-fails-to-load-on-tomcat中没有遇到这个问题,但是将 plugin-config 从 0.1.5 升级到 0.1.8 就成功了(修改了 BuildConfig.groovy)。

于 2013-10-10T09:25:50.837 回答