org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleService' defined in file [C:\code\wod-lake\wod-lake-user-data\bin\org\yodes\wod\lake\eureka\services\SampleService.class]: Invocation of init method failed; nested exception is java.lang.NullPointerException

Google Groups | stephen dillon | 1 year ago
  1. 0

    DiscoveryClient @FineGrainedLazySingleton cglib NullPointer issue

    Google Groups | 1 year ago | stephen dillon
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleService' defined in file [C:\code\wod-lake\wod-lake-user-data\bin\org\yodes\wod\lake\eureka\services\SampleService.class]: Invocation of init method failed; nested exception is java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    NPE on actuator health endpoint with discovery client

    GitHub | 2 years ago | mariusznet
    java.lang.NullPointerException: null

    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.NullPointerException

      null

      at com.netflix.discovery.DiscoveryClient$$FastClassBySpringCGLIB$$a84c8cb4.invoke()
    2. eureka-client
      DiscoveryClient$$FastClassBySpringCGLIB$$a84c8cb4.invoke
      1. com.netflix.discovery.DiscoveryClient$$FastClassBySpringCGLIB$$a84c8cb4.invoke(<generated>)
      1 frame
    3. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      1 frame
    4. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      4. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      5. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      6. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
      6 frames
    5. eureka-client
      DiscoveryClient$$EnhancerBySpringCGLIB$$ff3181d5.getApplications
      1. com.netflix.discovery.DiscoveryClient$$EnhancerBySpringCGLIB$$ff3181d5.getApplications(<generated>)
      1 frame
    6. org.springframework.cloud
      EurekaDiscoveryClient.getServices
      1. org.springframework.cloud.netflix.eureka.EurekaDiscoveryClient.getServices(EurekaDiscoveryClient.java:133)
      1 frame
    7. org.yodes.wod
      SampleService.afterPropertiesSet
      1. org.yodes.wod.lake.eureka.services.SampleService.afterPropertiesSet(SampleService.java:18)
      1 frame
    8. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
      9 frames
    9. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
      2 frames
    10. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
      2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
      3. org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
      5 frames
    11. org.yodes.wod
      Application.main
      1. org.yodes.wod.lake.eureka.Application.main(Application.java:12)
      1 frame