java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration#propertySourcesPlaceholderConfigurer due to internal class not found. This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)

Stack Overflow | Gersee | 3 months ago
  1. 0

    @ComponentScanning-Error at Spring Boot Application with IntelliJ not with Eclipse

    Stack Overflow | 3 months ago | Gersee
    java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration#propertySourcesPlaceholderConfigurer due to internal class not found. This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
  2. 0

    Condition evaluation failure when Spring Security except spring-security-web is on the classpath

    GitHub | 2 years ago | wilkinsona
    java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.security.SpringBootWebSecurityConfiguration#ignoredPathsWebSecurityConfigurerAdapter due to internal class not found. This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
  3. 0

    Spring boot failing to start rest service

    Stack Overflow | 2 years ago | Sivasakthi Jayaraman
    java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration#transactionManager due to internal class not found. This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring cloud consul class not found RestTemplateCustomizer

    Stack Overflow | 2 years ago | iamiddy
    java.lang.IllegalStateException: Could not evaluate condition on org.springframework.cloud.netflix.ribbon.RibbonAutoConfiguration#loadBalancerClient due to internal class not found. This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
  6. 0

    getting a "Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet" when starting springboot project from intellij

    Stack Overflow | 1 year ago | mkarthik415
    java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.actuate.autoconfigure.AuditAutoConfiguration$AuditEventRepositoryConfiguration due to internal class not found. This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)

  1. Andreas Häber 3 times, last 2 weeks ago
  2. linxiaolong 6 times, last 2 months ago
  3. poroszd 2 times, last 3 months ago
  4. aldrinleal 2 times, last 4 months ago
  5. davidvanlaatum 15 times, last 6 months ago
1 more registered users
84 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    javax.servlet.Filter

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.getDeclaredMethods
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:372)[na:1.8.0_25]
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:361)[na:1.8.0_25]
    3. java.security.AccessController.doPrivileged(Native Method)[na:1.8.0_25]
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:360)[na:1.8.0_25]
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_25]
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)[na:1.8.0_25]
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_25]
    8. java.lang.Class.getDeclaredMethods0(Native Method)[na:1.8.0_25]
    9. java.lang.Class.privateGetDeclaredMethods(Class.java:2693)[na:1.8.0_25]
    10. java.lang.Class.getDeclaredMethods(Class.java:1967)[na:1.8.0_25]
    10 frames
  3. Spring Core
    ReflectionUtils.getUniqueDeclaredMethods
    1. org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:571)[spring-core-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    2. org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:488)[spring-core-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    3. org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:474)[spring-core-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    4. org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:534)[spring-core-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    4 frames
  4. Spring Beans
    AbstractBeanFactory.isFactoryBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:677)[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:621)[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:591)[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    4. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1397)[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    5. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:968)[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    5 frames
  5. Spring Boot AutoConfigure
    SpringBootCondition.matches
    1. org.springframework.boot.autoconfigure.condition.BeanTypeRegistry$OptimizedBeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:257)[spring-boot-autoconfigure-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    2. org.springframework.boot.autoconfigure.condition.BeanTypeRegistry$OptimizedBeanTypeRegistry.addBeanType(BeanTypeRegistry.java:246)[spring-boot-autoconfigure-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    3. org.springframework.boot.autoconfigure.condition.BeanTypeRegistry$OptimizedBeanTypeRegistry.getNamesForType(BeanTypeRegistry.java:227)[spring-boot-autoconfigure-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    4. org.springframework.boot.autoconfigure.condition.OnBeanCondition.collectBeanNamesForType(OnBeanCondition.java:158)[spring-boot-autoconfigure-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    5. org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:147)[spring-boot-autoconfigure-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    6. org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchingBeans(OnBeanCondition.java:119)[spring-boot-autoconfigure-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    7. org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:94)[spring-boot-autoconfigure-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    8. org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:45)[spring-boot-autoconfigure-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    8 frames
  6. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:102)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    2. org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:190)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    3. org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:148)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    4. org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:124)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    5. org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:318)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    6. org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:239)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    7. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:254)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    8. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:94)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    9. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    10. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    10 frames
  7. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    2. org.springframework.boot.SpringApplication.run(SpringApplication.java:320)[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    3. org.springframework.boot.SpringApplication.run(SpringApplication.java:957)[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:946)[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
    4 frames
  8. com.applicationpackage.application
    Application.main
    1. com.applicationpackage.application.Application.main(Application.java:43)[classes/:na]
    1 frame
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_25]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_25]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_25]
    4. java.lang.reflect.Method.invoke(Method.java:483)[na:1.8.0_25]
    4 frames
  10. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)[idea_rt.jar:na]
    1 frame