gpt4 book ai didi

Grails 'java.lang.instrument ASSERTION FAILED' 错误

转载 作者:行者123 更新时间:2023-12-02 07:03:41 25 4
gpt4 key购买 nike

当我尝试启动我的 Grails 应用程序(使用 grails run-app 或通过 GGTS)时,我突然开始收到以下错误:

| Running Grails application
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at ../../../src/share/instrument/JPLISAgent.c line: 844
Exception in thread "main"
| Error Forked Grails VM exited with error

我看到了另一篇 StackOverflow 帖子的答案 here据说要在我的 BuildConfig.groovy 文件中注释掉 grails.project.fork 。虽然这似乎解决了问题,但我对 Grails 仍然很陌生,所以我不确定我是否完全理解发生了什么。所以,我的问题是:

  1. 为什么我的应用程序会突然开始以这种方式崩溃。据我所知,我没有更改任何会导致此类错误的内容。我整个星期都在另一台机器上开发和运行相同的代码,没有出现任何问题。直到我在桌面上进行更新后,我才开始看到此错误。

  2. 被注释掉的设置有什么用?看起来它正在设置一些 JVM 参数。这只是在使用grails run-app时用于配置内存等吗?我认为当我构建 WAR 并稍后部署到 tomcat 实例时,这些设置不会产生任何影响。

最佳答案

据我发现here 。格雷姆·罗彻 (Graeme Rocher) 说道:

There is an issue with 2.3.2 on Windows only, we plan to address it with a 2.3.3 this week

In the meantime please use 2.3.1 or wait for 2.3.3 this week or follow the instructions in this issue for a workaround:

http://jira.grails.org/browse/GRAILS-10756

关于Grails 'java.lang.instrument ASSERTION FAILED' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20036769/

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