07 December 2015

How to resolve SVN E175002 VisualSVN connection error from JDeveloper11g


When you try to connect to visual SVN repository from JDeveloper 11.1.2.4, you may sometime get and error if you have updated/moved SVN server, error could be something similar to the following


svn: E175002: java.lang.RuntimeException: Could not generate DH keypair
Prime size must be multiple of 64, and can only range from 512 to 1024



This happens because of the SSL handshake error, this is how you can fix it:

1. Open Command prompt on your windows machine Go to the SVN server installation directory e.g. "C:\Program Files\VisualSVN Server" navigate to bin folder

2. Type this command : openssl dhparam 1024

3. You will see something like this




4. Copy the Text at the end including both lines --BEGIN DH PARAMETERS--- and ---END DH PARAMETERS----

5. The copied text will look like this

-----BEGIN DH PARAMETERS-----
MIGHAoGBANTDCmRPq+d8NDFX7j1XM2a+e17hY4IGyc+zboMOTylsMxtbE33YUViY
JvOCdQpw0LE0XDSAtetMHtcI18TdGQMIwBJNCceso07E4Vg04nICt9xrU8vHCvUk
GVBiuFKe9Du3At11t8AMl3sXWtvni1rfrVxUpQvqUqCP1Mpawe9TAgEC
-----END DH PARAMETERS----- 

6. Open "C:\Program Files\VisualSVN Server\certs" folder and look for file named "server.pem",  open the file with any  text editor, and paste the copied text at the end of the file.

7. Save the file, restart visual svn server 

8. You will be able to connect from JDeveloper now.