Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Kiichi Kuramoto, 1 year ago
Failed to execute CommandLineRunner
via Stack Overflow by user9193174
, 1 week ago
Failed to execute CommandLineRunner
via Stack Overflow by Kutler01
, 1 week ago
via Stack Overflow by Anish Panthi
, 4 days ago
via GitHub by crashedserver
, 4 months ago
Failed to execute CommandLineRunner
via Stack Overflow by user3321551
, 1 year ago
java.lang.IllegalStateException: To use the default BatchConfigurer the context must contain no more thanone DataSource, found 2	at org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration.getConfigurer(AbstractBatchConfiguration.java:108)	at org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration.initialize(SimpleBatchConfiguration.java:114)	at org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration$ReferenceTargetSource.createObject(SimpleBatchConfiguration.java:142)	at org.springframework.aop.target.AbstractLazyCreationTargetSource.getTarget(AbstractLazyCreationTargetSource.java:86)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:192)	at com.sun.proxy.$Proxy44.getJobInstances(Unknown Source)	at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.getNextJobParameters(JobLauncherCommandLineRunner.java:133)	at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.execute(JobLauncherCommandLineRunner.java:214)	at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.executeLocalJobs(JobLauncherCommandLineRunner.java:233)	at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.launchJobFromProperties(JobLauncherCommandLineRunner.java:125)	at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.run(JobLauncherCommandLineRunner.java:119)	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:800)	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:784)	at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:771)	at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)	at com.example.BatchMultidatasourceApplication.main(BatchMultidatasourceApplication.java:59)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)