com.atlassian.bamboo.repository.RepositoryException: Failed to get source code

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When configure a project / plan with Subversion repository, if the OS locale setting on the machine is set to *Thai* (which uses Buddhist Calendar), the exception will be thrown as negative time. Changing the locale to English does eliminate the exception. Note: Buddhist Calendar Year = Gregorian Calendar Year + 543 Stack Trace: {code} com.atlassian.bamboo.repository.RepositoryException: Failed to get source code at com.atlassian.bamboo.repository.svn.SvnRepository.getAllSourceCode(SvnRepository.java:379) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.getCleanBuild(DefaultBuildChangeDetector.java:256) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.checkIfBuildNeedsBuilding(DefaultBuildChangeDetector.java:171) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.doTask(DefaultBuildChangeDetector.java:114) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.run(DefaultBuildChangeDetector.java:77) at java.lang.Thread.run(Unknown Source) Caused by: com.atlassian.bamboo.repository.RepositoryException: Failed to get source code at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:579) at com.atlassian.bamboo.repository.svn.SvnRepository.getAllSourceCode(SvnRepository.java:373) ... 5 more Caused by: org.tmatesoft.svn.core.SVNException: svn: Negative time at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:62) at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:313) at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:206) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1002) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.update(SVNRepositoryImpl.java:568) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:162) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:322) at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:573) ... 6 more Caused by: java.lang.IllegalArgumentException: Negative time at java.io.File.setLastModified(Unknown Source) at org.tmatesoft.svn.core.internal.wc.admin.SVNLogRunner.runCommand(SVNLogRunner.java:195) at org.tmatesoft.svn.core.internal.wc.admin.SVNLog.run(SVNLog.java:179) at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea.runLogs(SVNAdminArea.java:699) at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor$SVNDirectoryInfo.runLogs(SVNUpdateEditor.java:825) at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor.closeDir(SVNUpdateEditor.java:322) at org.tmatesoft.svn.core.internal.wc.SVNCancellableEditor.closeDir(SVNCancellableEditor.java:98) at org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.processCommand(SVNEditModeReader.java:92) at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:306) ... 12 more {code}
    via by Vairoj Arunyaangkul,
  • When configure a project / plan with Subversion repository, if the OS locale setting on the machine is set to *Thai* (which uses Buddhist Calendar), the exception will be thrown as negative time. Changing the locale to English does eliminate the exception. Note: Buddhist Calendar Year = Gregorian Calendar Year + 543 Stack Trace: {code} com.atlassian.bamboo.repository.RepositoryException: Failed to get source code at com.atlassian.bamboo.repository.svn.SvnRepository.getAllSourceCode(SvnRepository.java:379) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.getCleanBuild(DefaultBuildChangeDetector.java:256) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.checkIfBuildNeedsBuilding(DefaultBuildChangeDetector.java:171) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.doTask(DefaultBuildChangeDetector.java:114) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.run(DefaultBuildChangeDetector.java:77) at java.lang.Thread.run(Unknown Source) Caused by: com.atlassian.bamboo.repository.RepositoryException: Failed to get source code at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:579) at com.atlassian.bamboo.repository.svn.SvnRepository.getAllSourceCode(SvnRepository.java:373) ... 5 more Caused by: org.tmatesoft.svn.core.SVNException: svn: Negative time at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:62) at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:313) at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:206) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1002) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.update(SVNRepositoryImpl.java:568) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:162) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:322) at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:573) ... 6 more Caused by: java.lang.IllegalArgumentException: Negative time at java.io.File.setLastModified(Unknown Source) at org.tmatesoft.svn.core.internal.wc.admin.SVNLogRunner.runCommand(SVNLogRunner.java:195) at org.tmatesoft.svn.core.internal.wc.admin.SVNLog.run(SVNLog.java:179) at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea.runLogs(SVNAdminArea.java:699) at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor$SVNDirectoryInfo.runLogs(SVNUpdateEditor.java:825) at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor.closeDir(SVNUpdateEditor.java:322) at org.tmatesoft.svn.core.internal.wc.SVNCancellableEditor.closeDir(SVNCancellableEditor.java:98) at org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.processCommand(SVNEditModeReader.java:92) at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:306) ... 12 more {code}
    via by Vairoj Arunyaangkul,
  • Negative time error
    via areca by nobody
    ,
    • com.atlassian.bamboo.repository.RepositoryException: Failed to get source code at com.atlassian.bamboo.repository.svn.SvnRepository.getAllSourceCode(SvnRepository.java:379) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.getCleanBuild(DefaultBuildChangeDetector.java:256) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.checkIfBuildNeedsBuilding(DefaultBuildChangeDetector.java:171) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.doTask(DefaultBuildChangeDetector.java:114) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.run(DefaultBuildChangeDetector.java:77) at java.lang.Thread.run(Unknown Source) Caused by: com.atlassian.bamboo.repository.RepositoryException: Failed to get source code at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:579) at com.atlassian.bamboo.repository.svn.SvnRepository.getAllSourceCode(SvnRepository.java:373) ... 5 more Caused by: org.tmatesoft.svn.core.SVNException: svn: Negative time at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:62) at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:313) at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:206) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1002) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.update(SVNRepositoryImpl.java:568) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:162) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:322) at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:573) ... 6 more Caused by: java.lang.IllegalArgumentException: Negative time at java.io.File.setLastModified(Unknown Source) at org.tmatesoft.svn.core.internal.wc.admin.SVNLogRunner.runCommand(SVNLogRunner.java:195) at org.tmatesoft.svn.core.internal.wc.admin.SVNLog.run(SVNLog.java:179) at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea.runLogs(SVNAdminArea.java:699) at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor$SVNDirectoryInfo.runLogs(SVNUpdateEditor.java:825) at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor.closeDir(SVNUpdateEditor.java:322) at org.tmatesoft.svn.core.internal.wc.SVNCancellableEditor.closeDir(SVNCancellableEditor.java:98) at org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.processCommand(SVNEditModeReader.java:92) at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:306) ... 12 more
    No Bugmate found.