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

Error when using disk-store-ref with gateway-sender

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.2.2, 1.3.0.M1
    • Environment:
      OSX 10.8.2

      Description

      I get an error when using new GatewaySender API for GemFire 7.0 WAN API with spring-data-gemfire.

      Here is the stack trace:

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'distalStoreFast': Invocation of init method failed; nested exception is java.lang.IllegalStateException: DiskStore named "distalStoreFast" already exists
      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:567)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
      at com.vmware.spring.data.test.Server.run(Server.java:82)
      at com.vmware.spring.data.test.CacheServer.main(CacheServer.java:10)
      Caused by: java.lang.IllegalStateException: DiskStore named "distalStoreFast" already exists
      at com.gemstone.gemfire.internal.cache.DiskStoreFactoryImpl.findExisting(DiskStoreFactoryImpl.java:166)
      at com.gemstone.gemfire.internal.cache.DiskStoreFactoryImpl.create(DiskStoreFactoryImpl.java:122)
      at org.springframework.data.gemfire.DiskStoreFactoryBean.afterPropertiesSet(DiskStoreFactoryBean.java:115)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dturanski David Turanski
              Reporter:
              mdavid Manuel David
              Last updater:
              John Blum John Blum
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: