java.lang.IllegalArgumentException

Unable to use SearchStrategy.PARENTS Object of class [null] must be an instance of interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory

Samebug tips1

There's some conflicting dependencies in your pom.xml. Try adding an entry to exclude org.eclipse.jetty.aggregate from dependencies, as this seems to solve the problem.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web23468

  • via SpringSource Issue Tracker by Martin Lippert (c), 1 year ago
    Unable to use SearchStrategy.PARENTS Object of class [null] must be an instance of interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
  • via SpringSource Issue Tracker by Martin Lippert, 1 year ago
    Unable to use SearchStrategy.PARENTS Object of class [null] must be an instance of interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
  • via GitHub by kazuki43zoo
    , 9 months ago
    Unable to call initializer. Object of class [org.springframework.boot.context.embedded.ReactiveWebApplicationContext] must be an instance of interface org.springframework.web.context.ConfigurableWebApplicationContext
  • Stack trace

    • java.lang.IllegalArgumentException: Unable to use SearchStrategy.PARENTS Object of class [null] must be an instance of interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory at org.springframework.util.Assert.isInstanceOf(Assert.java:339) at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchingBeans(OnBeanCondition.java:104) at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:75) at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:44) at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:92) at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader$TrackedConditionEvaluator.shouldSkip(ConfigurationClassBeanDefinitionReader.java:400) at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:127) at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:116) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:324) at org.springframework.ide.eclipse.metadata.process.JdtConfigurationClassPostProcessor.postProcess(JdtConfigurationClassPostProcessor.java:87) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$3.run(BeansJavaConfig.java:320) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig.executePostProcessor(BeansJavaConfig.java:313) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig.access$5(BeansJavaConfig.java:311) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$2.call(BeansJavaConfig.java:225) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$2.call(BeansJavaConfig.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Once, 2 months ago
    Unknown user
    Once, 2 months ago
    Once, 7 months ago
    Unknown user
    Once, 11 months ago
    6 more bugmates