views:

59

answers:

2

I've reinstalled Windows and unzipped a fresh copy of Eclipse. Despite this, I've been unable access an ssh repository via Subclipse. The issue seems to be with JavaHL and the tests from the Tigris web site give NoClassDefError. Although this could be considered as a software issue I hope someone has come accross this before. Is there a way to fix this? It's quite urgent.

P.S: Things were set up such that Subclipse would look in the config file to forward a call to the PLink client of TortoiseSVN which in turn gets a key that's loaded in Pageant.

Edit: Here's the output from java -jar javahltests.jar now after reinstalling a jdk:

.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.
E.E.E.E.E.E.E.E.E.E
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0xffbadd11, pid=752, tid=656
#
# JRE version: 6.0_21-b06
# Java VM: Java HotSpot(TM) Client VM (17.0-b16 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  0xffbadd11
#
# An error report file with more information is saved as:
# C:\\hs_err_pid752.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

And here's the output I had previously:

.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.
E.E.E.E.E.E.E.E.E.E
Time: 0,047
There were 50 errors:
1) testCreate(org.tigris.subversion.javahl.SVNAdminTests)java.lang.UnsatisfiedLinkError: no svnjavahl-1 in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at org.tigris.subversion.javahl.NativeResources.loadNativeLibrary(NativeResources.java:79)
    at org.tigris.subversion.javahl.SVNAdmin.<clinit>(SVNAdmin.java:32)
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
2) testSetRevProp(org.tigris.subversion.javahl.SVNAdminTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
3) testLogDate(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
4) testVersion(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
5) testPathValidation(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
6) testPathIsURL(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
7) testMergeinfoParser(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
8) testBasicStatus(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
9) testOODStatus(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
10) testBasicCheckout(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
11) testBasicCommit(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
12) testBasicProperties(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
13) testBasicUpdate(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
14) testBasicMkdirUrl(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
15) testCopy(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
16) testMove(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
17) testBasicMergingUpdate(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
18) testBasicConflict(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
19) testBasicCleanup(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
20) testBasicRevert(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
21) testBasicSwitch(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
22) testBasicDelete(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
23) testBasicCheckoutDeleted(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
24) testBasicNodeKindChange(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
25) testBasicImport(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
26) testBasicCat(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
27) testBasicCatStream(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
28) testBasicLs(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
29) testBasicAddIgnores(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
30) testBasicImportIgnores(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
31) testBasicInfo(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
32) testBasicLogMessage(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
33) testBasicVersionInfo(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
34) testBasicLocking(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
35) testBasicInfo2(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
36) testBasicChangelist(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
37) testBasicMerge(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
38) testMergeUsingHistory(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
39) testMergeReintegrate(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
40) testMergeConflictResolution(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
41) testRecordOnlyMerge(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
42) testDiff(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
43) testDiffSummarize(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
44) testBasicIsAdminDirectory(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
45) testBasicCancelOperation(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
46) testDataTransferProgressReport(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
47) testTreeConflict(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
48) testObstructionTolerance(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
49) testBasicBlame(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
50) testCommitRevprops(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
    at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
    at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)

FAILURES!!!
Tests run: 50,  Failures: 0,  Errors: 50

Finally, here's what I get in the Eclipse IDE:

Failed to load JavaHL Library.
These are the errors that were encountered:
F:\eclipse helios\eclipse-jee-helios-win32\eclipse\plugins\org.tigris.subversion.clientadapter.javahl.win32_1.6.12\libsvnjavahl-1.dll: Can't find dependent libraries
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = F:\eclipse helios\eclipse-jee-helios-win32\eclipse\plugins

Error

+2  A: 

It would be helpful if you did provide detailed exception message or a screen-shot to explain the problem.

If it's really urgent, use svn command first before you figure out the fix.

Update #1 To help diagnose your problem, download the JavaHL test library and follow the instructions mentioned in the page. Update us here and we will assist you further.

yclian
Hi yclian, thanks for the reply. I've added some error messages and a screenshot. Just to add something, putty can access the server and tortoisesvn can do a checkout using a private key. The issue does seem limited to Eclipse. I could make do with tortoisesvn I suppose but it has less options than subclipse
James P.
The JavaHL results have been added to the answer. It's as if it can't find any of the classes despite the plugin being shown as installed in Eclipse.
James P.
Your JavaHL test results seem to be JVM crash. Have you tried running it a few times and with other JRE versions?
yclian
Is it possible to run different version of the JRE concurrently? Yes, it does seem to have been a crash. It may have been due to a bug with Eclipse 3.6 (later is not greater) which prevents it detecting Java correctly causing it to allocate insufficient memory. What I've done in the meantime is reinstall again with a more recent OS. JavaHL seems to be able to dialogue with TortoisePLink again. I guess this means that the problem is solved. It would have been nice to find out what the problem was but I have a lot of catching up to do with a project.
James P.
Yes, you may run different JREs concurrently - almost always possible. Note that, your JavaHL test might not be using the same JRE as your Eclipse's.
yclian
+1  A: 

You have the option to use the SVNKit library instead of JavaHL which is 100% Pure Java implementation of the protocols used by Subversion. This option has the advantage of not requiring any native libraries.

gubra
Thanks for the suggeston gubra. I've tested it and a dialog box continually pops up requesting authentication information. The way things were configured previously was that Subclipse would look in it's config file to read the "svn =" line and trigger TortoisePLink which in turn goes through Pageant to get hold of the key file.
James P.