Hello! I'm trying to setup SVN mirroring using the "SVN Mirror for Bitbucket Server" add-on. When I try to "Test Connection," I'm getting a NullPointerException and a stacktrace. I can access the SVN repository locally using a username and password, just not through the add-on. I'm including the stacktrace below. I've looked through the bitbucket logs and the log specific to subgit, but I didn't find anything helpful other than the stacktrace. I appreciate any help that anyone can provide.
I'm using Bitbucket v5.9.0 and SVN Mirror v3.4.2.
2018-03-30 17:44:46,253 configure - null java.lang.NullPointerException: null
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPDigestAuthentication.createDigest(SourceFile:158)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPDigestAuthentication.authenticate(SourceFile:79)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(SourceFile:431)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(SourceFile:352)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(SourceFile:340)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(SourceFile:888)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(SourceFile:693)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(SourceFile:113)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(SourceFile:1031)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(SourceFile:164)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.logImpl(SourceFile:961)
at org.tmatesoft.svn.core.io.SVNRepository.log(SourceFile:1041)
at org.tmatesoft.svn.core.io.SVNRepository.log(SourceFile:946)
at org.tmatesoft.svn.core.io.SVNRepository.log(SourceFile:870)
at org.tmatesoft.subgit.stash.mirror.SgAuthorsService.generateAuthorsMapping(SourceFile:74)
at org.tmatesoft.subgit.stash.mirror.tasks.SgConfigureTask.generateLegacyAuthorsMapping(SourceFile:237)
at org.tmatesoft.subgit.stash.mirror.tasks.SgConfigureTask.runSecurely(SourceFile:125)
at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask$1.perform(SourceFile:83)
at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask$1.perform(SourceFile:79)
at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:58)
at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask.run(SourceFile:79)
at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask.run(SourceFile:17)
at org.tmatesoft.subgit.stash.mirror.scheduler.SgTaskScheduler$TaskWrapper.runTask(SourceFile:941)
at org.tmatesoft.subgit.stash.mirror.scheduler.SgTaskScheduler$TaskWrapper.run(SourceFile:904)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Norbert, I was able to workaround the issue by downgrading to version 3.4.0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Minh,
It looks like your Subversion server relies on Digest authentication scheme and SVN Mirror add-on fails to use this scheme, most probably due to a missing parameter.
As a workaround, you can adjust Bitbucket startup script as follows:
edit BITBUCKET_INSTALL_DIR/bin/_start-webapp.sh
...
JVM_SUPPORT_RECOMMENDED_ARGS="-Dsvnkit.http.methods=Basic,Digest,NTLM,Negotiate"
Then restart your Bitbucket Server instance and re-try to setup a mirror.
Please let me know if this workaround works well in your environment.
Kind regards,
Semyon Vadishev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.