question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'java.lang.module.FindException: Unable to derive module descriptor' when using module path with micrometer-core

See original GitHub issue

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. image

It works fine in our CI pipelines based on Java 8.

[ERROR] Error occurred during initialization of boot layer
[ERROR] java.lang.module.FindException: Unable to derive module descriptor for D:\a\_work\1\.m2\repository\io\micrometer\micrometer-core\1.10.0-M3\micrometer-core-1.10.0-M3.jar

Environment

  • Micrometer version [1.10.0-M3]
  • OS: [windows server 2019]
  • Java version: [11.0.16.1, vendor: Eclipse Adoptium, runtime: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.16-101\x64]

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:

    /*
    !/*/
    /eng
    **/*.xml
    /sdk/cosmos
    /sdk/formrecognizer
    /sdk/parents
    /sdk/spring  
    
  • 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

JDK 11.0.2 - Unable to derive module descriptor in ECLIPSE
Heres my runtime error. Error occurred during initialization of boot layer java.lang.module.FindException: Unable to derive module descriptor ...
Read more >
java.lang.module.FindException under Java 9 - Red Hat
For reference here is that exception. java.lang.module.FindException: Unable to derive module descriptor for /home/rsearls/.m2/repository/org/jboss/ ...
Read more >
Boot layer error when initializing: unable to derive module ...
FindException : Unable to derive module descriptor for ... Caused by: java.lang.module. ... not in module. The JDK I'm using is:
Read more >
micrometer-metrics/micrometer v1.10.0 on GitHub - NewReleases.io
FindException : Unable to derive module descriptor' when using module path with micrometer-core 1.10.0-M5 #3398; New Relic module fails on the module path...
Read more >
3 Metrics Endpoint - Micronaut Micrometer
This returns the metric names registered with the MeterRegistry bean. You can get specific metrics by using /metrics/[name] , for example /metrics/jvm.memory.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found