-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
RuntimeException using VirtualThreads with Jacoco #31375
Comments
Can you provide a sample application I can use to debug? Thanks |
Hi @geoand , I added a reproducer, Thank you. |
Does one really need to execute it in a gitlab environment in order to see the issue? |
I did not manage to reproduce the issue running the project locally. |
I see, thanks. |
I'll try and have a look this week |
This might help in determining the cause of quarkusio#31375
Hm.. Without being able to add a debbuger to this, it's very hard to figure ouw what's going on. I have opened #31510 to add more logging |
Add logging to CompiledJavaVersionBuildStep
I personally used this small project which copycats the compiledJavaVersion function to debug this. |
Hi, I had the same issue on another project, once again only if jacoco is integrated. After investigation, the faulty component is https://github.com/quarkusio/quarkus/blob/main/core/deployment/src/main/java/io/quarkus/deployment/steps/CompiledJavaVersionBuildStep.java which define the To get the target javaVersion, it walks through
I know that detecting "automatically" the build target can be complex, and I'm out of idea for now on how to improve it. But this problem still exists and adding the use of build tool java version props could help to avoid it in most cases. Regards. |
Ugly w/a: build.gradle:
src/fixes/java/AFixForQuarkus31375.java:
then just include quarkus31375wa step before test, ex. |
We're experiencing the same issue but on Azure DevOps (with Java 21). |
Any update on when this will be fixed? |
@geoand have you seen this comment: #31375 (comment) ? It looks interesting. |
I have not. I'll take a look at some point |
Thanks I'm totally out of that loop, so can't really comment now. |
Describe the bug
Building a quarkus 2.16.3 app using Virtual threads on JDK 19 I came up with the following error on runtime :
I know my project is built correctly using the JDK19 because I checked the .class major version and it was correctly set to
63
.Expected behavior
No error.
Actual behavior
It seems like Quarkus pickups the first class file it found in the build directory to determine the project majorVersion.
I have run the
compiledJavaVersion
function on my built files and it always picked up AgentJar.class file (From Jacoco) with a majorVersion set to 49.Here is another Jacoco class getting picked up by your algo after setting
classDumpDir
with :How to Reproduce?
gradle build --info
to see the error in the gitlab runner env.Output of
uname -a
orver
Linux 91d7275ab5b8 5.15.79.1-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.16.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)8.0.1
Additional information
Is quarkus-jacoco using the latest Jacoco version with jdk19 class support ?
https://github.com/jacoco/jacoco/releases
The text was updated successfully, but these errors were encountered: