Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57918

SCM Checkout: java.lang.ArrayIndexOutOfBoundsException: -1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins 2.164.2
      Pipeline: SCM Step 2.9
      REPO plugin 1.10.7
    • repo 1.11.0, workflow-scm-step 2.10

      After an update of a couple of plugins yesterday,

      SCM checkout fails for Gerrit Repo.

      if changelog is set to true:

      java.lang.ArrayIndexOutOfBoundsException: -1
      	at com.thoughtworks.xstream.core.util.FastStack.pop(FastStack.java:42)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:125)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
      	at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63)
      	at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1044)
      	at hudson.plugins.repo.ChangeLog.parse(ChangeLog.java:79)
      	at hudson.plugins.repo.ChangeLog.parse(ChangeLog.java:59)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.onCheckout(WorkflowRun.java:835)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1100(WorkflowRun.java:133)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun$SCMListenerImpl.onCheckout(WorkflowRun.java:1100)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:140)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      if changelog is set to false:

      Similar exception without a stacktrace:

      ...
      
      00:03:19.618  Added a project: packages/apps/CMFileManager at revision: e65455f23ed00b7cddebb7bd21991363a944ba75
      00:03:19.618  Added a project: external/can-utils at revision: 47f2e7a180e50ee998f2e6aea45884f84042c4fa
      00:03:19.618  Added a project: external/i2c-tools at revision: b1bef14300a951d0a5ba02a43a05977bb5624fda
      00:03:19.618  Manifest at revision: 48405e81e6b420fede221c0922afd26b444cd61e
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // timestamps
      [Pipeline] }
      [Pipeline] // withEnv
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      [BFA] Scanning build for known causes...
      [BFA] No failure causes found
      [BFA] Done. 0s
      java.lang.ArrayIndexOutOfBoundsException
      Finished: FAILURE
      

      Git checkout works as expected.

      I first reverted

      • Pipeline: Step API -> 2.19
      • Pipeline: SCM Step -> 2.8
        Did not help, though. Next, I will downgrade everything I updated yesterday.

            dnusbaum Devin Nusbaum
            skolberg Sascha Kolberg
            Votes:
            9 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: