1、 Questions
Build your own batch task framework, and then report an error
- Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.event.internalEventListenerProcessor': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/MethodClassKey
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.event.internalEventListenerProcessor': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/MethodClassKey
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at com.caliper.tail.batch.common.BatchApp.start(BatchApp.java:85)
2、 Solution
The spring core package is not imported; just go to Maven repository and import the jar package of spring core;
<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.1.5.RELEASE</version>
</dependency>
Read More:
- Request processing failed;nested exception is java.lang.*
- org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file
- Initialization of bean failed; nested exception is java.lang.StackOverflowError
- How to Fix error performing isolated work; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarE
- exception is java.lang.LinkageError: loader constraint violation: loader
- Failed to instantiate org.mybatis.spring.SqlSessionTemplate Constructor threw exception
- NoClassDefFoundError: org.springframework.validation.annotation.ValidationAnnotationUtils
- java.lang.NoClassDefFoundError: org/junit/platform/launcher/TestExecutionListener
- Solution in idea java.lang.ClassNotFoundException : org.springframework.web . context.ContextLoaderListener
- org.springframework.dao.InvalidDataAccessApiUsageException: Bean object must not be null; nested exc
- Spring boot running appears java.lang.IllegalStateException : Failed to load ApplicationContext
- nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property
- Could not start Quartz Scheduler after delay; nested exception is org.quartz.SchedulerException:
- Error creating bean with name ‘feignTargeter‘ defined in class path resource [org/springframework/cl
- java.lang.NoSuchMethodError: org.json.JSONObject.put(Java/lang/String; Java/util/Collection;) “209151;”
- Unable to read Scheme Document ‘ http://www.springframework.org/schema/beans/spring-beans-4.1.xsd ‘ [How to Fix]
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
- Android appears java.lang.NoClassDefFoundError A solution to the error
- appear java.lang.NoClassDefFoundError A kind of reason and solution of the mistake
- Error creating bean with name ‘org.springframework.security.oauth2.config.annotation.web.configurati