Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/345.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java svnkit错误:org.tmatesoft.svn.core.SVNException:svn:E175002:服务器拒绝连接_Java_Svn_Svnkit - Fatal编程技术网

Java svnkit错误:org.tmatesoft.svn.core.SVNException:svn:E175002:服务器拒绝连接

Java svnkit错误:org.tmatesoft.svn.core.SVNException:svn:E175002:服务器拒绝连接,java,svn,svnkit,Java,Svn,Svnkit,我使用svnkit签出svn,在服务器(Centos7.6)上出现此错误: 但是,当我在自己的计算机上测试这个应用程序时,系统是Windows10,它工作得非常好。我可以签出,我可以提交等等,没有错误。我能找到问题所在,我知道svn服务工作正常。我认为可能是网络问题,但我不确定,因为ping svn服务器IP返回正常。 帮助我! 我的代码如下: pom.xml: <dependency> <groupId>org.tmatesoft.svnkit</grou

我使用svnkit签出svn,在服务器(Centos7.6)上出现此错误:

但是,当我在自己的计算机上测试这个应用程序时,系统是Windows10,它工作得非常好。我可以签出,我可以提交等等,没有错误。我能找到问题所在,我知道svn服务工作正常。我认为可能是网络问题,但我不确定,因为ping svn服务器IP返回正常。
帮助我! 我的代码如下:
pom.xml:

<dependency>
    <groupId>org.tmatesoft.svnkit</groupId>
    <artifactId>svnkit</artifactId>
    <version>1.9.3</version>
</dependency>

我想你应该用嗅探器(wireshark或tshark)在你的邮箱或svn服务器上检查流量是否流入/流出。

我放弃了……但我想问题可能在网络上
<dependency>
    <groupId>org.tmatesoft.svnkit</groupId>
    <artifactId>svnkit</artifactId>
    <version>1.9.3</version>
</dependency>
public long checkout(SVNClientManager clientManager, SVNURL url,
                                SVNRevision revision, File destPath, SVNDepth depth) {

        SVNUpdateClient updateClient = clientManager.getUpdateClient();
        /*
         * sets externals not to be ignored during the checkout
         */
        updateClient.setIgnoreExternals(false);
        /*
         * returns the number of the revision at which the working copy is
         */
        try {
            return updateClient.doCheckout(url, destPath, revision, revision, depth, false);
//            return updateClient.doCheckout(url, destPath, revision, revision, depth, true);
        } catch (SVNException e) {
            logger.error(e.getMessage());
            e.printStackTrace();
        }
        return 0;
    }