Failed to connect SVN via Netbeans

3

For some time I have not been able to connect Netbeans to SVN here at my place of work (I have been using Netbeans for years with SVN and have never had problems).

When I put the URL of the SVN server, my username and password when Netbeans tries to connect returns the following error:

org.apache.subversion.javahl.ClientException: 
   E175002: Connection has been shutdown:
   javax.net.ssl.SSLProtocolException: 
   handshake alert: unrecognized_name

E175002: OPTIONS request failed on '/pd'

Some details about this:

  • I'm using SvnKit that according to Netbeans itself does not require any prerequisites since everything is already built into the IDE;
  • The SVN connection protocol I am using is HTTPS;
  • I am in version 8.1 of Netbeans and have already tested in 8.0;
  • In eclipse the connection to SVN with the same information works;
  • In the URL access browser and also works with my credentials;
  • I'm on a linux.

Since then I have been looking for the solution in several places but without success.

Who has an idea of what it can be?

    
asked by anonymous 14.12.2015 / 18:08

1 answer

2

In my specific case the problem was the SVN server certificate that was invalid / outdated.

For those who happen to encounter the same problem that I correct is correct the server's certificate, but if it is not within reach or if you want to make it work until the certificate is corrected, take the following steps: / p>

  • Go to the Netbeans installation folder;
  • Enter the folder etc;
  • Open netbeans.conf;
  • In this file look for netbeans_default_options which will contain several VM startup parameters;
  • At the end of the parameters before closing the quotes, add a space and add the parameter -Djsse.enableSNIExtension = false, but in netbeans these parameters start with -J then it will look like this: -J-Djsse. enableSNIExtension = false ;
  • Save the file and restart Netbeans.

And right, this same parameter can be added to eclipse (without the -J) in eclipse.ini if you have the same SVN certificate problem.

    
14.12.2015 / 21:36