简体   繁体   English

无法在Eclipse中调试简单的Java应用程序。 无法连接到虚拟机。 AGENT_ERROR_TRANSPORT_INIT(197)

[英]Unable to debug simple Java application in Eclipse. Cannot connect to VM. AGENT_ERROR_TRANSPORT_INIT(197)

When i try to debug a simple application in Eclipse i receive a following error: 当我尝试在Eclipse中调试简单的应用程序时,出现以下错误:

Cannot connect to VM com.sun.jdi.connect.TransportTimeoutException 无法连接到VM ​​com.sun.jdi.connect.TransportTimeoutException

And console provides me with a lonely string: 控制台为我提供了一个孤独的字符串:

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) 本机方法中的致命错误:JDWP没有初始化传输,jvmtiError = AGENT_ERROR_TRANSPORT_INIT(197)

I have JRE 1.6, JRE 1.7 and JDK 1.7 installed. 我安装了JRE 1.6,JRE 1.7和JDK 1.7。 Tried all of them. 尝试了所有。

I've seen tons of same topics, but not a single answer helped me to solve my issue. 我见过很多相同的主题,但是没有一个答案可以帮助我解决问题。 Here they are: 他们来了:

1) Disable Firewall. 1)禁用防火墙。 Doesn't help. 无济于事。 I have latest Avast ver. 我有最新的Avast版本。 9.0 at the moment. 目前为9.0。 I'm a bit suspicious about that software, because before updating my Avast i was able to debug in Eclipse. 我对该软件有些怀疑,因为在更新我的Avast之前,我已经能够在Eclipse中进行调试。 I think it may cause this error, but i do not have direct clues :). 我认为这可能会导致此错误,但我没有直接的线索:)。 I may ping my machine, firewall doesn't block Eclipse traffic, etc. 我可能会ping通我的计算机,防火墙不会阻止Eclipse通信,等等。

2) Add strings to hosts file. 2)将字符串添加到主机文件。 No reaction. 没有反应。 ::1 localhost.localdomain localhost 127.0.0.1 localhost :: 1 localhost.localdomain本地主机127.0.0.1本地主机

3) Changing Network Settings in Java Control Panel to "Direct" connection. 3)将Java控制面板中的网络设置更改为“直接”连接。 Doubtful advice. 令人怀疑的建议。

Also read that thing: http://wiki.eclipse.org/Debug/FAQ 还请阅读该内容: http : //wiki.eclipse.org/Debug/FAQ

Can anyone help me to find out what is happening? 谁能帮助我找出正在发生的事情? Or guide me in the right direction? 或指引我正确的方向?

Avast fixed the issue in the release (build 9.0.2008.177.) it works for some users. Avast在发行版(内部版本9.0.2008.177。)中修复了该问题,它对某些用户有效。

For more info: https://feedback.avast.com/responses/eclipse-debug-functionality-not-working-after-upgrade-to-avast-2014 有关更多信息: https : //feedback.avast.com/responses/eclipse-debug-functionality-not-working-after-up-upgrade-to-avast-2014

I was experiencing the same issue. 我遇到了同样的问题。 None of the things you tried worked for me either. 您尝试过的所有方法对我也不起作用。

Eventually, I uninstalled Avast entirely and the problem went away. 最终,我完全卸载了Avast,问题消失了。 I reinstalled Avast 8.0 and I can still debug, so it must be an issue with the latest update. 我重新安装了Avast 8.0,但仍然可以调试,因此最新更新肯定是一个问题。

The latest Avast update has a weird problem where it silently blocks network connections from Java applications, even on localhost, but doesn't close the connection. 最新的Avast更新存在一个奇怪的问题,即它默默地阻止来自Java应用程序的网络连接,即使是在localhost上,但也不会关闭连接。

I have tried reporting this, but so far have not breached the wall of frustratingly unhelpful tech-support. 我已经尝试报告此情况,但到目前为止,还没有突破令人沮丧的无益技术支持的障碍。

Enabling 'Scan traffic from well-known browser processes' fixes this, but shouldn't be needed in the first place. 启用“扫描来自知名浏览器进程的流量”可以解决此问题,但首先不需要这样做。

(I don't have enough reputation to add as a comment yet). (我没有足够的声誉来添加评论)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse Mac OS X调试错误:“本机方法中的致命错误:JDWP没有传输初始化,jvmtiError = AGENT_ERROR_TRANSPORT_INIT(197)” - Eclipse Mac OS X Debug Error: “FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)” 本机方法中的致命错误:JDWP没有传输初始化,jvmtiError = AGENT_ERROR_TRANSPORT_INIT(197) - FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) Jboss错误在调试时-本机方法中的致命错误:JDWP没有初始化传输,jvmtiError = AGENT_ERROR_TRANSPORT_INIT(197) - Jboss Error While debugging -FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) 无法连接到远程VM。 拒绝连接。 尝试在Flash Builder 4.7中调试远程Java应用程序时 - Failed to connect to remote VM. Connection refused. when trying to debug remote java application in Flash Builder 4.7 Eclipse 在调试模式下启动时显示无法连接到 VM 错误 - Eclipse when launching in debug mode show Cannot connect to VM error Eclipse:本地调试(非远程)“无法连接到VM” - Eclipse: Local Debug (not remote) “Cannot connect to VM” 在VM中安装Java时出错。(Vagrant&Ansible) - Error instaling java in a VM.(Vagrant & Ansible) 无法使用Eclipse调试Java应用程序 - Cannot debug Java application with Eclipse Java VM上的Android错误。 运行Java SE 7 - Android Error on Java VM. Running Java SE 7 无法连接到Eclipse中的VM - Cannot connect to VM in Eclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM