Showing posts with label org.tigris.subversion.javahl.ClientException: RA layer request failed. Show all posts
Showing posts with label org.tigris.subversion.javahl.ClientException: RA layer request failed. Show all posts

Tuesday, September 13, 2011

org.tigris.subversion.javahl.ClientException: RA layer request failed

Title of the article is basically an error which you might receive when you are trying to connect to a SVN repository over internet (that means repository is outside your corporate LAN firewall) using subversion plugin (inside Eclipse).
Below is the screen-shot of the same:

Now how to resolve it. Here we go:
  1. Close the eclipse if it is running.
  2. Open the following file:
    Windows Vista/7: C:\Users\<user-profile-name>\AppData\Roaming\Subversion\server
    Windows XP: C:\Documents and Settings\<user-profile-name>\Application Data\Subversion\server
  3. Go to the Entry shown below:
    [global]
    # http-proxy-exceptions = *.exception.com, www.internal-site.org
    #http-proxy-host = somehost.example.com
    #http-proxy-port = 80
    # http-proxy-username = defaultusername
    # http-proxy-password = defaultpassword
    
  4. Uncomment the http-proxy-host and http-proxy-port line and provide your proxy server path and port no. Do not leave any spaces before the http-proxy-host.So it should look like this:
    http-proxy-host = substitute with your proxy server path
    http-proxy-port = substitute your proxy server port
    

  5. Start the eclipse again.
  6. That should resolve the problem for you. If this article resolves your problem. Please leave a comment otherwise add comment to let me know, your issue.

After seeing so many comments, I decided that I will try the same thing for NetBeans and guess what it was easier than eclipse also.
Following are the steps to access the SVN behind the firewall:
  1. Click on Team > select subversion > select checkout...
    Click on the image to open it in new window to see it properly.
  2. On the next window fill the repository URL, username and password as shown:
  3. After that click on Proxy Configuration.. button and select Manual Proxy settings and fill the proxy server host and port and click on ok as shown:
  4. Note: If your company uses a .pac file for proxy settings then open that file and find out the proper proxy server address and port number. In NetBeans do not select the option of using system proxy settings
At times we make mistake in entering the URL itself so here is a sample SVN url
https://onlinerepository.com/svn/myproject