-
Notifications
You must be signed in to change notification settings - Fork 990
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
'java.lang.module.FindException: Unable to derive module descriptor' when using module path with micrometer-core #3398
Comments
Can you try what happens if you build against Are you sure this is caused by micrometer? And not something else, e.g.: your JVM crashed:
|
I tried to run
|
@jonatan-ivanov seems like the issue was caused by Line 1 in f2977bc
|
I have seen the below information, does this indicate the JVM crashed with the micrometer module exception? @jonatan-ivanov could you help give a workaround to fix this exception? Thanks! We are preparing to release a milestone version for Spring Boot 3 support. |
@saragluna thank you for narrowing it down. It appears to be an issue with our automatic-modules and the service loader. We're trying to look into it on our end but don't immediately know why there is an issue or how to fix it - perhaps adding module descriptors would fix it, but we'd rather stick with automatic modules for now if we can. If anyone is familiar with this issue and has ideas, please share. |
@shakuzen if the |
@saragluna indeed we shouldn't need it in both places. I think it was an oversight it ended up in both modules. Thank you for catching that. I have removed the service provider config file from micrometer-core now. I tried it locally and the Would you be able to try out the latest snapshot to let us know if things are working fine now? Our next planned (pre-)release is the RC1 version for Micrometer 1.10 on October 10. Is that alright for you all or is this issue blocking a release you would like to do sooner than that? We can consider doing an unplanned release sooner if it is critical for you all. |
Thanks @shakuzen! We'll first test the snapshot version and let you know later whether we need a release. |
@saragluna @moarychan Thank you for the details, please let us know if this is fixed on your side. It seems the newrelic registry still has issues, please let us know if you are building against it. |
Hi @jonatan-ivanov thanks for your support, I just passed the artifact building using the snapshot version, we still need a release version for our pipeline side to finish lots of verification, please help to release a new version. |
Adds a task called `testModules` that calls `java --list-modules` on each JAR file built to check that its modules can be listed. We have had issues in the past that went unnoticed, and this is one of the easiest ways to do a sanity check that a JAR will work on the module path. See, for example, gh-3398 and gh-3412, which would have been caught by this check.
@moarychan Micrometer 1.10.0-M6 is now published to the milestones repository. Can you use that to verify things are fixed? |
Yes, thanks for your support. |
Describe the bug
The compilation failure occurs in our CI pipeline when building using Java 11, here is a temp URL to see the console log.
I can see the module name is correct in version 1.10.0-M3.
It works fine in our CI pipelines based on Java 8.
Environment
To Reproduce
How to reproduce the bug:
Please follow this steps:
Checkout this branch https://github.com/moarychan/azure-sdk-for-java/tree/moary/migrate-spring-data-cosmos-to-spring-dir
Or sparse checkout below parts:
Run the below command in the root project:
mvn.cmd -f pom.xml --batch-mode --fail-at-end --settings eng/settings.xml -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dgpg.skip -Dmaven.javadoc.skip=true -Dcodesnippet.skip=true -Dspotbugs.skip=true -Dcheckstyle.skip=true -Drevapi.skip=true -DtrimStackTrace=false -pl com.azure:azure-cosmos, -DAZURE_TEST_DEBUG=false -Dparallel-test-playback=true -Punit -T 1C verify
Expected behavior
Normal use.
Additional context
N/A
The text was updated successfully, but these errors were encountered: