Click here to Skip to main content
15,916,693 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Exception in thread "main" java.lang.AbstractMethodError: Receiver class ch.qos.logback.classic.util.DefaultJoranConfigurator does not define or inherit an implementation of the resolved method 'abstract void configure(ch.qos.logback.classic.LoggerContext)' of interface ch.qos.logback.classic.spi.Configurator.
	at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:140)
	at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
	at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
	at org.apache.commons.logging.LogAdapter$Slf4jAdapter.createLocationAwareLog(LogAdapter.java:130)
	at org.apache.commons.logging.LogAdapter.createLog(LogAdapter.java:91)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:67)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:59)
	at org.springframework.boot.SpringApplication.<clinit>(SpringApplication.java:178)
	at com.demo.SpringBatch.SpringBatch1Application.main(SpringBatch1Application.java:13)


What I have tried:

dependencies that I have added...

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'org.springframework.boot:spring-boot-starter-batch'
	compileOnly 'org.projectlombok:lombok'
	runtimeOnly 'com.mysql:mysql-connector-j'
	annotationProcessor 'org.projectlombok:lombok'
	testImplementation 'org.springframework.boot:spring-boot-starter-test'
	testImplementation 'org.springframework.batch:spring-batch-test'
}


This is applicvation.properties...
server.port=9895
spring.datasource.url=jdbc:mysql://localhost:3306/job_step_db
spring.datasource.username=root
spring.datasource.password=

#spring.batch.jdbc.initialize-schema=always

spring.batch.job.enabled=true
Posted
Comments
Richard MacCutchan 7-Dec-22 4:21am    
Look at the error message:
at com.demo.SpringBatch.SpringBatch1Application.main(SpringBatch1Application.java:13)

Line 13 of your program is the cause of the error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900