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

ArrayIndexOutOfBounds exception with Maven build when triggered by SCM change

      When I force the build, it succeeds.
      When the build is triggered by an SCM change, the job appears to build successfully until the very end of the "mvn clean install site" command where I get the following stack trace, which seems awfully familiar to some old lazily loaded job issues that I had a few versions ago...

      Waiting for Jenkins to finish collecting data
      mavenExecutionResult exceptions not empty
      message : Internal error: java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #3 DESC: lo=17,hi=3,size=106,size2=106
      cause : Assertion error: failing to load #3 DESC: lo=17,hi=3,size=106,size2=106
      Stack trace :
      org.apache.maven.InternalErrorException: Internal error: java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #3 DESC: lo=17,hi=3,size=106,size2=106
      at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #3 DESC: lo=17,hi=3,size=106,size2=106
      at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:418)
      at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:210)
      at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:349)
      at hudson.model.Run.onLoad(Run.java:303)
      at hudson.maven.MavenModuleSetBuild.onLoad(MavenModuleSetBuild.java:140)
      at hudson.model.RunMap.retrieve(RunMap.java:221)
      at hudson.model.RunMap.retrieve(RunMap.java:59)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:638)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:621)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:432)
      at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:210)
      at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:349)
      at hudson.model.Run.onLoad(Run.java:303)
      at hudson.maven.MavenModuleSetBuild.onLoad(MavenModuleSetBuild.java:140)
      at hudson.model.RunMap.retrieve(RunMap.java:221)
      at hudson.model.RunMap.retrieve(RunMap.java:59)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:638)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:621)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.getById(AbstractLazyLoadRunMap.java:498)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:472)
      at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:210)
      at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:349)
      at hudson.model.Run.onLoad(Run.java:303)
      at hudson.maven.MavenModuleSetBuild.onLoad(MavenModuleSetBuild.java:140)
      at hudson.model.RunMap.retrieve(RunMap.java:221)
      at hudson.model.RunMap.retrieve(RunMap.java:59)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:638)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:621)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:432)
      at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:210)
      at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:349)
      at hudson.model.Run.onLoad(Run.java:303)
      at hudson.maven.MavenModuleSetBuild.onLoad(MavenModuleSetBuild.java:140)
      at hudson.model.RunMap.retrieve(RunMap.java:221)
      at hudson.model.RunMap.retrieve(RunMap.java:59)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:638)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:621)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.getById(AbstractLazyLoadRunMap.java:498)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:472)
      at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:210)
      at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:349)
      at hudson.model.Run.onLoad(Run.java:303)
      at hudson.maven.MavenModuleSetBuild.onLoad(MavenModuleSetBuild.java:140)
      at hudson.model.RunMap.retrieve(RunMap.java:221)
      at hudson.model.RunMap.retrieve(RunMap.java:59)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:638)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:621)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.getById(AbstractLazyLoadRunMap.java:498)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:472)
      at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:210)
      at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:103)
      at hudson.plugins.analysis.core.BuildHistory.getAction(BuildHistory.java:112)
      at hudson.plugins.analysis.core.BuildHistory.getReferenceAction(BuildHistory.java:98)
      at hudson.plugins.analysis.core.BuildHistory.getReferenceAnnotations(BuildHistory.java:84)
      at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:262)
      at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:215)
      at hudson.plugins.tasks.TasksResult.<init>(TasksResult.java:84)
      at hudson.plugins.tasks.TasksResult.<init>(TasksResult.java:54)
      at hudson.plugins.tasks.TasksMavenResultAction.createAggregatedAction(TasksMavenResultAction.java:79)
      at hudson.maven.MavenModuleSetBuild.notifyModuleBuild(MavenModuleSetBuild.java:524)
      at hudson.maven.MavenBuild$ProxyImpl2.end(MavenBuild.java:491)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at hudson.model.Executor$1.call(Executor.java:531)
      at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
      at $Proxy227.end(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:275)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:256)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Sending e-mails to: Benjamin.McDonie@ultra-prologic.com
      channel stopped
      [WARNINGS] Skipping publisher since build result is FAILURE
      [ANALYSIS-COLLECTOR] Skipping publisher since build result is FAILURE
      Skipping Cobertura coverage report as build was not UNSTABLE or better ...
      Skipping sonar analysis due to bad build status FAILURE
      Sending e-mails to: Benjamin.McDonie@ultra-prologic.com
      Finished: FAILURE

          [JENKINS-15642] ArrayIndexOutOfBounds exception with Maven build when triggered by SCM change

          Ben McDonie created issue -
          Ben McDonie made changes -
          Labels Original: ArrayOutOfBoundsException lazy-loading maven scm New: ArrayIndexOutOfBounds lazy-loading maven scm
          Summary Original: ArrayOutOfBounds exception with Maven build when triggered by SCM change New: ArrayIndexOutOfBounds exception with Maven build when triggered by SCM change
          Ulli Hafner made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: maven [ 16033 ]
          Ulli Hafner made changes -
          Link New: This issue is duplicated by JENKINS-16256 [ JENKINS-16256 ]
          kutzi made changes -
          Link New: This issue is related to JENKINS-15652 [ JENKINS-15652 ]
          kutzi made changes -
          Assignee New: Kohsuke Kawaguchi [ kohsuke ]
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-15652 [ JENKINS-15652 ]
          Jesse Glick made changes -
          Link Original: This issue is related to JENKINS-15652 [ JENKINS-15652 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 146398 ] New: JNJira + In-Review [ 191916 ]

            kohsuke Kohsuke Kawaguchi
            zonybob Ben McDonie
            Votes:
            10 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: