org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [my.package.master.MasterApplication]; nested exception is java.lang.IllegalStateException: java.io.FileNotFoundException: class path resource [my/package/extension/ExtensionAutoConfiguration.class] cannot be opened because it does not exist

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 11#223210161

    GitHub | 11 months ago | lduparc
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.github.vanroy.cloud.dashboard.config.CacheConfig]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/cache/aspectj/AspectJCachingConfiguration.class] cannot be opened because it does not exist
  2. 0

    Unable to start Vanila OAuth2 UI

    GitHub | 1 year ago | oleg-savko
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [demo.UiApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/cloud/security/oauth2/sso/OAuth2SsoConfigurerAdapter.class] cannot be opened because it does not exist
  3. 0

    IllegalStateException in Spring Boot Application Startup

    Stack Overflow | 2 months ago | user2887739
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.springframework.boot.autoconfigure.SpringBootApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/social/config/annotation/SocialConfigurerAdapter.class] cannot be opened because it does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FileNotFoundException when loading a custom auto configuration with spring.factories

    Stack Overflow | 3 months ago | Francesco Papagno
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [my.package.master.MasterApplication]; nested exception is java.lang.IllegalStateException: java.io.FileNotFoundException: class path resource [my/package/extension/ExtensionAutoConfiguration.class] cannot be opened because it does not exist
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.io.FileNotFoundException

    class path resource [my/package/extension/ExtensionAutoConfiguration.class] cannot be opened because it does not exist

    at org.springframework.core.io.ClassPathResource.getInputStream()
  2. Spring Core
    SimpleMetadataReaderFactory.getMetadataReader
    1. org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)[spring-core-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    2. org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:50)[spring-core-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    3. org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:98)[spring-core-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    3 frames
  3. org.springframework.boot
    ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader
    1. org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:89)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    2. org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:76)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    2 frames
  4. Spring Core
    SimpleMetadataReaderFactory.getMetadataReader
    1. org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:93)[spring-core-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    1 frame
  5. Spring Boot AutoConfigure
    EnableAutoConfigurationImportSelector.selectImports
    1. org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClasses.<init>(AutoConfigurationSorter.java:110)[spring-boot-autoconfigure-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    2. org.springframework.boot.autoconfigure.AutoConfigurationSorter.getInPriorityOrder(AutoConfigurationSorter.java:54)[spring-boot-autoconfigure-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    3. org.springframework.boot.autoconfigure.EnableAutoConfigurationImportSelector.sort(EnableAutoConfigurationImportSelector.java:193)[spring-boot-autoconfigure-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    4. org.springframework.boot.autoconfigure.EnableAutoConfigurationImportSelector.selectImports(EnableAutoConfigurationImportSelector.java:89)[spring-boot-autoconfigure-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    4 frames
  6. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:474)[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    2. org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:184)[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    3. org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:308)[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    4. org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:228)[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    5. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:270)[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    6. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93)[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    7. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    8. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    8 frames
  7. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    6 frames
  8. my.package.master
    MasterApplication.main
    1. my.package.master.MasterApplication.main(MasterApplication.java:10)[classes!/:0.0.1-SNAPSHOT]
    1 frame
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_101]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_101]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_101]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_101]
    4 frames
  10. Spring Boot Loader
    PropertiesLauncher.main
    1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)[master-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
    2. org.springframework.boot.loader.Launcher.launch(Launcher.java:87)[master-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
    3. org.springframework.boot.loader.Launcher.launch(Launcher.java:50)[master-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
    4. org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:521)[master-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
    4 frames