debian 升级后不能eclipse不能调试,出现如下的提示:

原文地址 :http://blog.csdn.net/sxhong/archive/2010/01/09/5166693.aspx

 

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值