Maven Eclipse Debug “JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)”

前端 未结 8 1729
野的像风
野的像风 2020-12-15 03:23

I\'m trying to debug Maven tests in Eclipse. When I launch tests with the maven option maven.surefire.debug, I get this error :

ERROR: transport error 202: b         


        
相关标签:
8条回答
  • 2020-12-15 04:13

    first of all remove all debug points in eclipse

    search for PID with server port
    netstat -ano|find /i "7001"
    replace 7001 with your port number in above line

    sample o/p C:\Users\shaithal>netstat -ano|find /i "7001" TCP 127.0.0.1:51340 127.0.0.1:7001 SYN_SENT 17396

    then kill that process taskkill /F /PID 17396

    search for PID with debug port also netstat -ano|find /i "8453" 8453 is debug port in my case replace 8453 with your port number in above line

    sample o/p

    C:\Users\shaithal>netstat -ano|find /i "8453" TCP 0.0.0.0:8453 0.0.0.0:0 LISTENING 19904

    then kill that process taskkill /F /PID 19904

    0 讨论(0)
  • 2020-12-15 04:14

    Just for documentation, I had the exact same error, running on my local:

    ERROR: transport error 202: bind failed: Address already in use FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

    in my case the port wasn't the issue, but the host file. The solution is to add/re-add/uncomment:

    127.0.0.1 localhost

    The config file sets localhost as default, so a solution is add that host or change it for a custom one.

    0 讨论(0)
提交回复
热议问题