[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] Problem using svnClientAdapter

From: Bharat Khatri <bharatkhatri_at_gmail.com>
Date: Sun, 5 Oct 2008 18:45:08 -0500

I had used the svnClientAdapter API available from tigris.org a long time
ago, and it still works fine. I was using it with the JavaHL interface.
Specifically I used svnClientAdapter version 0.9.4.
Now I want to use the latest and greatest version of the API so that I dont
run into compatibility issues in the future. Searching on the web, I found
that the only way to get the latest version of svnClientAdapter was to
extract it from Subclipse. So I downloaded Subclipse 1.4.5 and extracted the
relevant jar files and dlls for using the JavaHL interface. My old project
built fine with the new stuff, but I'm unable to run anything. Here is the
code sample that doesnt work (omitting username, password, and url):

try {
JhlClientAdapterFactory.setup();
} catch (SVNClientException e) {
e.printStackTrace();
System.out.println("can't register JavaHL factory");
return;
}

ISVNClientAdapter svnClient =
SVNClientAdapterFactory.createSVNClient(JhlClientAdapterFactory.JAVAHL_CLIENT);
svnClient.setUsername("<username>");
svnClient.setPassword("<password>");
SVNUrl url = new SVNUrl("<valid url>");
ISVNInfo info = svnClient.getInfo(url);

The last line throws the following exception:

Caused by: *org.tigris.subversion.javahl.ClientException*: RA layer request
failed

svn: OPTIONS of '
http://crsvn/prepdev/com.rockwellcollins.clearcase.explorer/trunk/plugin.xml':
Could not read status line: An existing connection was forcibly closed by
the remote host.
Now the problem is: Why does the same code work with the previous version of
svnClientAdapter but fails with the new version (even though it builds and
runs fine) ?

Please help....

Thanks

Bharat Khatri
Received on 2008-10-06 05:54:26 CEST

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.