-
Notifications
You must be signed in to change notification settings - Fork 352
Runtime Error: java.lang.NoSuchMethodException: org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$EmptyHandler.handle() #1510
Comments
Please share a repro project. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
I have a same issue with
Seen this exception is which method not found , I have attempt to add the below into my
|
@LilPoppy Could you please provide a repro project? |
Sure @sdeleuze , here is the repository with CI |
Sorry the setup to reproduce is not obvious, I followed readme instructions and the build is broken due to the database. Could you please provide a more focused repro with complete instructions to reproduce? |
Hi @sdeleuze , I have found out some other issues from GraalVM and have them commented.
Also, MySQL and Redis are required to be installed. |
@LilPoppy Please update the sample and documentation to make it usable out of the box, for example by updating |
Hi @sdeleuze , I have just updated the pom.xml and compose configuration. You can run |
I tried and got the following error that seems unrelated with the issue you raised:
Could you please fix it? |
Hi @sdeleuze , you can add this file into the path, or remove this line instead. This is another issue from GraalVM. |
Another error The error you see is not expected to happen with GraalVM 22.0 because inlining is enabled, so unless |
@sdeleuze , I have configured easy way to build as docker. Pull newest from repository first: Check if you have any Redis port opening: Kill the redis if you have any exists: Then run the following: After done container run: |
Ok, I was able to reproduce after your latest comment and I can also reproduce with |
Ok thank you |
Should be fixed on GraalVM side, you can follow oracle/graal#4473. |
Hi, I have runtime error when compile with arg --language:js
GraalVm version 22.0.0.2 graalvm-ce-java17-darwin-amd64
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping': Unexpected exception during bean creation; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:555) ~[na:na] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[na:na] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[na:na] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[na:na] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[na:na] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) ~[na:na] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[na:na] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[na:na] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[na:na] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) ~[api:2.6.1] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412) ~[api:2.6.1] at org.springframework.boot.SpringApplication.run(SpringApplication.java:302) ~[api:2.6.1] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) ~[api:2.6.1] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1290) ~[api:2.6.1] at com.epipoli.HwApplication.main(HwApplication.java:55) ~[api:0.0.1] Caused by: java.lang.ExceptionInInitializerError: null at java.lang.Class.ensureInitialized(DynamicHub.java:549) ~[api:na] at java.lang.Class.ensureInitialized(DynamicHub.java:549) ~[api:na] at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.createRequestMappingHandlerMapping(WebMvcConfigurationSupport.java:351) ~[api:5.3.13] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration.createRequestMappingHandlerMapping(WebMvcAutoConfiguration.java:543) ~[api:2.6.1] at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerMapping(WebMvcConfigurationSupport.java:311) ~[api:5.3.13] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration.requestMappingHandlerMapping(WebMvcAutoConfiguration.java:445) ~[api:2.6.1] at org.springframework.aot.ContextBootstrapInitializer.lambda$initialize$24(ContextBootstrapInitializer.java:244) ~[na:na] at org.springframework.aot.beans.factory.ThrowableFunction.apply(ThrowableFunction.java:18) ~[na:na] at org.springframework.aot.beans.factory.InjectedElementResolver.create(InjectedElementResolver.java:51) ~[na:na] at org.springframework.aot.beans.factory.BeanDefinitionRegistrar$InstanceSupplierContext.create(BeanDefinitionRegistrar.java:193) ~[na:na] at org.springframework.aot.ContextBootstrapInitializer.lambda$initialize$25(ContextBootstrapInitializer.java:244) ~[na:na] at org.springframework.aot.beans.factory.ThrowableFunction.apply(ThrowableFunction.java:18) ~[na:na] at org.springframework.aot.beans.factory.BeanDefinitionRegistrar.lambda$instanceSupplier$0(BeanDefinitionRegistrar.java:97) ~[na:na] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.obtainFromSupplier(AbstractAutowireCapableBeanFactory.java:1249) ~[na:na] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1191) ~[na:na] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[na:na] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[na:na] ... 14 common frames omitted Caused by: java.lang.IllegalStateException: Expected method not found: java.lang.NoSuchMethodException: org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$EmptyHandler.handle() at org.springframework.util.ClassUtils.getMethod(ClassUtils.java:1141) ~[na:na] at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.<clinit>(AbstractHandlerMethodMapping.java:84) ~[na:na] ... 31 common frames omitted
The text was updated successfully, but these errors were encountered: