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
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exampleListener' defined in file [C:\Users\Wutitaxue\Desktop\IdeaProjects\spring-boot-web-java\target\classes\simbot\example\listener\ExampleListener.class]: Unexpected exception during bean creation
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:534) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:961) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:915) ~[spring-context-6.0.4.jar:6.0.4]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:584) ~[spring-context-6.0.4.jar:6.0.4]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.0.2.jar:3.0.2]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) ~[spring-boot-3.0.2.jar:3.0.2]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:432) ~[spring-boot-3.0.2.jar:3.0.2]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-3.0.2.jar:3.0.2]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) ~[spring-boot-3.0.2.jar:3.0.2]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1291) ~[spring-boot-3.0.2.jar:3.0.2]
at simbot.example.SpringBootWebJavaApplication.main(SpringBootWebJavaApplication.java:24) ~[classes/:na]
Caused by: java.lang.NoClassDefFoundError: kotlin/enums/EnumEntries
at java.base/java.lang.Class.getDeclaredMethods0(Native Method) ~[na:na]
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[na:na]
at java.base/java.lang.Class.getMethodsRecursive(Class.java:3543) ~[na:na]
at java.base/java.lang.Class.getMethod0(Class.java:3529) ~[na:na]
at java.base/java.lang.Class.getMethod(Class.java:2225) ~[na:na]
at java.base/java.lang.Class.getEnumConstantsShared(Class.java:3828) ~[na:na]
at java.base/java.lang.Class.enumConstantDirectory(Class.java:3859) ~[na:na]
at java.base/java.lang.Enum.valueOf(Enum.java:267) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseEnumValue(AnnotationParser.java:479) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:344) ~[na:na]
at java.base/java.lang.reflect.Method.getDefaultValue(Method.java:717) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationType.(AnnotationType.java:133) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:85) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:262) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:121) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73) ~[na:na]
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:625) ~[na:na]
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:623) ~[na:na]
at java.base/java.lang.reflect.Executable.getAnnotation(Executable.java:591) ~[na:na]
at java.base/java.lang.reflect.Method.getAnnotation(Method.java:738) ~[na:na]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.lambda$checkLookupMethods$0(AutowiredAnnotationBeanPostProcessor.java:449) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:323) ~[spring-core-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.checkLookupMethods(AutowiredAnnotationBeanPostProcessor.java:448) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:340) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1283) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1185) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:561) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521) ~[spring-beans-6.0.4.jar:6.0.4]
... 14 common frames omitted
请问这是咋回事啊,依赖的版本:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
涉及的编程语言
Java
涉及的组件库
mirai (QQ)
疑问描述
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exampleListener' defined in file [C:\Users\Wutitaxue\Desktop\IdeaProjects\spring-boot-web-java\target\classes\simbot\example\listener\ExampleListener.class]: Unexpected exception during bean creation
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:534) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:961) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:915) ~[spring-context-6.0.4.jar:6.0.4]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:584) ~[spring-context-6.0.4.jar:6.0.4]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.0.2.jar:3.0.2]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) ~[spring-boot-3.0.2.jar:3.0.2]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:432) ~[spring-boot-3.0.2.jar:3.0.2]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-3.0.2.jar:3.0.2]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) ~[spring-boot-3.0.2.jar:3.0.2]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1291) ~[spring-boot-3.0.2.jar:3.0.2]
at simbot.example.SpringBootWebJavaApplication.main(SpringBootWebJavaApplication.java:24) ~[classes/:na]
Caused by: java.lang.NoClassDefFoundError: kotlin/enums/EnumEntries
at java.base/java.lang.Class.getDeclaredMethods0(Native Method) ~[na:na]
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[na:na]
at java.base/java.lang.Class.getMethodsRecursive(Class.java:3543) ~[na:na]
at java.base/java.lang.Class.getMethod0(Class.java:3529) ~[na:na]
at java.base/java.lang.Class.getMethod(Class.java:2225) ~[na:na]
at java.base/java.lang.Class.getEnumConstantsShared(Class.java:3828) ~[na:na]
at java.base/java.lang.Class.enumConstantDirectory(Class.java:3859) ~[na:na]
at java.base/java.lang.Enum.valueOf(Enum.java:267) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseEnumValue(AnnotationParser.java:479) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:344) ~[na:na]
at java.base/java.lang.reflect.Method.getDefaultValue(Method.java:717) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationType.(AnnotationType.java:133) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:85) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:262) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:121) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73) ~[na:na]
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:625) ~[na:na]
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:623) ~[na:na]
at java.base/java.lang.reflect.Executable.getAnnotation(Executable.java:591) ~[na:na]
at java.base/java.lang.reflect.Method.getAnnotation(Method.java:738) ~[na:na]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.lambda$checkLookupMethods$0(AutowiredAnnotationBeanPostProcessor.java:449) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:323) ~[spring-core-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.checkLookupMethods(AutowiredAnnotationBeanPostProcessor.java:448) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:340) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1283) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1185) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:561) ~[spring-beans-6.0.4.jar:6.0.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521) ~[spring-beans-6.0.4.jar:6.0.4]
... 14 common frames omitted
请问这是咋回事啊,依赖的版本:
love.forte.simbot.boot
simboot-core-spring-boot-starter
3.3.0
love.forte.simbot.component
simbot-component-mirai-core
3.2.0.0
Beta Was this translation helpful? Give feedback.
All reactions