Bamboo Fails to Checkout SVN Repository Reporting "Invalid padding"

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

During a Build, when Bamboo tries to checkout code, the process fails and the following message pattern is reported:

1 2 3 4 5 6 7 8 9 10 11 Caused by: org.tmatesoft.svn.core.SVNException: svn: Invalid padding svn: OPTIONS request failed on '/repositories/svn/EWS/Base/trunk' at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:645) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:280) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:268) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:533) 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:1009) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:180)

Cause

The problem is caused because of an incompatibility of SVNKit (the library Bamboo uses to communicate with SVN servers) and Java SDK 1.7.

Resolution

Instead of using Java JDK version 1.7, use version 1.6.

Updated on April 11, 2025

Still need help?

The Atlassian Community is here for you.