热代码替换失败(eclipse)

发布于 2024-08-17 12:44:41 字数 81 浏览 14 评论 0原文

“热代码替换失败 - 添加方法未实现”。 每次我在测试类中更改某些内容(并保存它)时,我都会收到此错误消息。 无法理解这意味着什么。有人可以帮忙吗?

"Hot Code Replace Failed - add method not implemented".
I get this error message every time I change something in my test class (and save it).
Can't figure out what it means. Can somebody help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

明月松间行 2024-08-24 12:44:41

可能您有一个仍在运行的测试(在调试模式下)。尝试完成所有测试(您可以在调试视图中看到它们:窗口->显示视图->调试),然后重试...

Possibly, you have a test which is still running (in debug mode). Try finishing all tests (you can see them in the debug view: window->show view->debug) and try again...

ゃ懵逼小萝莉 2024-08-24 12:44:41

请参阅此线程:

这意味着您在调试应用程序时更改了类,并且无法在应用程序运行时更新该类。
该错误表明您可能正在运行较旧的 JVM,即 1.4.2 之前的版本,但如果更改与该类的先前版本不兼容,则任何 JVM 都可能发生此错误。

仔细检查您在调试会话中使用的 JRE。

还要检查您正在部署使用调试属性集编译的类。 (请参阅此线程

最后,如此处表示

您是否关闭了“项目->自动构建”?
热代码替换工作(仅?)如果自动构建打开...

http://www.webreference .com/programming/javascript/rg7/Build-Automatically.gif

See this thread:

This means you changed a class while it was debugging an application and it could not update the class for the application while it was running.
The error suggests you may be running an older JVM, i.e. pre-1.4.2 but this error can occur with any JVM if the change is incompatible with the previous version of the class.

Check carefully what JRE you are using in your debug session.

Also check you are deploying classes compiled with the debug attribute set. (see this thread)

Finally, as indicated here:

did you switch "Project->Build Automatically" off?
Hot code replacement works (only?) if automatic build is switched on...

http://www.webreference.com/programming/javascript/rg7/Build-Automatically.gif

我最亲爱的 2024-08-24 12:44:41

我也遇到了这个问题。我发现隐藏在背景中的一个建筑让我感到不舒服。检查以确保您已关闭或完成所有测试/构建。尽管如此,您仍然可以运行新代码。

I was running into this issues too. I found a build hiding in the backgound that was giving me fits. Check to make sure you have all tests/builds closed or completed. Nonetheless, you can still run the new code.

捂风挽笑 2024-08-24 12:44:41

每当出现此错误消息时,它还会提供终止或重新启动的选项。选择“终止”,它将终止您无法找到的任何正在运行的调试案例。

Whenever this error message appears it also gives options to terminate or restart. Select Terminate and it will terminate any running debug case which you are unable to locate.

橘和柠 2024-08-24 12:44:41

如果涉及多个项目,并且安装了多个 jre,请确保所有依赖项目都使用相同的 javac/jre

if you have multiple projects involved, and multiple jre's installed, make sure all dependent projects are using the same javac/jre

秋日私语 2024-08-24 12:44:41

确保您的应用程序服务器 JRE 和 Eclipse JRE 版本应该相同,否则它将抛出不支持的类版本并且热代码调试将无法工作。

Make sure your application server JRE and Eclipse JRE version should be same or else it will throw unsupported class version and hot code debug will not work.

掩耳倾听 2024-08-24 12:44:41

我遇到了同样的问题,但我的调试会话在几个小时前结束。但 ECLIPSE 错误仍然不断出现。
所以我只是简单地重新启动ECLIPSE IDE,然后问题就解决了。

I went to the same Problem,But my Debugging session ended hours ago.But still ECLIPSE error kept coming.
So I just simply restart the ECLIPSE IDE, then the problem just solved.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文