[ImageJ-builds] Build failed in Jenkins: ImageJ-1.x-patcher #8

jenkins at imagej.net jenkins at imagej.net
Fri Apr 18 08:54:46 CDT 2014


See <http://jenkins.imagej.net/job/ImageJ-1.x-patcher/8/changes>

Changes:

[Jenkins] Bump to pom-scijava 1.157

------------------------------------------
Started by an SCM change
Building on master in workspace <http://jenkins.imagej.net/job/ImageJ-1.x-patcher/ws/>
Fetching changes from the remote Git repository
Fetching upstream changes from https://github.com/imagej/ij1-patcher
Checking out Revision 8d673a369c0b9b9e0f74ad5a424886a0c4c14801 (origin/master)
[workspace] $ /bin/sh -xe /tmp/hudson8662049526785182491.sh
+ git clean -dfx
Removing target/
[workspace] $ mvn -U -Prun-its clean install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Runtime patcher to introduce extension points into ImageJ 1.x 0.3.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ij1-patcher ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ ij1-patcher ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd /data/devel/jenkins/jobs/ImageJ-1.x-patcher/workspace && git rev-parse --verify HEAD
[INFO] Working directory: /data/devel/jenkins/jobs/ImageJ-1.x-patcher/workspace
[INFO] Storing buildNumber: 8d673a369c0b9b9e0f74ad5a424886a0c4c14801 at timestamp: 1397829278873
[INFO] Executing: /bin/sh -c cd /data/devel/jenkins/jobs/ImageJ-1.x-patcher/workspace && git rev-parse --verify HEAD
[INFO] Working directory: /data/devel/jenkins/jobs/ImageJ-1.x-patcher/workspace
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ij1-patcher ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /data/devel/jenkins/jobs/ImageJ-1.x-patcher/workspace/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ij1-patcher ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to /data/devel/jenkins/jobs/ImageJ-1.x-patcher/workspace/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ij1-patcher ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /data/devel/jenkins/jobs/ImageJ-1.x-patcher/workspace/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ij1-patcher ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to /data/devel/jenkins/jobs/ImageJ-1.x-patcher/workspace/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ ij1-patcher ---
[INFO] Surefire report directory: /data/devel/jenkins/jobs/ImageJ-1.x-patcher/workspace/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running imagej.patcher.ImageJ1EncapsulationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.926 sec - in imagej.patcher.ImageJ1EncapsulationTest
Running imagej.patcher.HeadlessEnvironmentTest
(unset)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at imagej.patcher.LegacyEnvironment.runPlugIn(LegacyEnvironment.java:288)
	at imagej.patcher.HeadlessEnvironmentTest.runExamplePlugin(HeadlessEnvironmentTest.java:144)
	at imagej.patcher.HeadlessEnvironmentTest.runExampleDialogPlugin(HeadlessEnvironmentTest.java:136)
	at imagej.patcher.HeadlessEnvironmentTest.testPatchIsRequired(HeadlessEnvironmentTest.java:118)
	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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.lang.reflect.InvocationTargetException
	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 imagej.patcher.LegacyEnvironment.runPlugIn(LegacyEnvironment.java:285)
	... 27 more
Caused by: java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
	at java.awt.Window.<init>(Window.java:433)
	at java.awt.Frame.<init>(Frame.java:403)
	at java.awt.Frame.<init>(Frame.java:368)
	at ij.gui.GenericDialog.<init>(GenericDialog.java:88)
	at imagej.patcher.Headless_Example_Plugin.run(Headless_Example_Plugin.java:84)
	at ij.IJ.runUserPlugIn(IJ.java:199)
	at ij.IJ.runPlugIn(IJ.java:163)
	at ij.IJ.runPlugIn(IJ.java:152)
	... 32 more
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.939 sec - in imagej.patcher.HeadlessEnvironmentTest
Running imagej.patcher.FatJarTest
first entry is xalan.jar
Now, first entry is batik.jar
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.242 sec - in imagej.patcher.FatJarTest
Running imagej.patcher.HeadlessCompletenessTest
Tests run: 2, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 0.022 sec <<< FAILURE! - in imagej.patcher.HeadlessCompletenessTest
missingGenericDialogMethods(imagej.patcher.HeadlessCompletenessTest)  Time elapsed: 0.022 sec  <<< FAILURE!
java.lang.AssertionError: isPreviewActive() is not overridden
	at org.junit.Assert.fail(Assert.java:91)
	at org.junit.Assert.assertTrue(Assert.java:43)
	at imagej.patcher.HeadlessCompletenessTest.missingGenericDialogMethods(HeadlessCompletenessTest.java:148)

Running imagej.patcher.ExtraPluginDirsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.821 sec - in imagej.patcher.ExtraPluginDirsTest

Results :

Failed tests: 
  HeadlessCompletenessTest.missingGenericDialogMethods:148 isPreviewActive() is not overridden

Tests run: 14, Failures: 1, Errors: 0, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.823s
[INFO] Finished at: Fri Apr 18 08:54:46 CDT 2014
[INFO] Final Memory: 13M/360M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project ij1-patcher: There are test failures.
[ERROR] 
[ERROR] Please refer to /data/devel/jenkins/jobs/ImageJ-1.x-patcher/workspace/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Build step 'Invoke top-level Maven targets' marked build as failure
Archiving artifacts
Recording test results
Performance: Percentage of errors greater or equal than 0% sets the build as unstable
Performance: Percentage of errors greater or equal than 0% sets the build as failure



Performance: Recording JUnit reports '**/TEST-*.xml'
TEST-imagej.patcher.ExtraPluginDirsTest.xml has an average of: 205
Performance: File TEST-imagej.patcher.ExtraPluginDirsTest.xml reported 0.0% of errors [SUCCESS]. Build status is: FAILURE



TEST-imagej.patcher.FatJarTest.xml has an average of: 242
Performance: File TEST-imagej.patcher.FatJarTest.xml reported 0.0% of errors [SUCCESS]. Build status is: FAILURE



TEST-imagej.patcher.HeadlessCompletenessTest.xml has an average of: 11
Performance: File TEST-imagej.patcher.HeadlessCompletenessTest.xml reported 50.0% of errors [FAILURE]. Build status is: FAILURE



TEST-imagej.patcher.HeadlessEnvironmentTest.xml has an average of: 489
Performance: File TEST-imagej.patcher.HeadlessEnvironmentTest.xml reported 0.0% of errors [FAILURE]. Build status is: FAILURE



TEST-imagej.patcher.ImageJ1EncapsulationTest.xml has an average of: 908
Performance: File TEST-imagej.patcher.ImageJ1EncapsulationTest.xml reported 0.0% of errors [FAILURE]. Build status is: FAILURE






More information about the ImageJ-builds mailing list