Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Maven3 build exception
Maven3 build exception [message #1043161] Wed, 17 April 2013 11:07 Go to next message
k z is currently offline k z
Messages: 71
Registered: October 2012
Member
Hi,

Hudson: 3.0.1
Maven 3 Build Plugin: 3.0.0

When I tried to run maven3 build I got java.lang.ArrayIndexOutOfBoundsException: 0 It happened for both bundeled (3.0.3) and installed (3.0.4) maven3 versions. Could you please tell me where the problem is?


Log when bundeled version was configured

Started by user <myuser>
Building remotely on hyrkania
Checkout:MSD_trunk_Complete / /home/builder/hudson/workspace/MSD_trunk_Complete - hudson.remoting.Channel@521c06f7:hyrkania
Using strategy: Default
Checkout:MSD_trunk_Complete / /home/builder/hudson/workspace/MSD_trunk_Complete - hudson.remoting.LocalChannel@7eb6ec07
Fetching changes from the remote Git repository
Fetching upstream changes from ssh://<myrepo>/home/git/repositories/MedStreamDesigner.git
Commencing build of Revision 91744705bf467286b3c838038ce7da92e92fced2 (origin/master)
Checking out Revision 91744705bf467286b3c838038ce7da92e92fced2 (origin/master)
No change to record in branch origin/master
[INFO] Using bundled Maven 3 installation
[INFO] Checking Maven 3 installation environment
[MSD_trunk_Complete] $ /home/builder/hudson/maven/slavebundle/bundled-maven/bin/mvn --help
[INFO] Checking Maven 3 installation version
[MSD_trunk_Complete] $ /home/builder/hudson/maven/slavebundle/bundled-maven/bin/mvn --version
[INFO] Detected Maven 3 installation version: 3.0.3
[DEBUG] Waiting for connection on port: 51701
[MSD_trunk_Complete] $ /home/builder/hudson/maven/slavebundle/bundled-maven/bin/mvn clean install -Ptt-test -V -B -Dprofile=tt-test -Dmaven.ext.class.path=/home/builder/hudson/maven/slavebundle/resources:/home/builder/hudson/maven/slavebundle/lib/maven3-eventspy-3.0.jar:/home/builder/hudson/slave.jar -Dhudson.eventspy.port=51701 -f pom.xml
[ERROR] Failure: java.lang.ArrayIndexOutOfBoundsException: 0
FATAL: java.lang.ArrayIndexOutOfBoundsException: 0
org.hudsonci.utils.tasks.OperationFailure: java.lang.ArrayIndexOutOfBoundsException: 0
	at org.hudsonci.utils.tasks.PerformOperation.execute(PerformOperation.java:64)
	at org.hudsonci.maven.plugin.builder.MavenBuilder.perform(MavenBuilder.java:169)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:34)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)
	at hudson.model.Build$RunnerImpl.build(Build.java:181)
	at hudson.model.Build$RunnerImpl.doRun(Build.java:136)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:434)
	at hudson.model.Run.run(Run.java:1390)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
	at hudson.model.ResourceController.execute(ResourceController.java:82)
	at hudson.model.Executor.run(Executor.java:137)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.choose(RemoteInvocationHandler.java:288)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:266)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:251)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:211)
	at hudson.remoting.UserRequest.perform(UserRequest.java:107)
	at hudson.remoting.UserRequest.perform(UserRequest.java:41)
	at hudson.remoting.Request$2.run(Request.java:276)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:722)


Log when installed maven version was configured
Started by user <myuser>
Building remotely on hyrkania
Checkout:MSD_trunk_Complete / /home/builder/hudson/workspace/MSD_trunk_Complete - hudson.remoting.Channel@521c06f7:hyrkania
Using strategy: Default
Last Built Revision: Revision 91744705bf467286b3c838038ce7da92e92fced2 (origin/master)
Checkout:MSD_trunk_Complete / /home/builder/hudson/workspace/MSD_trunk_Complete - hudson.remoting.LocalChannel@7eb6ec07
Fetching changes from the remote Git repository
Fetching upstream changes from ssh://<myrepo>/home/git/repositories/MedStreamDesigner.git
Commencing build of Revision 96629e77217451a311bc602a04cc3d07deb33a9b (origin/master)
Checking out Revision 96629e77217451a311bc602a04cc3d07deb33a9b (origin/master)
[INFO] Using Maven 3 installation: Maven_3.0.4
[INFO] Checking Maven 3 installation environment
[MSD_trunk_Complete] $ /usr/local/apache-maven-3.0.4/bin/mvn --help
[INFO] Checking Maven 3 installation version
[MSD_trunk_Complete] $ /usr/local/apache-maven-3.0.4/bin/mvn --version
[INFO] Detected Maven 3 installation version: 3.0.4
[DEBUG] Waiting for connection on port: 38645
[MSD_trunk_Complete] $ /usr/local/apache-maven-3.0.4/bin/mvn clean install -Ptt-test -V -B -Dprofile=tt-test -Dmaven.ext.class.path=/home/builder/hudson/maven/slavebundle/resources:/home/builder/hudson/maven/slavebundle/lib/maven3-eventspy-3.0.jar:/home/builder/hudson/slave.jar -Dhudson.eventspy.port=38645 -f pom.xml
[ERROR] Failure: java.lang.ArrayIndexOutOfBoundsException: 0
FATAL: java.lang.ArrayIndexOutOfBoundsException: 0
org.hudsonci.utils.tasks.OperationFailure: java.lang.ArrayIndexOutOfBoundsException: 0
	at org.hudsonci.utils.tasks.PerformOperation.execute(PerformOperation.java:64)
	at org.hudsonci.maven.plugin.builder.MavenBuilder.perform(MavenBuilder.java:169)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:34)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)
	at hudson.model.Build$RunnerImpl.build(Build.java:181)
	at hudson.model.Build$RunnerImpl.doRun(Build.java:136)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:434)
	at hudson.model.Run.run(Run.java:1390)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
	at hudson.model.ResourceController.execute(ResourceController.java:82)
	at hudson.model.Executor.run(Executor.java:137)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.choose(RemoteInvocationHandler.java:288)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:266)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:251)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:211)
	at hudson.remoting.UserRequest.perform(UserRequest.java:107)
	at hudson.remoting.UserRequest.perform(UserRequest.java:41)
	at hudson.remoting.Request$2.run(Request.java:276)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:722)
Re: Maven3 build exception [message #1043398 is a reply to message #1043161] Wed, 17 April 2013 16:51 Go to previous messageGo to next message
Winston Prakash is currently offline Winston Prakash
Messages: 420
Registered: August 2011
Location: Fremont, CA USA
Senior Member
What is the JDK version on the slave where it builds?

Winston Prakash
Eclipse Hudson team
Re: Maven3 build exception [message #1043536 is a reply to message #1043398] Wed, 17 April 2013 20:55 Go to previous messageGo to next message
k z is currently offline k z
Messages: 71
Registered: October 2012
Member
1.7.0_17

builder@hyrkania:~$ java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
Re: Maven3 build exception [message #1043569 is a reply to message #1043536] Wed, 17 April 2013 22:05 Go to previous messageGo to next message
Winston Prakash is currently offline Winston Prakash
Messages: 420
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Ah ok. You must be hitting the error discussed at http://www.eclipse.org/forums/index.php?t=rview&goto=895999#msg_895999. We do fix the JDK 7 issue in 3.0.1-b2. But maven may still be suffering from the issue.


Winston Prakash
Eclipse Hudson team
Re: Maven3 build exception [message #1045593 is a reply to message #1043569] Sat, 20 April 2013 14:23 Go to previous message
k z is currently offline k z
Messages: 71
Registered: October 2012
Member
Running slave under java 1.6 fixed maven problem.
Previous Topic:Cobertura Plugins does not show yellow ball
Next Topic:Problem with CVS plugin
Goto Forum:
  


Current Time: Tue Sep 23 12:24:26 GMT 2014

Powered by FUDForum. Page generated in 0.03005 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software