Maven jenkins build is throwing exception.

189 views
Skip to first unread message

devanand

unread,
Mar 20, 2013, 8:34:12 PM3/20/13
to jenkins...@googlegroups.com
Hi,


I am getting following exception even though i can see my build is successfull. I can see on local box this has artifact available but still i can see this error whenever i run my jenkins maven build job....

Please check the attachment of configuration which i am doingn for this project...

Please help me to find out the problem.... I think this is Jenkins Plugin problem.... or correct me if any other configuration i need to do here....



INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.602s
[INFO] Finished at: Wed Mar 20 17:28:49 PDT 2013
[INFO] Final Memory: 10M/156M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving disabled
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Internal error: java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #31 ASC: lo=31,hi=0,size=31,size2=31
cause : Assertion error: failing to load #31 ASC: lo=31,hi=0,size=31,size2=31
Stack trace : 
org.apache.maven.InternalErrorException: Internal error: java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #31 ASC: lo=31,hi=0,size=31,size2=31
	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:319)
	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:100)
	at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
	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 #31 ASC: lo=31,hi=0,size=31,size2=31
	at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:432)
	at hudson.model.AbstractBuild.getNextBuild(AbstractBuild.java:244)
	at hudson.maven.MavenModuleSetBuild.getModuleBuilds(MavenModuleSetBuild.java:275)
	at hudson.maven.MavenModuleSetBuild.notifyModuleBuild(MavenModuleSetBuild.java:500)
	at hudson.maven.MavenBuild$ProxyImpl2.end(MavenBuild.java:506)
	at sun.reflect.GeneratedMethodAccessor532.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:543)
	at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
	at $Proxy45.end(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor531.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)
channel stopped
Archiving artifacts
FATAL: Assertion error: failing to load #31 ASC: lo=31,hi=0,size=31,size2=31
java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #31 ASC: lo=31,hi=0,size=31,size2=31
	at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:432)
	at hudson.model.AbstractBuild.getNextBuild(AbstractBuild.java:244)
	at hudson.maven.MavenModuleSetBuild.getModuleBuilds(MavenModuleSetBuild.java:275)
	at hudson.maven.reporters.MavenFingerprinter.aggregate(MavenFingerprinter.java:259)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:958)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:739)
	at hudson.model.Run.execute(Run.java:1592)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:237)

maven_build_configuration.png

Eric Pyle

unread,
Mar 21, 2013, 8:28:58 AM3/21/13
to jenkins...@googlegroups.com
This is JENKINS-15642.

Eric
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

devanand

unread,
Mar 21, 2013, 12:29:20 PM3/21/13
to jenkins...@googlegroups.com
Hi Eric,

When should i expect to be resolved this BUG ? or is there any work around to this problem ???

Thanks.

Eric Pyle

unread,
Mar 21, 2013, 1:06:37 PM3/21/13
to jenkins...@googlegroups.com
Sorry, I don't know when it may be fixed. I am not involved in working on it. As for a workaround, the bug reporter says if the build is manually started, it succeeds - not sure if you've tried that. To still have builds triggered automatically, you could set up a post-commit hook in your source control system to trigger builds when changes are committed. Details depend on which SCM you use. For Git, see http://blog.cloudbees.com/2011/11/polling-must-die-triggering-jenkins.html.

Regards,
Eric

devanand

unread,
Mar 21, 2013, 2:03:30 PM3/21/13
to jenkins...@googlegroups.com
Hi Eric,

I am not using Poll feature at all... I have this build scheduled with Manual JOB only..... But still i am getting this exception....

I don't see any workaround on this problem.... I am stuck really and don't know how to resolve this problem.... If you can give me some other workaround to fix this issue that will be great....


Thanks.

devanand

unread,
Mar 21, 2013, 2:46:44 PM3/21/13
to jenkins...@googlegroups.com
Hi Eric,

Just a UPDATE on this one....

I was trying to create a JOB as
And it was throwing this exceptions so basically this feature is not stable and not working at all to create successful builds. 

I tried with 

And same commands worked for me to setup automated build for Maven project....

So work around is to use free-style software project....

Looks like MAVEN plugin is not stable and not working upto date at all... Somebody need to test this completely :) 

Thanks.
Reply all
Reply to author
Forward
0 new messages