org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restTemplateBuilder' defined in class path resource [org/springframework/boot/autoconfigure/web/WebClientAutoConfiguration$RestTemplateConfiguration.class]: Post-processing failed of bean type [class org.springframework.boot.web.client.RestTemplateBuilder] failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [org.springframework.boot.web.client.RestTemplateBuilder] for resource metadata: could not find class that it depends on

GitHub | debabratp | 5 months ago
  1. 0

    Maven build failed when using spring-boot-starter-web version 1.4.0.BUILD-SNAPSHOT

    GitHub | 5 months ago | debabratp
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restTemplateBuilder' defined in class path resource [org/springframework/boot/autoconfigure/web/WebClientAutoConfiguration$RestTemplateConfiguration.class]: Post-processing failed of bean type [class org.springframework.boot.web.client.RestTemplateBuilder] failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [org.springframework.boot.web.client.RestTemplateBuilder] for resource metadata: could not find class that it depends on
  2. 0

    spring boot + hibernate 5 + java 8 + ZonedDateTime = ImplicitNamingStrategy exception

    Stack Overflow | 1 year ago | Tito
    java.lang.IllegalStateException: Failed to introspect bean class [org.springframework.orm.hibernate5.LocalSessionFactoryBean] for persistence metadata: could not find class that it depends on
  3. 0

    Cannot load Creole.xml GATE

    Stack Overflow | 1 year ago | user2997327
    gate.util.GateException: couldn't open creole.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.NoClassDefFoundError: Landroid/content/Context; running JUnit test

    Stack Overflow | 1 year ago | Marco Dagrada
    java.lang.NoClassDefFoundError: Landroid/content/Context;

  1. tvrmsmith 6 times, last 1 month ago
  2. tvrmsmith 3 times, last 2 months ago
  3. davidvanlaatum 4 times, last 6 months ago
  4. Kawada 2 times, last 7 months ago
35 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

    org.springframework.http.client.BasicAuthorizationInterceptor

    at java.net.URLClassLoader.findClass()
  2. Java RT
    Class.getDeclaredFields
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)[na:1.8.0_73]
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_73]
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[na:1.8.0_73]
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_73]
    5. java.lang.Class.getDeclaredFields0(Native Method)[na:1.8.0_73]
    6. java.lang.Class.privateGetDeclaredFields(Class.java:2583)[na:1.8.0_73]
    7. java.lang.Class.getDeclaredFields(Class.java:1916)[na:1.8.0_73]
    7 frames
  3. Spring Core
    ReflectionUtils.doWithLocalFields
    1. org.springframework.util.ReflectionUtils.getDeclaredFields(ReflectionUtils.java:713)[spring-core-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    2. org.springframework.util.ReflectionUtils.doWithLocalFields(ReflectionUtils.java:655)[spring-core-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    2 frames
  4. Spring Context
    CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition
    1. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.buildResourceMetadata(CommonAnnotationBeanPostProcessor.java:361)[spring-context-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    2. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.findResourceMetadata(CommonAnnotationBeanPostProcessor.java:340)[spring-context-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    3. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:297)[spring-context-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    3 frames
  5. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:935)[spring-beans-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)[spring-beans-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    4. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    5. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    6. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    7. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    8. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:775)[spring-beans-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    8 frames
  6. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)[spring-context-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)[spring-context-4.3.1.BUILD-SNAPSHOT.jar:4.3.1.BUILD-SNAPSHOT]
    2 frames
  7. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.0.BUILD-SNAPSHOT.jar:1.4.0.BUILD-SNAPSHOT]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.BUILD-SNAPSHOT.jar:1.4.0.BUILD-SNAPSHOT]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.BUILD-SNAPSHOT.jar:1.4.0.BUILD-SNAPSHOT]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.BUILD-SNAPSHOT.jar:1.4.0.BUILD-SNAPSHOT]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1176)[spring-boot-1.4.0.BUILD-SNAPSHOT.jar:1.4.0.BUILD-SNAPSHOT]
    5 frames
  8. com.springboot.tutorial
    App.main
    1. com.springboot.tutorial.App.main(App.java:23)[classes/:na]
    1 frame