-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClassCastException when running jpackage task with secondaryLauncher #210
Comments
I'm getting the same problem on Windows with plugin 2.25.0 and OpenJDK 17.0.2, this does not happen when setting -Dbadass.jlink.jpackage.home to jdk 14 |
Happens with all OpenJDK 17 and 18 builds I tried (Oracle, Zulu, Bellsoft) on both Windows and MacOS. When I dig into the exception stack trace, it looks like an errr in OpenJDK. I didn't have the time to reproduce without this plugin yet, and the process of submitting OpenJDK bugs still is a mystery to me. |
Bump. Any progress on this? I am getting the same error and I could pin point it to the usage of the secondaryLauncher section |
Created a bug report at github.com/airsquared/jpackage_error |
Ended up fixing this myself at openjdk/jdk#14840, which was just merged. I also created back port PRs for JDK 21 and 20 at openjdk/jdk21u#120 and openjdk/jdk20u#86, respectively. |
Wow, thank you! That's great news. |
Now that my PRs for JDK 21 and 17 were finally merged, the fix will be in JDK 21.0.1 and JDK 17.0.10. |
I am trying to create a jpackage with two launchers like this:
this results in
java.lang.ClassCastException: class java.util.ImmutableCollections$List12 cannot be cast to class java.lang.String
. It works when I create just a single launcher.Stacktrace when adding '--verbose' to jpackage.imageOptions:
I am still undecided if this is a problem with the jlink plugin (2.24.4) or the JDK (openjdk 17.0.2 on MaOS). I tried several JDK distributions (Oracle OpenJDK, Zulu, etc.).
The text was updated successfully, but these errors were encountered: