gpt4 book ai didi

grails - fork 的Grails VM退出并显示错误grails 2.5.3

转载 作者:行者123 更新时间:2023-12-02 15:53:20 26 4
gpt4 key购买 nike

使用run-app时出现错误。这是我的路

➜ $ echo $GROOVY_HOME
/Users/anthony/.sdkman/candidates/groovy/current
➜ $ groovy --version
Groovy Version: 2.4.5 JVM: 1.8.0_25 Vendor: Oracle Corporation OS: Mac OS X
➜ $ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
➜ $ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
➜ $ echo $GRAILS_HOME
/Users/anthony/.sdkman/candidates/grails/current
➜ $ grails --version
Grails version: 2.5.3

当我使用 run-app时出现错误
➜ $ grails --version
Grails version: 2.5.3
| Running Grails application
objc[27433]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Configuring Spring Security Core ...
... finished configuring Spring Security Core
Configuring Spring Security UI ...
... finished configuring Spring Security UI
| Error Forked Grails VM exited with error
| Server running. Browse to http://localhost:8080/myapp

最佳答案

我在Grails 2.5.3中得到了这个:

Disconnected from the target VM, address: '127.0.0.1:19767', transport: 'socket'
Error |
Forked Grails VM exited with error

Process finished with exit code 1

当我注释掉约束并试图保存没有作者的书时
class Book {
static belongsTo = [authors: Author]

static constraints = {
// authors nullable: true
}
}

我的解决方案是删除 static belongsTo = [authors: Author]

关于grails - fork 的Grails VM退出并显示错误grails 2.5.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35872386/

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