Hi I retrieved the latest code (1.579-SNAPSHOT) from jenkinsci/jenkins. Build with maven is running fine. I'm able to launch a local version of jenkins and use it. When I import as a maven project the jenkins-test-harness module in Eclipse (Kepler SR1), I get errors when I try to launch UserTest.java as a JUnit test. I see it tries to start a jenkins instance:
Using jenkins.war resources from /Users/domi/Documents/github/jenkins-domi/war/target/jenkins Aug 27, 2014 8:18:00 AM org.jvnet.hudson.test.JenkinsRule createWebServer INFO: Running on http://localhost:62124/jenkins/ Aug 27, 2014 8:18:00 AM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization But it eventually fails with this error: Aug 27, 2014 8:18:14 AM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed PluginImpl.init java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:885) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) 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:744) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105) ... 8 more Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at hudson.ExtensionList.get(ExtensionList.java:158) at hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1203) at hudson.maven.PluginImpl.init(PluginImpl.java:58) ... 13 more As a consequence none of the test code gets executed. Could you help me understand what's wrong with my setup? Point me to a documentation page on that topic? Thanks, Dominique -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Trouble-running-JUnit-test-in-jenkins-test-harness-from-Eclipse-tp4716970.html Sent from the Jenkins dev mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
