Problem with SVN connection to TFS
I upgraded teamcity to version 4.5.4 (from version 4.0(?) build 8171), and my VCS connection to my Team Foundation Server stopped working.
I'm using the subversion connector (I have a subversion-"wrapper" on the TFS server).
Note that this used to work on the old installation, and file:// connections to my local subversion repository works.
My svn url is: http://10.96.5.80:8081/Test Project/code
This is the error I get in catalina.out:
jetbrains.buildServer.vcs.VcsException: Error collecting changes for VCS root 'svn: http://10.96.5.80:8081/Test Project/code' #5
java.lang.NullPointerException
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.getVersionDisplayName(SvnSupport.java:180)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.createRepositoryVersion(VcsChangesLoader.java:124)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChangesForRoot(VcsChangesLoader.java:96)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:252)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:29)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:11)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPDigestAuthentication.createDigest(HTTPDigestAuthentication.java:119)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPDigestAuthentication.authenticate(HTTPDigestAuthentication.java:68)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:339)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:273)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:261)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516)
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:999)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:146)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.getVersionDisplayName(SvnSupport.java:174)
Note that I get the following error if I use the "test connection" button:
[2009-08-14 13:02:33,121] WARN - jetbrains.buildServer.VCS - Error occurred in test connection
java.lang.NullPointerException
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPDigestAuthentication.createDigest(HTTPDigestAuthentication.java:119)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPDigestAuthentication.authenticate(HTTPDigestAuthentication.java:68)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:339)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:273)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:261)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516)
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:999)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.testConnection(DAVRepository.java:97)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.testConnection(SvnConnection.java:1109)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.testConnection(SvnSupport.java:245)
at jetbrains.buildServer.controllers.admin.projects.EditVcsRootsController.doPost(EditVcsRootsController.java:1
Is there any way to debug this further or any other ideas?
Please sign in to leave a comment.
Answering to myself, maybe somebody has the same problem.
For some reason svnkit was using digest authentication (as you can see in the errors).
Forcing it to use Basic auth worked for me. I had tried it earlier according to some post on the net by setting the following env-properties:
export TEAMCITY_SERVER_OPTS=-Dsvnkit.http.methods=Basic
export TEAMCITY_AGENT_OPTS=-Dsvnkit.http.methods=Basic
But this didn't work, so I set the env variable CATALINA_OPTS instead and it worked.
And one more point. Booting the agents maybe also helped (I just restarted the tomcat server first).