Unable to debug in Java with eclipse -


i trying debug simple java application on machine using eclipse ide. when try debug application entering debug perspective, set breakpoint , start debug. within few seconds, following pop-up window:

launching unicoderead has encountered problem. cannot connect vm.

the message dumped on console follows:

error: transport error 202: connect failed: connection refused error: jdwp transport dt_socket failed initialize, transport_init(510) jdwp exit error agent_error_transport_init(197): no transports initialized [../../../src/share/back/debuginit.c:708] fatal error in native method: jdwp no transports initialized, jvmtierror=agent_error_transport_init(197)   

how correct this? why happen?

i had same problem.

yesterday worked fine, nothing - same error gave. found out network admins made changes in meantime. firewall stuff. problem eclipse tries establish connection jvm @ "localhost" (and random port). when tried pinging localhost (or 127.0.0.1) got following:

c:\windows\system32>ping 127.0.0.1 pinging 127.0.0.1 32 bytes of data: ping: transmit failed. general failure. ping: transmit failed. general failure. ping: transmit failed. general failure. ping: transmit failed. general failure. 

and

c:\windows\system32>ping localhost ping request not find host localhost. please check name , try again. 

it seams in cases dns expected resolve this, , if firewall prevents localhost requests dns - stuff breaks. had alter hosts file , remove comments in following lines, not rely on dns anymore:

# 127.0.0.1       localhost # ::1             localhost 

although written hosts file changes take effect immediately, think processes locked , restart necessary in case. after that, worked again.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -