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

Atlassian JIRA | Vairoj Arunyaangkul | 10 years ago
  1. 0

    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}

    Atlassian JIRA | 10 years ago | Vairoj Arunyaangkul
    com.atlassian.bamboo.repository.RepositoryException: Failed to get source code
  2. 0

    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}

    Atlassian JIRA | 10 years ago | Vairoj Arunyaangkul
    com.atlassian.bamboo.repository.RepositoryException: Failed to get source code
  3. 0

    "Negative time" when trying to run WAR generated with tomcat7-maven-plugin:exec-war-only

    Stack Overflow | 3 years ago | AlexZam
    java.lang.IllegalArgumentException: Negative time
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    What am I doing to cause an "IllegalArgumentException: Negative time" exception in install4j?

    Stack Overflow | 4 years ago | Frank
    java.lang.IllegalArgumentException: Negative time

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Negative time

      at java.io.File.setLastModified()
    2. Java RT
      File.setLastModified
      1. java.io.File.setLastModified(Unknown Source)
      1 frame
    3. SVNKit Library
      SVNUpdateClient.doCheckout
      1. org.tmatesoft.svn.core.internal.wc.admin.SVNLogRunner.runCommand(SVNLogRunner.java:195)
      2. org.tmatesoft.svn.core.internal.wc.admin.SVNLog.run(SVNLog.java:179)
      3. org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea.runLogs(SVNAdminArea.java:699)
      4. org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor$SVNDirectoryInfo.runLogs(SVNUpdateEditor.java:825)
      5. org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor.closeDir(SVNUpdateEditor.java:322)
      6. org.tmatesoft.svn.core.internal.wc.SVNCancellableEditor.closeDir(SVNCancellableEditor.java:98)
      7. org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.processCommand(SVNEditModeReader.java:92)
      8. org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:306)
      9. org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:206)
      10. org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1002)
      11. org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.update(SVNRepositoryImpl.java:568)
      12. org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:162)
      13. org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:322)
      13 frames
    4. com.atlassian.bamboo
      DefaultBuildChangeDetector.run
      1. com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:573)
      2. com.atlassian.bamboo.repository.svn.SvnRepository.getAllSourceCode(SvnRepository.java:373)
      3. com.atlassian.bamboo.build.DefaultBuildChangeDetector.getCleanBuild(DefaultBuildChangeDetector.java:256)
      4. com.atlassian.bamboo.build.DefaultBuildChangeDetector.checkIfBuildNeedsBuilding(DefaultBuildChangeDetector.java:171)
      5. com.atlassian.bamboo.build.DefaultBuildChangeDetector.doTask(DefaultBuildChangeDetector.java:114)
      6. com.atlassian.bamboo.build.DefaultBuildChangeDetector.run(DefaultBuildChangeDetector.java:77)
      6 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame