FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: gethostbyname: unknown host
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]
如果出现以上错误,是因为eclipse调试模式启动时会连接localhost,而本地host配置文件里没有把localhost绑到127.0.0.1上,添加hosts配置如下:
127.0.0.1 localhost.localdomain localhost
网友评论