ArrayIndexOutOfBoundsException with openjfx 11-ea+23, run from gradle

Lennart Börjeson lenborje at
Thu Aug 23 09:27:50 UTC 2018

After upgrading to the latest maven artefacts (11-ea+23) from the previous (11-ea+19), I get the following error when I try to run the javafx11sample hello3d from gradle:

> Task :run internal exception
java.lang.ArrayIndexOutOfBoundsException: 0
        at java.base/java.util.Arrays$ArrayList.get(
        at java.base/java.util.Collections$UnmodifiableList.get(
        at java.base/java.util.concurrent.Executors$
        at java.base/java.util.concurrent.FutureTask.runAndReset(
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.base/java.util.concurrent.ThreadPoolExecutor$
        at java.base/

All context can be found at <> .

The program runs fine when launched via maven or directly from the command line, so there must be some peculiarity concerning how gradle launches a program, but I can't figure out what.

Note that I can run from gradle when I use the 11-ea+19 snapshots, so something must have changed in 11-ea+23 which causes this error.

I'd really appreciate any help or insights with this. I get the same error when upgrading my real application, not just these samples, to 11-ea+23.

This is on a Mac, BTW.

More information about the openjfx-dev mailing list