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:
    # 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


  1. One more cool thing about SVN, if you get"Access Denied" error on commit, its most probably due to an issue with the McAfee antivirus installed on the system. Close McAfee and commit works like a charm

  2. tengo ese problem error

    org.tigris.subversion.javahl.ClientException: Falló un requerimiento a la capa RA
    OPTIONS de «http://xxx»: no se pudo establecer la conexión con el servidor (http://xxx)

    tengo netbeans 6.9.1
    ubuntu 10.10

    esto sucede cuando hago un "update" o un "checkout" y

    ojala tengan la solucion

  3. Buddy, please post the comment in english, unfortunately I do not understand..any other language..

    So, I am replying on the basis of what I understood.. you are working out of netbeans on platform ubuntu, try to search proxy server setting option in netbeans.. if you find it set the proxy server and then try.

    check out below link for setting proxy server in netbeans..

  4. I will try with netbeans by tomorrow and will post the possible solution..if you find any solution by then..please post it as blog post does not cover Netbeans

  5. it worked like a charm, thanks!!

    I also had to uncomment the proxy user and password entries and provide the right values to make it work =)

  6. Thanks a lot, worked for me.
    I have a question
    if we want to use the native proxy settings what modifications should be made to the file ?

  7. Nice to see this working for many, but I just cannot get it running OK in Netbeans 7.1 (I upgraded from 7.1 RC1 which did work fine).
    I think 7.1 messed up the previous config files, cos now I cannot get NB 7.1 RC1 to work with SVN.

    The error I get is the very same:
    eclispe svn error, org.tigris.subversion.javahl, org.tigris.subversion.javahl.ClientException, org.tigris.subversion.javahl.ClientException: RA layer request failed, RA layer request failed

  8. I have
    RA layer failed error for JavaHL(JNI) SVN interface and
    SVN:profind of '/': 405 Method not allowed error for svn kit interface

    what should be proxy host value ?

    1. Please check your svn url. To me it seems to be not proper.

    2. I have read your blog its very attractive and impressive. I like it your blog.

      Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

      Java Online Training Java Online Training Core Java 8 Training in Chennai Core java 8 online training JavaEE Training in Chennai Java EE Training in Chennai

  9. I have added the proxy config details for NetBeans also. Let me know. if facing any issues.

  10. NetBeans I used was NetBeans 7.0.1 for subversion setup.

  11. I tried setting proxy config for netbeans ad you mentioned still getting same :( . I placed port as 444 and url as mentioned in visual svn of the server. Still its coming the same. What might be the problem? Any help would be appreciated

  12. Hi Pavani,

    If possible, can you private the screenshot.


  13. Hi, I can see the solution in Windows Vista/7: C:\Users\\AppData\Roaming\Subversion\server
    Windows XP: C:\Documents and Settings\\Application Data\Subversion\server.
    But what if I'm using a ubuntu? Where can I find this file?


  14. Just use SVNKit instead of JavaHL and everything went fine

  15. Thanks a lot APEX. will give it a shot.. If this has no proxy probs then it is awsome..

  16. dear dharmvir singh,you made my day!!!i´ve got exactly the problem/the error message,which you describe.i followed your advice and it solved my problem.thank you very much!

  17. thanks a lot
    worked for me
    you saved my day

  18. I tried all above options. But doesnt works.

    SVN URL is: http://sipdroid.googlecode.com/svn/trunk/ sipdroid-read-only

    Can someone check if it works for you ?

    1. Hey the url itself is wrong..
      I tried till trunk and I have got it working..

    2. I have uploaded a image also..

      check this out:


  19. Hi Dharmvir

    Thanks for your message.

    I tried till trunk and i still get error. I also tried updating "Servers" file with proxy info.
    I get error with both SVNKit and JavaHL.. However the errors are different

    Error validating location: "org.tigris.subversion.javahl.clientException:RA layer request failed
    svn: OPTIONS of "http://sipdroid.googlecode.com/svn/trunk': could not connect to server (http://sipdroid.googlecode.com)

    using SVNKit
    Error validating location: "org.tigris.subversion.javahl.clientException:svn:connection refused by server
    svn:OPTIONS request failed on '/svn/trunk'

    The proxy setting is correct because i validated it on Android AVD manager.

  20. Both errors are same in nature..they are pointing to the same issue.

    Check your proxy server.. which you have put in the servers file... proxy server itself might be wrong... just a guess... because it has always worked for me ...

    How did you get the

  21. It did work..Thanks a ton

  22. How do I find the proxy server and host for my svn?
    I connect to my subversion over VPN. I have the SVN URL.

    1. you can look in your browser for proxy settings. If your browser depends on a .pac file then download the file and in that you can get your proxy settings.

  23. I have the same error when I have installed both SVNKit and JavaHL. I done what APEX have written and now I have only SVNKit and everything is OK :)

  24. No, it is not Ok for me. It doesn't work. ;(