[英]Eclipse Oxigen5 - "Cannot connect to VM Socket operation on nonsocket: configureBlocking"
I'm receiving following error message when trying to debug a project on Eclipse Oxygen5:尝试在 Eclipse Oxygen5 上调试项目时收到以下错误消息:
This Eclipse installation was made on a new machine along with JDK1.8.0_144 and JRE1.8.0_144.这个 Eclipse 安装是在一台新机器上与 JDK1.8.0_144 和 JRE1.8.0_144 一起进行的。 I then copied the workspace folder containing the project and placed it in the new machine, where I opened it with Eclipse.
然后我复制了包含该项目的工作区文件夹并将其放置在新机器中,在那里我用 Eclipse 打开它。 Everything seems fine, it runs the project normally, but when I click on debug, it gives me the error.
一切看起来都很好,它正常运行项目,但是当我单击调试时,它给了我错误。 I tried searching for a solution to this issue and came across multiple posts of people having similar problems, but nothing worked.
我尝试寻找解决此问题的方法,并遇到了多个有类似问题的人的帖子,但没有任何效果。 The machine is running under Windows 10 Pro x64 (10.0, Compilation: 14393).
机器在Windows 10 Pro x64(10.0,编译:14393)下运行。
EDIT: I should also mention that I'm connected to this machine via TeamViewer.编辑:我还应该提到我通过 TeamViewer 连接到这台机器。 I transferred the project to the new machine using TeamViewer and opened it's root folder as the workspace folder when Eclipse was launched.
我使用 TeamViewer 将项目转移到新机器上,并在 Eclipse 启动时打开它的根文件夹作为工作区文件夹。 I already tried uninstalling everything and reinstalling it.
我已经尝试卸载所有内容并重新安装它。
I had the same problem, and, after uninstalling JRE/JDK, recovering Eclipse files and a whole afternoon of research, I found that the error " Cannot connect to VM Socket operation on nonsocket: configureBlocking " didn't happen anymore after changing my default output folder from a linked resource to a local folder .我遇到了同样的问题,在卸载 JRE/JDK、恢复 Eclipse 文件和研究了一整个下午之后,我发现在更改我的默认设置后,错误“无法连接到非套接字上的 VM 套接字操作:configureBlocking ”不再发生从链接资源到本地文件夹的输出文件夹。
Instructions for changing the default output folder here . 此处更改默认输出文件夹的说明。
I had the same problem.我有同样的问题。 After investigating, I've found that removing my debug configurations fixes the problem.
经过调查,我发现删除调试配置可以解决问题。 So, in your debug config, remove
Xrunjdwp:transport=dt_socket,suspend=n,address=8000,server=y
因此,在您的调试配置中,删除
Xrunjdwp:transport=dt_socket,suspend=n,address=8000,server=y
I had a same or similar problem with latest Eclipse-2019-12-R + I had in the console:我在最新的Eclipse-2019-12-R + 控制台中遇到了相同或类似的问题:
Error opening zip file or JAR manifest missing : D:\
Error occurred during initialization of VM
agent library failed to init: instrument
The problem was caused by the '=' character in the path to the eclipse :问题是由eclipse 路径中的'=' 字符引起的:
D:\\=folder_name=\\...\\eclipse D:\\=folder_name=\\...\\eclipse
Interesting is that older Eclipse (Oxygen3a) hasn't this problem.有趣的是,较旧的 Eclipse (Oxygen3a) 没有这个问题。
在 Eclipse 中删除和重新导入项目对我有用。
I got a similar error because i had set the initial size of the heap grater than the maximal amount assigned (on a jboss server).我遇到了类似的错误,因为我将堆的初始大小设置为大于分配的最大数量(在 jboss 服务器上)。
-server -Xms2048m -Xmx1024m to -server -Xms2048m -Xmx2048m
-server -Xms2048m -Xmx1024m 到 -server -Xms2048m -Xmx2048m
I had the same problem...我有同样的问题...
Create a new java project, make a new simple class (main and sysout) and try to run debug.创建一个新的 java 项目,创建一个新的简单类(main 和 sysout)并尝试运行调试。 If it works then the problem is in the project.
如果它有效,那么问题出在项目中。
Considering that problem is in the project do this:考虑到问题是在项目中这样做:
Try debug your project.尝试调试您的项目。
您可以使用 Windows 控制面板中的添加/删除程序功能从您的计算机卸载 Warsaw。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.