Unable to debug simple Java application in Eclipse. Cannot connect to VM. AGENT_ERROR_TRANSPORT_INIT(197)
- by Heptaparaparshi
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?