Details
-
Suggestion
-
Resolution: Fixed
Description
Error customer is getting:
2008-11-10 17:12:35,921 ERROR [pool-4-thread-1] fisheye.app RepositoryScanner-startRepo - Unable to initialise repository https://path/to/svn/server/ [^] due to java.lang.NullPointerException:null java.lang.NullPointerException at org.tmatesoft.svn.core.internal.util.jna.SVNWinSecurity.getNextToken(SVNWinSecurity.java:84) at org.tmatesoft.svn.core.internal.util.jna.SVNWinSecurity.getAuthHeader(SVNWinSecurity.java:68) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPNativeNTLMAuthentication.authenticate(HTTPNativeNTLMAuthentication.java:54) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:259) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:247) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:479) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:976) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:177) at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:479) at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:848) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:531) at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2231) at org.tmatesoft.svn.core.javahl.SVNClientImpl.info2(SVNClientImpl.java:2203) at org.tmatesoft.svn.core.javahl.SVNClientImpl.info2(SVNClientImpl.java:2162) at org.tigris.subversion.javahl.SVNClient.info2(SVNClient.java:347) at com.cenqua.fisheye.svn.SvnThrottledClient.info2(SvnThrottledClient.java:111) at com.cenqua.fisheye.svn.SvnRepositoryTester.getServerRootURL(SvnRepositoryTester.java:91) at com.cenqua.fisheye.svn.SvnRepositoryTester.checkRepoSettings(SvnRepositoryTester.java:72) at com.cenqua.fisheye.svn.SvnRepositoryScanner.checkRepoSettings(SvnRepositoryScanner.java:341) at com.cenqua.fisheye.svn.SvnRepositoryScanner.validateRepo(SvnRepositoryScanner.java:260) at com.cenqua.fisheye.rep.RepositoryScanner.startRepo(RepositoryScanner.java:316) at com.cenqua.fisheye.rep.RepositoryScanner.slurp(RepositoryScanner.java:242) at com.cenqua.fisheye.rep.RepositoryScanner.ping(RepositoryScanner.java:210) at com.cenqua.fisheye.svn.SvnRepositoryEngine.doSlurp(SvnRepositoryEngine.java:80) at com.cenqua.fisheye.rep.ping.OneOffPingRequest.doRequest(OneOffPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:68) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:120) at com.cenqua.fisheye.rep.RepositoryHandle.queuePingRequest(RepositoryHandle.java:110) at com.cenqua.fisheye.rep.ping.PingRequest.run(PingRequest.java:35) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Raised issue with svnkit who have provided the following solution.
Hello,
Thank you for reporting this issue. We've fixed similar NPE recently and I think it could be already resolved in the latest version of SVNKit in 1.2.x branch.
What version of SVNKit do you use? You may download latest 1.2.x binary from our build server (direct link: https://teamcity.svnkit.com/repository/download/bt14/4147:id/deploy/org.tmatesoft.svn_1.2.0.5153.standalone.zip [^] ).
Also, you may try to change order in which HTTP authentication schemes are tried by SVNKit by setting the following system property:
svnkit.http.methods=Basic,Digetst,Negotiate,NTLM
So that SVNKit will only fall back to NTLM when no other scheme is available (usually mod_sspi in apache is set up in such away that it provides both Basic and NTLM schemes).