You are not logged in.
I had to downgrade my version of zlib (1:1.2.10-1 => 1:1.2.8-7) to solve an issue with my java builds.
While using maven I was getting weird errors when running our test suites on all of our projects : the surefire jars (glorified zip files used in the java world) were all corrupted.
...
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ xxx-common-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to /home/rouadec/sources/projects/xxx/cms/common-api/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ xxx-common-api ---
[INFO] Surefire report directory: /home/rouadec/sources/projects/xxx/cms/common-api/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Error: Invalid or corrupt jarfile /home/rouadec/sources/projects/xxx/cms/common-api/target/surefire/surefirebooter735577091542994628.jar
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] root ............................................... SUCCESS [ 0.919 s]
[INFO] xxx-common-api .................................. FAILURE [ 1.469 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.787 s
[INFO] Finished at: 2017-01-16T10:53:17+01:00
[INFO] Final Memory: 27M/374M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project xxx-api: Execution defaul
t-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: The forked VM terminated without properly saying goodbye. VM crash or
System.exit called?
[ERROR] Command was /bin/sh -c cd /home/rouadec/sources/projects/xxx/cms/common-api && /usr/lib/jvm/java-8-openjdk/jre/bin/java -jar /home
/rouadec/sources/projects/xxx/cms/common-api/target/surefire/surefirebooter735577091542994628.jar /home/rouadec/sources/projects/xxx/cms/common-api/target/surefire/surefire1227911230855873119tmp /home/rouadec/sources/projects/xxx/cms/common-api/target/surefire/sure
fire_03645671359029708442tmp
[ERROR] -> [Help 1]
And sure enough while I could open the jar file as a zip file (using file-roller), its content was not readable.
unzip surefirebooter5085610243570946377.jar
Archive: surefirebooter5085610243570946377.jar
inflating: /tmp/zlib_issue/META-INF/MANIFEST.MF bad CRC ac495856 (should be 8e72222c)
I've tried different combos of java/maven/surefire versions all showing with the same issue
If I bypass the test I end up with valid jar files.
Downgrading zlib (after having downgraded minizip too, but without it making a difference) solved my issue but unless it's an issue within zlib I expect it to come back and haunt me.
Last edited by rouadec (2017-01-17 21:45:31)
Offline
Thank you for this, the same issue has been puzzling me this morning. Downgrading to 1.2.8-7 fixed the issue.
Last edited by spikeh (2017-01-16 12:21:41)
Thinkpad T420
Offline
Thanks! Had the same problem, downgrading zlib helps.
Offline
Upgrading again to 1.2.11-1 has resolved the issue.
Thinkpad T420
Offline