本文介绍了Eclipse CVS extssh在Windows 7 + Java 7下打破的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Windows 7 64位。我之前使用Java 6安装Java 7(PS3媒体服务器的一部分)后,我的Eclipse(Indigo Service Release 2,Build id:20120216-1857)CVS停止工作在VPN上的服务器上。我连接使用Cisco AnyConnect VPN客户端版本2.5.2019。我尝试连接到存储库时出现的错误如下:

 无法连接到:extssh:username @ example .com:/ cvsroot / username / project:CVS通信错误:org.eclipse.team.internal.ccvs.ssh2.CVSSSH2ServerConnection $ SSH2IOException:Permission denied:connect 
权限被拒绝:connect

我可以通过。这不是防火墙问题,因为我关闭了Windows防火墙,而且Wireshark还没有显示超出DNS查找的流量。



我的JRE(Java 6和Java 7)都是32位版本;他们的路径分别是

  C:\程序文件(x86)\Java\jre6 
C:\\ \\ Program Files(x86)\Java\jre7


解决方案

我发现一个非常类似的问题的,除了它涉及SVN而不是CVS。 错误似乎是Cisco AnyConnect VPN不能正确支持IPv6,这是通过较新的jre7调用的。



所以,添加以下内容到我的 eclipse.ini 是我的情况的修复:

  openFile 
-vmargs
-Djava.net.preferIPv4Stack = true
/ pre>

I'm running Windows 7 64-bit. After installing Java 7 (part of PS3 media server) when I was previously using Java 6, my Eclipse (Indigo Service Release 2, Build id: 20120216-1857) CVS stopped working to the server that's on a VPN. I connect using Cisco AnyConnect VPN Client Version 2.5.2019. The error I get whenever I try to connect to a repository is the following:

Could not connect to :extssh:[email protected]:/cvsroot/username/project: CVS communication error:   org.eclipse.team.internal.ccvs.ssh2.CVSSSH2ServerConnection$SSH2IOException: Permission  denied: connect
Permission denied: connect

I'm able to work around it by forcing Eclipse to run under the Java 6 JVM. It's not a firewall issue, because I turned off the Windows firewall, and also Wireshark shows no traffic beyond the DNS lookup.

Both my JREs (Java 6 and Java 7) are 32-bit versions; their paths are respectively

C:\Program Files (x86)\Java\jre6
C:\Program Files (x86)\Java\jre7
解决方案

I found an answer that is to a very similar question, except it involves SVN rather than CVS. The "bug" seems to be that Cisco AnyConnect VPN is not supporting properly IPv6, which is invoked with the newer jre7.

So, adding the following to my eclipse.ini is a fix for my situation:

openFile
-vmargs
-Djava.net.preferIPv4Stack=true

这篇关于Eclipse CVS extssh在Windows 7 + Java 7下打破的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 08:08