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

前端 未结 8 1766
野的像风
野的像风 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: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.

提交回复
热议问题