debian 升級後eclipse不能調試

來源:互聯網
上載者:User

debian 升級後不能eclipse不能調試,出現如下的提示:

 

ERROR: transport error 202: connect failed: Connection refused
     ERROR: JDWP Transport dt_socket failed to initialize,
     TRANSPORT_INIT(510)
     JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports
     initialized [../../../src/share/back/debugInit.c:690]
     FATAL ERROR in native method: JDWP No transports initialized,
     jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

 

我換來jdk,換了eclipse 還是出錯,最好上網查到一個到期的網頁才知道是debian設定的問題,debian 及eclipse的bug list都有,解決方案如下:

1.edit /etc/sysctl.d/bindv6only.conf and  net.ipv6.bindv6only行的1改成0
2.sudo invoke-rc.d procps restart

 

附:

found the reason/fix on this post:
 http://www.eclipse.org/forums/index.php?t=msg&goto=505058&#msg_505058
 
The problem was caused by a pretty unbelievable thing introduced in
     debian. Found out that java was no longer able to do any sort of
     network connections anymore. Even connections to localhost failed...
 
    Someone decided to introduce a ipv6-only switch in netbase via
     /etc/sysctl.d/bindv6only.conf. While this may or may not be a
     usefull default behaviour for the general the result is that java is
     no longer able to do networking at all.
 
    So to solve it you have to edit /etc/sysctl.d/bindv6only.conf and
     change the value of net.ipv6.bindv6only from "1" to "0". Then do a
     "sudo invoke-rc.d procps restart". After that, java has networking
     again.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.