-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Describe the bug
I upgraded from 3.30.5 -> 3.31.3, and my jpackage builds are no longer working due to classloader errors. I am building fast-jar, then bundling with jpackage.
Expected behavior
The application launches.
Actual behavior
Fast fail with this error:
Caused by: java.lang.ClassCastException: class io.quarkus.registry.ValueRegistry_xCLCDU8snsCILE1gjeVwq51pNh8_Synthetic_Bean cannot be cast to class io.quarkus.arc.InjectableBean (io.quarkus.registry.ValueRegistry_xCLCDU8snsCILE1gjeVwq51pNh8_Synthetic_Bean is in unnamed module of loader 'app'; io.quarkus.arc.InjectableBean is in unnamed module of loader io.quarkus.bootstrap.runner.RunnerClassLoader @69d9c55)
at io.quarkus.arc.impl.ArcContainerImpl.<init>(ArcContainerImpl.java:141)
at io.quarkus.arc.Arc.initialize(Arc.java:53)
at io.quarkus.arc.runtime.ArcRecorder.initContainer(ArcRecorder.java:53)
at io.quarkus.runner.recorded.ArcProcessor$initializeContainer643029769.deploy_0(Unknown Source)
at io.quarkus.runner.recorded.ArcProcessor$initializeContainer643029769.deploy(Unknown Source)
... 8 more
How to Reproduce?
Using the attached reproducer, run:
> mvn package "-Pwindows,working"
> mvn package "-Pwindows,broken"
target/windows/working/working.exe runs 3.30.5,
target/windows/broken/broken.exe runs 3.31.3
Output of uname -a or ver
No response
Output of java -version
openjdk version "25.0.2" 2026-01-20 LTS OpenJDK Runtime Environment Corretto-25.0.2.10.1 (build 25.0.2+10-LTS) OpenJDK 64-Bit Server VM Corretto-25.0.2.10.1 (build 25.0.2+10-LTS, mixed mode, sharing)
Quarkus version or git rev
3.31.3
Build tool (ie. output of mvnw --version or gradlew --version)
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) Maven home: C:\Program Files\apache-maven-3.9.9 Java version: 25.0.2, vendor: Amazon.com Inc., runtime: C:\java\jdk25.0.2_10 Default locale: en_US, platform encoding: UTF-8 OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
Additional information
No response