org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ReceiverHub': Invocation of init method failed; nested exception is java.lang.NullPointerException

Spring JIRA | Udo Kohlmeyer | 4 years ago
  1. 0

    For the following uni-directional gateway (this is receiver config) <gfe:gateway-hub id="ReceiverHub" manual-start="false" port="22222" cache-ref="cache-with-xml" startup-policy="none"> </gfe:gateway-hub> Fails with the following exception org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ReceiverHub': Invocation of init method failed; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:587) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) at com.anz.markets.luxor.commons.ApplicationContextProvider.createApplicationContext(ApplicationContextProvider.java:124) at com.anz.markets.luxor.commons.ApplicationContextProvider.initContext(ApplicationContextProvider.java:72) at com.anz.markets.luxor.commons.ApplicationContextProvider.getInstance(ApplicationContextProvider.java:79) at com.anz.markets.luxor.server.TestServerLauncher.main(TestServerLauncher.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: java.lang.NullPointerException at org.springframework.data.gemfire.wan.GatewayHubFactoryBean.doInit(GatewayHubFactoryBean.java:105) at org.springframework.data.gemfire.wan.AbstractWANComponentFactoryBean.afterPropertiesSet(AbstractWANComponentFactoryBean.java:71) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) ... 20 more

    Spring JIRA | 4 years ago | Udo Kohlmeyer
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ReceiverHub': Invocation of init method failed; nested exception is java.lang.NullPointerException
  2. 0

    For the following uni-directional gateway (this is receiver config) <gfe:gateway-hub id="ReceiverHub" manual-start="false" port="22222" cache-ref="cache-with-xml" startup-policy="none"> </gfe:gateway-hub> Fails with the following exception org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ReceiverHub': Invocation of init method failed; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:587) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) at com.anz.markets.luxor.commons.ApplicationContextProvider.createApplicationContext(ApplicationContextProvider.java:124) at com.anz.markets.luxor.commons.ApplicationContextProvider.initContext(ApplicationContextProvider.java:72) at com.anz.markets.luxor.commons.ApplicationContextProvider.getInstance(ApplicationContextProvider.java:79) at com.anz.markets.luxor.server.TestServerLauncher.main(TestServerLauncher.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: java.lang.NullPointerException at org.springframework.data.gemfire.wan.GatewayHubFactoryBean.doInit(GatewayHubFactoryBean.java:105) at org.springframework.data.gemfire.wan.AbstractWANComponentFactoryBean.afterPropertiesSet(AbstractWANComponentFactoryBean.java:71) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) ... 20 more

    Spring JIRA | 4 years ago | Udo Kohlmeyer
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ReceiverHub': Invocation of init method failed; nested exception is java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      No message provided

      at org.springframework.data.gemfire.wan.GatewayHubFactoryBean.doInit()
    2. Spring Data GemFire
      AbstractWANComponentFactoryBean.afterPropertiesSet
      1. org.springframework.data.gemfire.wan.GatewayHubFactoryBean.doInit(GatewayHubFactoryBean.java:105)
      2. org.springframework.data.gemfire.wan.AbstractWANComponentFactoryBean.afterPropertiesSet(AbstractWANComponentFactoryBean.java:71)
      2 frames
    3. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:587)
      9 frames
    4. Spring Context
      ClassPathXmlApplicationContext.<init>
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
      3. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      4. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
      4 frames
    5. com.anz.markets
      TestServerLauncher.main
      1. com.anz.markets.luxor.commons.ApplicationContextProvider.createApplicationContext(ApplicationContextProvider.java:124)
      2. com.anz.markets.luxor.commons.ApplicationContextProvider.initContext(ApplicationContextProvider.java:72)
      3. com.anz.markets.luxor.commons.ApplicationContextProvider.getInstance(ApplicationContextProvider.java:79)
      4. com.anz.markets.luxor.server.TestServerLauncher.main(TestServerLauncher.java:35)
      4 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
      1 frame