cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wilder Rodrigues <>
Subject Re: [JENKINS] Java 8 job doesn't use Java 8 at all
Date Tue, 19 May 2015 07:24:27 GMT
Hi Pierre-Luc,

Is that possible to have Java OpenJDK 8 Devel installed and marked as the alternative in the
slave that builds the jdk18 job?

It’s also important to say that both java and java point to the correct version.

I am now testing a fix I added for a couple of test suites that were using PowerMock as Junit
Runner. Instead, I’m simply using the mockito runner, which works fine with java 8. I’m
able to build, run tests and run the management server with java-1.8.0-openjdk-

In order to test the build, I did:

== Using java-1.7.0-openjdk- ==
mvn -P developer,systemvm clean install

== Using java-1.8.0-openjdk- ==
mvn -P developer,systemvm clean install
mvn -P developer,systemvm clean install -Dmaven.compiler.source=1.8

It all works fine. I will create a PR once the is done.

Thanks in advance.


On 18 May 2015, at 13:45, Wilder Rodrigues <<>>

Hi guys,

After [a guy] reported that the Java 8 build was broken due to a failure in an Unit Test,
I traced the route cause and tried to build ACS using the OpenJDK 1.8 in my test environment.
Unfortunately, it did not work due to an error when loading the Mockito classes :

Error: invalid constant type: 18

After that, I had a look at the Jenkins  build logs and found out the following:

[build-master-jdk18] $ /home/jenkins/acs/tools/hudson.tasks.Maven_MavenInstallation/maven-3.1.1/bin/mvn
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 15:22:22+0000)
Maven home: /home/jenkins/acs/tools/hudson.tasks.Maven_MavenInstallation/maven-3.1.1
Java version: 1.7.0_75, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-123.20.1.el7.x86_64", arch: "amd64", family: "unix"

Based on the output, we are not even using Java 8 for the build called JDK18.

Before making any assumption and sending this email, I had a look at the slave node with Daan
and we found out that OpenJDK 1.8 is not even installed:

javac - status is auto.
link currently points to /usr/lib/jvm/java-1.7.0-openjdk-
/usr/lib/jvm/java-1.7.0-openjdk- - priority 170075
slave appletviewer: /usr/lib/jvm/java-1.7.0-openjdk-
slave apt: /usr/lib/jvm/java-1.7.0-openjdk-
slave extcheck: /usr/lib/jvm/java-1.7.0-openjdk-
slave idlj: /usr/lib/jvm/java-1.7.0-openjdk-
slave jar: /usr/lib/jvm/java-1.7.0-openjdk-
slave jarsigner: /usr/lib/jvm/java-1.7.0-openjdk-
slave javadoc: /usr/lib/jvm/java-1.7.0-openjdk-
slave javah: /usr/lib/jvm/java-1.7.0-openjdk-
slave javap: /usr/lib/jvm/java-1.7.0-openjdk-
slave jcmd: /usr/lib/jvm/java-1.7.0-openjdk-
slave jconsole: /usr/lib/jvm/java-1.7.0-openjdk-
slave jdb: /usr/lib/jvm/java-1.7.0-openjdk-
slave jhat: /usr/lib/jvm/java-1.7.0-openjdk-
slave jinfo: /usr/lib/jvm/java-1.7.0-openjdk-
slave jmap: /usr/lib/jvm/java-1.7.0-openjdk-
slave jps: /usr/lib/jvm/java-1.7.0-openjdk-
slave jrunscript: /usr/lib/jvm/java-1.7.0-openjdk-
slave jsadebugd: /usr/lib/jvm/java-1.7.0-openjdk-
slave jstack: /usr/lib/jvm/java-1.7.0-openjdk-
slave jstat: /usr/lib/jvm/java-1.7.0-openjdk-
slave jstatd: /usr/lib/jvm/java-1.7.0-openjdk-
slave native2ascii: /usr/lib/jvm/java-1.7.0-openjdk-
slave policytool: /usr/lib/jvm/java-1.7.0-openjdk-
slave rmic: /usr/lib/jvm/java-1.7.0-openjdk-
slave schemagen: /usr/lib/jvm/java-1.7.0-openjdk-
slave serialver: /usr/lib/jvm/java-1.7.0-openjdk-
slave wsgen: /usr/lib/jvm/java-1.7.0-openjdk-
slave wsimport: /usr/lib/jvm/java-1.7.0-openjdk-
slave xjc: /usr/lib/jvm/java-1.7.0-openjdk-
slave java_sdk_exports: /usr/lib/jvm-exports/java-1.7.0-openjdk-
slave java_sdk: /usr/lib/jvm/java-1.7.0-openjdk-
slave appletviewer.1.gz: /usr/share/man/man1/appletviewer-java-1.7.0-openjdk-
slave apt.1.gz: /usr/share/man/man1/apt-java-1.7.0-openjdk-
slave extcheck.1.gz: /usr/share/man/man1/extcheck-java-1.7.0-openjdk-
slave jar.1.gz: /usr/share/man/man1/jar-java-1.7.0-openjdk-
slave jarsigner.1.gz: /usr/share/man/man1/jarsigner-java-1.7.0-openjdk-
slave javac.1.gz: /usr/share/man/man1/javac-java-1.7.0-openjdk-
slave javadoc.1.gz: /usr/share/man/man1/javadoc-java-1.7.0-openjdk-
slave javah.1.gz: /usr/share/man/man1/javah-java-1.7.0-openjdk-
slave javap.1.gz: /usr/share/man/man1/javap-java-1.7.0-openjdk-
slave jconsole.1.gz: /usr/share/man/man1/jconsole-java-1.7.0-openjdk-
slave jdb.1.gz: /usr/share/man/man1/jdb-java-1.7.0-openjdk-
slave jhat.1.gz: /usr/share/man/man1/jhat-java-1.7.0-openjdk-
slave jinfo.1.gz: /usr/share/man/man1/jinfo-java-1.7.0-openjdk-
slave jmap.1.gz: /usr/share/man/man1/jmap-java-1.7.0-openjdk-
slave jps.1.gz: /usr/share/man/man1/jps-java-1.7.0-openjdk-
slave jrunscript.1.gz: /usr/share/man/man1/jrunscript-java-1.7.0-openjdk-
slave jsadebugd.1.gz: /usr/share/man/man1/jsadebugd-java-1.7.0-openjdk-
slave jstack.1.gz: /usr/share/man/man1/jstack-java-1.7.0-openjdk-
slave jstat.1.gz: /usr/share/man/man1/jstat-java-1.7.0-openjdk-
slave jstatd.1.gz: /usr/share/man/man1/jstatd-java-1.7.0-openjdk-
slave native2ascii.1.gz: /usr/share/man/man1/native2ascii-java-1.7.0-openjdk-
slave policytool.1.gz: /usr/share/man/man1/policytool-java-1.7.0-openjdk-
slave rmic.1.gz: /usr/share/man/man1/rmic-java-1.7.0-openjdk-
slave schemagen.1.gz: /usr/share/man/man1/schemagen-java-1.7.0-openjdk-
slave serialver.1.gz: /usr/share/man/man1/serialver-java-1.7.0-openjdk-
slave wsgen.1.gz: /usr/share/man/man1/wsgen-java-1.7.0-openjdk-
slave wsimport.1.gz: /usr/share/man/man1/wsimport-java-1.7.0-openjdk-
slave xjc.1.gz: /usr/share/man/man1/xjc-java-1.7.0-openjdk-
Current `best' version is /usr/lib/jvm/java-1.7.0-openjdk-

I will push the fix I did on the test, which now uses a mock path instead of /bin/bash.

Concerning the slave node, could someone have a look at that?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message