OpenJDK 12 no longer usable

openjdk12, which used to work flawlessly, abruptly stopped working yesterday. I guess it might be due to the official release.

When configured for running on openjdk12, the build now fails with:

Installing openjdk12
$ export JAVA_HOME=~/openjdk12
$ export PATH="$JAVA_HOME/bin:$PATH"
$ ~/bin/install-jdk.sh --target "/home/travis/openjdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "GPL" --cacerts
install-jdk.sh 2019-01-18 II
Couldn't determine a download url for 12-GPL on linux-x64
The command "~/bin/install-jdk.sh --target "/home/travis/openjdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "GPL" --cacerts" failed and exited with 1 during .
Your build has been stopped.

like in this example

It used to work without issues, as it was in this build:

Installing openjdk12
$ export JAVA_HOME=~/openjdk12
$ export PATH="$JAVA_HOME/bin:$PATH"
$ ~/bin/install-jdk.sh --target "/home/travis/openjdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "GPL" --cacerts
install-jdk.sh 2019-01-18 II
Variables:
  feature = 12
  license = GPL
       os = linux-x64
      url = https://download.java.net/java/GA/jdk12/33/GPL/openjdk-12_linux-x64_bin.tar.gz
   status = 200
  archive = /home/travis/.cache/install-jdk/openjdk-12_linux-x64_bin.tar.gz
Downloading JDK from https://download.java.net/java/GA/jdk12/33/GPL/openjdk-12_linux-x64_bin.tar.gz...
openjdk version "12" 2019-03-19
OpenJDK Runtime Environment (build 12+33)
OpenJDK 64-Bit Server VM (build 12+33, mixed mode, sharing)
1 Like

The workaround is already available in the upstream version of install-jdk.sh, but it would be useful to have it available out-of-box.

Hi, thank you for your answer. Is there any way for me to use the upstream version of install-jdk.sh on my builds?

Definitely. It’s enough to download it from Git (or place in your repository) and use and described in its documentation.

Thanks for answering @szpak – like your avatar!

Will transform the workaround into a real (6 month valid) solution and trigger an update in Travis after that.

Cheers!

1 Like

@BanzaiMan Can you trigger an update of install-jdk.sh, please?

Version 2019-03-22 fixes the download issue introduced by OpenJDK 12 GA using a new directory layout.

Cheers,
Christian

Tests:

  1. https://travis-ci.org/sormuras/bach/jobs/509906663#L175
  2. https://travis-ci.org/sormuras/sormuras.github.io

Done.

Thanks. Looks like builds using jdk: openjdk12 are green again.

https://travis-ci.org/forax/pro/builds/509714271

1 Like

We have a regression, all my builds are failing again:

Installing openjdk12
$ export JAVA_HOME=~/openjdk12
$ export PATH="$JAVA_HOME/bin:$PATH"
$ ~/bin/install-jdk.sh --target "/home/travis/openjdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "GPL" --cacerts
install-jdk.sh 2019-03-23
Couldn't determine a download url for 12-GPL on linux-x64

Fix in progress…

1 Like

Fixed for Linux and MacOS: https://github.com/sormuras/bach/runs/103778571

@BanzaiMan please update Travis’ copy of install-jdk.sh – Thanks!

PS: Travis should really provide GA’ed versions of OpenJDK by its own infrastructur. Or use a tool like SDKMAN or jabba. install-jdk.sh supports EA versions of OpenJDK best.

Thanks a lot, @sormuras.

We have updated Travis’ install-jdk.sh script and OpenJDK 12 should be installed correctly again. Please let us know otherwise!

OpenJDK 12 works correctly, but OpenJDK 11 is broken.

1 Like

Yes, same problem here, openjdk11 stopped working now :frowning:

$ ~/bin/install-jdk.sh --target "/home/travis/openjdk11" --workspace "/home/travis/.cache/install-jdk" -- 
feature "11" --license "GPL" --cacerts
install-jdk.sh 2019-04-17
Couldn't determine a download url for 11-GPL on linux-x64
The command "~/bin/install-jdk.sh --target "/home/travis/openjdk11" --workspace 
"/home/travis/.cache/install-jdk" --feature "11" --license "GPL" --cacerts" failed and exited with 1 during .
2 Likes

Same here. openjdk11 stopped working starting today.

fup2 Install of openjdk11 is failing (again)

We’ve been getting intermittent build failures for JDK12. The install-jdk script seems to be working just fine but the download server is either rate limiting or there’s some other intermittent network issue. Any word on actually getting jdk12 installed on the build images?

Installing openjdk12

$ export JAVA_HOME=~/openjdk12

$ export PATH="$JAVA_HOME/bin:$PATH"

$ ~/bin/install-jdk.sh --target "/home/travis/openjdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "GPL" --cacerts

install-jdk.sh 2019-04-18

The command "~/bin/install-jdk.sh --target "/home/travis/openjdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "GPL" --cacerts" failed and exited with 7 during .

Your build has been stopped.

@strangemonad-faire It seems to be working today: https://travis-ci.org/cotsog/travis_ci_prod_regular/builds/523966568. Are you still seeing this issue on your side?

We unfortunately don’t have anything to share about pre-installing JDK12 on our images at this time.

Broken again for me.

$ ~/bin/install-jdk.sh --target "/home/travis/openjdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "GPL" --cacerts
install-jdk.sh 2019-04-18
The command "~/bin/install-jdk.sh --target "/home/travis/openjdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "GPL" --cacerts" failed and exited with 51 during .

Hey @DanySK, sorry for the troubles.

Unfortunately, something seems to have changed on Oracle’s servers that was making JDK runtime installation to fail. See the following for more details: https://github.com/sormuras/bach/issues/51.

Following on from that, I just did some tests before writing you back and it seems that the issue got fixed as I’m now able to install these JDKs again. Hence, could you try to restart your previously failing build and let me know if it’s fixed on your side as well?

Thanks!