SVN UpdateEventHandler throws NPE

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 2.2
    • Affects Version/s: 2.1.5, 2.2 M2, 2.2 M3
    • None

      In case svnkit sends an SKIP file event UpdateEventHandler treats this as an ERROR - but it is only an action event.
      Extracting the error message leads to null.
      The skip event is not necessarily an error (I guess) - UEH should check for the existence of the error message in the event.
      Stack trace:
      com.atlassian.bamboo.repository.RepositoryException: Unable to retrieve source code to '75994' for 'LVI-ADMIN'
      at com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCode(SvnRepository.java:372)
      at com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.call(CheckoutUpdateForBuild.java:94)
      at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:192)
      at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:89)
      at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:105)
      at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32)
      at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.tmatesoft.svn.core.SVNException: svn: Error while dispatching event: null
      at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
      at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
      at org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.driveEditor(SVNEditModeReader.java:231)
      at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.update(SVNRepositoryImpl.java:1481)
      at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:446)
      at com.atlassian.bamboo.repository.svn.SvnRepository.update(SvnRepository.java:814)
      at com.atlassian.bamboo.repository.svn.SvnRepository.retreiveSourceCodeWithException(SvnRepository.java:412)
      at com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCode(SvnRepository.java:333)
      ... 7 more
      Caused by: java.lang.NullPointerException
      at com.atlassian.bamboo.repository.svn.UpdateEventHandler.handleEvent(UpdateEventHandler.java:149)
      at org.tmatesoft.svn.core.wc.SVNBasicClient.dispatchEvent(SVNBasicClient.java:365)
      at org.tmatesoft.svn.core.wc.SVNBasicClient.handleEvent(SVNBasicClient.java:428)
      at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.handleEvent(SVNWCAccess.java:94)
      at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.handleEvent(SVNWCAccess.java:78)
      at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor.openFile(SVNUpdateEditor.java:984)
      at org.tmatesoft.svn.core.internal.wc.SVNUpdateEditor.openFile(SVNUpdateEditor.java:542)
      at org.tmatesoft.svn.core.internal.wc.SVNCancellableEditor.openFile(SVNCancellableEditor.java:113)
      at org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.processCommand(SVNEditModeReader.java:149)
      at org.tmatesoft.svn.core.internal.io.svn.SVNEditModeReader.driveEditor(SVNEditModeReader.java:214)
      ... 12 more

        1. UpdateEventHandler.java
          6 kB
          Ulrich Kuhnhardt [Atlassian]

              Assignee:
              Ulrich Kuhnhardt [Atlassian]
              Reporter:
              Ulrich Kuhnhardt [Atlassian]
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1h Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h