You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" io.micronaut.core.io.service.SoftServiceLoader$ServiceLoadingException: Failed to load a service: superclass access check failed: class fete.bird.$ApiController$Definition$Reference (in module api.main) cannot access class io.micronaut.context.AbstractInitializableBeanDefinitionReference (in unnamed module @0x4ab001b4) because module api.main does not read unnamed module @0x4ab001b4
at io.micronaut.core.io.service.ServiceScanner$ServiceInstanceLoader.collect(ServiceScanner.java:302)
at io.micronaut.core.io.service.ServiceScanner$MicronautMetaServicesLoader.collect(ServiceScanner.java:229)
at io.micronaut.core.io.service.ServiceScanner$DefaultServiceCollector.collect(ServiceScanner.java:192)
at io.micronaut.core.io.service.SoftServiceLoader.collectDynamicServices(SoftServiceLoader.java:198)
at io.micronaut.core.io.service.SoftServiceLoader.collectAll(SoftServiceLoader.java:174)
at io.micronaut.context.DefaultBeanContext.resolveBeanDefinitionReferences(DefaultBeanContext.java:1753)
at io.micronaut.context.DefaultApplicationContext.isBootstrapPropertySourceLocatorPresent(DefaultApplicationContext.java:157)
at io.micronaut.context.DefaultApplicationContext.isBootstrapEnabled(DefaultApplicationContext.java:153)
at io.micronaut.context.DefaultApplicationContext.createEnvironment(DefaultApplicationContext.java:138)
at io.micronaut.context.DefaultApplicationContext.getEnvironment(DefaultApplicationContext.java:185)
at io.micronaut.context.DefaultApplicationContextBuilder.build(DefaultApplicationContextBuilder.java:309)
at [email protected]/io.micronaut.runtime.Micronaut.start(Micronaut.java:71)
at [email protected]/io.micronaut.runtime.Micronaut.run(Micronaut.java:323)
at [email protected]/io.micronaut.runtime.Micronaut.run(Micronaut.java:309)
at api.main/fete.bird.Application.main(Application.java:16)
Steps To Reproduce
Create a brand new micronaut application using latest version.
Add module-info.java file to the application
Try to run the application and watch the error
OR clone the sample application from the Git Repo and run the application
Expected Behavior
Just added the module-info.java file to the Micronaut application, created with the latest version, and getting an exception
The application should work with Java 9 module system.
Actual Behaviour
module-info.java
Steps To Reproduce
Environment Information
Example Application
https://github.com/anandjaisy/Micronaut-module
Version
5.9.2
The text was updated successfully, but these errors were encountered: