gpt4 book ai didi

java - 命令因异常而终止

转载 作者:行者123 更新时间:2023-12-02 05:39:27 26 4
gpt4 key购买 nike

每次我尝试创建 Grails 项目时,都会收到以下错误。我可以从终端创建项目,但不能从 IDE 创建项目。我正在使用 GGTS,而且我是 Grails 新手。

Command terminated with an exception: java.lang.Exception (see details for partial output) Command: GrailsCommand(P/BookSolution> compile --non-interactive --refresh-dependencies) ---- System.out ---- Loading Grails 2.3.8 . |Environment set to development .......... |Compiling 78 source files .Error | Compilation error: startup failed: C:\grails\BookSolution\target\work\plugins\database-migration-1.4.0\grails-app\controllers\grails\plugin\databasemigration\DbdocController.groovy: -1: Repetitive method name/signature for method 'java.lang.Object withFormat(groovy.lang.Closure)' in class 'grails.plugin.databasemigration.DbdocController'. @ line -1, column -1. C:\grails\BookSolution\target\work\plugins\database-migration-1.4.0\grails-app\controllers\grails\plugin\databasemigration\DbdocController.groovy: -1: Repetitive method name/signature for method 'java.lang.Object withFormat(groovy.lang.Closure)' in class 'grails.plugin.databasemigration.DbdocController'. @ line -1, column -1. 2 errors Error | org.codehaus.groovy.grails.cli.ScriptExitException Error | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) Error | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) Error | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) Error | at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ... 68 more ------System.err:-----------

最佳答案

您似乎正在使用 Java 8。Grails 2.3.8 不支持 Java 8。如果您想使用 Java 8,则需要升级到 Grails 2.4。截至目前,该发布链中的最新版本是 2.4.2。

关于java - 命令因异常而终止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24634577/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com