热代码替换失败(eclipse)
“热代码替换失败 - 添加方法未实现”。 每次我在测试类中更改某些内容(并保存它)时,我都会收到此错误消息。 无法理解这意味着什么。有人可以帮忙吗?
"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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
可能您有一个仍在运行的测试(在调试模式下)。尝试完成所有测试(您可以在调试视图中看到它们:窗口->显示视图->调试),然后重试...
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...
请参阅此线程:
仔细检查您在调试会话中使用的 JRE。
还要检查您正在部署使用调试属性集编译的类。 (请参阅此线程)
最后,如此处表示:
See this thread:
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:
我也遇到了这个问题。我发现隐藏在背景中的一个建筑让我感到不舒服。检查以确保您已关闭或完成所有测试/构建。尽管如此,您仍然可以运行新代码。
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.
每当出现此错误消息时,它还会提供终止或重新启动的选项。选择“终止”,它将终止您无法找到的任何正在运行的调试案例。
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.
如果涉及多个项目,并且安装了多个 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
确保您的应用程序服务器 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.
我遇到了同样的问题,但我的调试会话在几个小时前结束。但 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.