JdkDynamicAopProxy.invoke() has thrown an IllegalStateException

java.lang.IllegalStateException
Javadoc
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation. @author Jonni Kanerva @since JDK1.1
at org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration.getConfigurer
(source)
at org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration.initialize
(source)
at org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration$ReferenceTargetSource.createObject
(source)
at org.springframework.aop.target.AbstractLazyCreationTargetSource.getTarget
(source)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke
(source)
4 frames hidden

Typical Exception Messages

  1. Failed to execute CommandLineRunner
  2. To use the default BatchConfigurer the context must contain no more thanone DataSource, found 2

Specific cases

External results for this pattern (3)

  1. Swaroopvia Stack Overflow4 months ago
    To use the default BatchConfigurer the context must contain no more thanone DataSource, found 2
    Show stack trace
  2. Kiichi Kuramotovia Spring JIRA4 months ago