热代码替换失败 (eclipse)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2056628/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Hot Code Replace Failed (eclipse)
提问by snakile
"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?
“热代码替换失败 - 添加方法未实现”。每次更改测试类中的某些内容(并保存)时,都会收到此错误消息。想不通是什么意思。有人可以帮忙吗?
回答by Fortega
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...
可能您有一个仍在运行的测试(在调试模式下)。尝试完成所有测试(您可以在调试视图中看到它们:window->show view->debug)然后再试一次...
回答by VonC
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.
这意味着您在调试应用程序时更改了一个类,并且它无法在应用程序运行时更新该类。
该错误表明您可能正在运行较旧的 JVM,即 1.4.2 之前的版本,但如果更改与类的先前版本不兼容,则任何 JVM 都可能发生此错误。
Check carefully what JRE you are using in your debug session.
仔细检查您在调试会话中使用的 JRE。
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...
你
Project->Build Automatically
关掉“ ”了吗?
热代码替换工作(仅?)如果自动构建打开......
回答by Squirtgun187
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.
我也遇到了这个问题。我发现隐藏在背景中的构建使我感到不适。检查以确保您已关闭或完成所有测试/构建。尽管如此,您仍然可以运行新代码。
回答by Shubhansh Vatsyayan
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.
每当出现此错误消息时,它还会提供终止或重新启动的选项。选择终止,它将终止您无法找到的任何正在运行的调试案例。
回答by Klajd Deda
if you have multiple projects involved, and multiple jre's installed, make sure all dependent projects are using the same javac/jre
如果涉及多个项目,并且安装了多个 jre,请确保所有依赖项目都使用相同的 javac/jre
回答by Rahal Kanishka
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.
我遇到了同样的问题,但我的调试会话在几个小时前结束了。但是 ECLIPSE 错误仍然不断出现。
所以我只是简单地重新启动了 ECLIPSE IDE,然后问题就解决了。