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

Posted by Heptaparaparshi on Stack Overflow See other posts from Stack Overflow or by Heptaparaparshi
Published on 2013-10-24T15:44:21Z Indexed on 2013/10/24 15:53 UTC
Read the original article Hit count: 1854

Filed under:
|
|
|
|

When i try to debug a simple application in Eclipse i receive a following error:

Cannot connect to 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)

I have JRE 1.6, JRE 1.7 and JDK 1.7 installed. 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. Doesn't help. I have latest Avast ver. 9.0 at the moment. I'm a bit suspicious about that software, because before updating my Avast i was able to debug in 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.

2) Add strings to hosts file. No reaction. ::1 localhost.localdomain localhost 127.0.0.1 localhost

3) Changing Network Settings in Java Control Panel to "Direct" connection. Doubtful advice.

Also read that thing: http://wiki.eclipse.org/Debug/FAQ

Can anyone help me to find out what is happening? Or guide me in the right direction?

© Stack Overflow or respective owner

Related posts about java

Related posts about Windows