-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
quarkus-jacoco produces tons of logged excepiions in 1.13 like Cannot transform java.lang.Object
#16358
Comments
We are experiencing the same/a similar bug. |
/cc @stuartwdouglas |
Same issue here:
Warnings dissappears after removing quarkus-jacoco extension |
The main issue is that both the plugin and the extension are in use, but when this is fixed there are other issues that the linked PR fixes. |
Hi, I'm using openjdk17 and setup a quarkus project using a getting started. I've added some tests all annotated with @QuarkusTest. When running coverage in Intellij, some classes result in 0% coverage and no jacoco reports were generated in the target folder. After some googling I found: https://quarkus.io/guides/tests-with-coverage and added the quarkus-jacoco as a test dependency. java.lang.instrument.IllegalClassFormatException: Error while instrumenting ServiceTest. |
Any idea why these errors occur in Intellij and I get different results in Intellij? Is this an issue with the Jacoco plugin/Intellij? |
Similar problem: thousands of this lines when building in Jenkins pipeline - but not locally. 2023-11-28 07:24:15,572 INFO [tc.tes.5.1] (build-39) Container testcontainers/ryuk:0.5.1 started in PT3.865865169S |
Describe the bug
After some experiments how to change our code to get "proper code-coverage" of tests running via Quarkus, we've realized that 1.13.0 introduced the quarkus-jacoco extension, which solved our problem that the code-coverage with jacoco+Quarkus didn't work. However it introduced a new issue that Quarkus now complains that it can no longer instrument classes with messages like
Cannot transform java.lang.Object as its containing application archive could not be found.
. This happens both locally and in CI (GH infra). It seems to be a problem since 1.13.0.Expected behavior
Quarkus + jacoco instrumentation + code-coverage not polluting the logs with those exceptions
Actual behavior
Tons of exceptions logged. Few examples:
Example CI runs:
To Reproduce
Configuration
application.properties in
servers/quarkus-server/src/main/resources/application.properties
Environment (please complete the following information):
Output of
uname -a
orver
github OSS CI
Output of
java -version
Quarkus version or git rev
1.13.0 + 1.13.1
The text was updated successfully, but these errors were encountered: