Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-506

ExceptionInInitializerError with Spring Gemfire 1.8.1

    XMLWordPrintable

    Details

      Description

      Hi,

      I am using Spring Data GemFire 1.8.1 in a client/server topology for GemFire.

      My server is working fine, but when I deploy my client application I get below error.

      Caused by (repeated) ... : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'csrfService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aws-security-csrf-region': Cannot resolve reference to bean 'awsGemfireCache' while setting bean property 'cache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsGemfireCache': FactoryBean threw exception on object creation; nested exception is java.lang.ExceptionInInitializerError
      	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
      	at org.springframework.beans.factory.config.ServiceLocatorFactoryBean$ServiceLocatorInvocationHandler.invokeServiceLocatorMethod(ServiceLocatorFactoryBean.java:373)
      	at org.springframework.beans.factory.config.ServiceLocatorFactoryBean$ServiceLocatorInvocationHandler.invoke(ServiceLocatorFactoryBean.java:363)
      	at com.sun.proxy.$Proxy59.getService(Unknown Source)
      	at com.filinv.rtl.aws.commons.util.IMDGHelper.getCSRFService(IMDGHelper.java:43)
      	at com.filinv.rtl.aws.rest.authentication.UserAuthenticationRestServiceImpl.<init>(UserAuthenticationRestServiceImpl.java:37)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
      	... 19 more
      Caused by: java.lang.ExceptionInInitializerError
      	at com.gemstone.gemfire.internal.i18n.AbstractStringIdResourceBundle.initData(AbstractStringIdResourceBundle.java:53)
      	at com.gemstone.gemfire.internal.i18n.AbstractStringIdResourceBundle.getBundle(AbstractStringIdResourceBundle.java:141)
      	at com.gemstone.gemfire.i18n.StringId.getBundle(StringId.java:77)
      	at com.gemstone.gemfire.i18n.StringId.setLocale(StringId.java:63)
      	at com.gemstone.gemfire.i18n.StringId.<clinit>(StringId.java:46)
      	at com.gemstone.gemfire.internal.i18n.ParentLocalizedStrings.<clinit>(ParentLocalizedStrings.java:21)
      	at com.gemstone.gemfire.cache.client.ClientCacheFactory.getAnyInstance(ClientCacheFactory.java:584)
      	at org.springframework.data.gemfire.client.ClientCacheFactoryBean.fetchCache(ClientCacheFactoryBean.java:121)
      	at org.springframework.data.gemfire.CacheFactoryBean.resolveCache(CacheFactoryBean.java:245)
      	at org.springframework.data.gemfire.CacheFactoryBean.init(CacheFactoryBean.java:191)
      	at org.springframework.data.gemfire.CacheFactoryBean.getObject(CacheFactoryBean.java:178)
      	at org.springframework.data.gemfire.CacheFactoryBean.getObject(CacheFactoryBean.java:88)
      	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
      	... 56 more
      Caused by: java.lang.NullPointerException
      	... 71 more
      

        Attachments

          Activity

            People

            Assignee:
            jblum John Blum
            Reporter:
            vardaan Vardaan
            Last updater:
            Oliver Drotbohm Oliver Drotbohm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: