pdx.PdxInitializationException: PDX registry could not be initialized because the disk store ds1 was not created.

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

    This bug is a knock-on from SGF-85. In order to reproduce... 1) Configure SGF to use pdx-disk-store and point it to the disk-store configured in the cache.xml. 2) Start gemfire. (1st time will start correctly) 3) Add data into cache. 4) Shut down gemfire. 5) Restart gemfire. The following exception is thrown: 2012-06-27 11:13:24,478 | | | ERROR | main | ApplicationContextProvider | 118 | Exception initializing App context: Error creating bean with name 'cache-with-xml': Invocation of init method failed; nested exception is com.gemstone.gemfire.pdx.PdxInitializationException: PDX registry could not be initialized because the disk store ds1 was not created. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cache-with-xml': Invocation of init method failed; nested exception is com.gemstone.gemfire. pdx.PdxInitializationException: PDX registry could not be initialized because the disk store ds1 was not created. 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:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) 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:109) at com.anz.markets.luxor.commons.ApplicationContextProvider.<clinit>(ApplicationContextProvider.java:71) at com.anz.markets.luxor.server.ServerLauncher.main(ServerLauncher.java:18) Caused by: com.gemstone.gemfire.pdx.PdxInitializationException: PDX registry could not be initialized because the disk store ds1 was not created. at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.getIdToType(PeerTypeRegistration.java:117) at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.suspendTX(PeerTypeRegistration.java:532) at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.getType(PeerTypeRegistration.java:371) at com.gemstone.gemfire.pdx.internal.TypeRegistry.getType(TypeRegistry.java:104) at com.gemstone.gemfire.internal.InternalDataSerializer.readPdxSerializable(InternalDataSerializer.java:2974) at com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2798) at com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3217) at com.gemstone.gemfire.internal.util.BlobHelper.deserializeBlob(BlobHelper.java:81) at com.gemstone.gemfire.internal.cache.EntryEventImpl.deserialize(EntryEventImpl.java:1288) at com.gemstone.gemfire.internal.cache.Oplog.deserializeKey(Oplog.java:6302) at com.gemstone.gemfire.internal.cache.Oplog.readKrf(Oplog.java:1623) at com.gemstone.gemfire.internal.cache.Oplog.recoverCrf(Oplog.java:1923) at com.gemstone.gemfire.internal.cache.DiskStoreImpl.recoverRegionsThatAreReady(DiskStoreImpl.java:2123) at com.gemstone.gemfire.internal.cache.DiskStoreImpl.initializeIfNeeded(DiskStoreImpl.java:2050) at com.gemstone.gemfire.internal.cache.DiskStoreImpl.doInitialRecovery(DiskStoreImpl.java:2054) at com.gemstone.gemfire.internal.cache.DiskStoreFactoryImpl.create(DiskStoreFactoryImpl.java:129) at com.gemstone.gemfire.internal.cache.xmlcache.CacheCreation.createDiskStore(CacheCreation.java:507) at com.gemstone.gemfire.internal.cache.xmlcache.CacheCreation.create(CacheCreation.java:386) at com.gemstone.gemfire.internal.cache.xmlcache.CacheXmlParser.create(CacheXmlParser.java:285) at com.gemstone.gemfire.internal.cache.GemFireCacheImpl.loadCacheXml(GemFireCacheImpl.java:3712) at org.springframework.data.gemfire.CacheFactoryBean.afterPropertiesSet(CacheFactoryBean.java:160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)

    Spring JIRA | 4 years ago | Udo Kohlmeyer
    pdx.PdxInitializationException: PDX registry could not be initialized because the disk store ds1 was not created.
  2. 0

    This bug is a knock-on from SGF-85. In order to reproduce... 1) Configure SGF to use pdx-disk-store and point it to the disk-store configured in the cache.xml. 2) Start gemfire. (1st time will start correctly) 3) Add data into cache. 4) Shut down gemfire. 5) Restart gemfire. The following exception is thrown: 2012-06-27 11:13:24,478 | | | ERROR | main | ApplicationContextProvider | 118 | Exception initializing App context: Error creating bean with name 'cache-with-xml': Invocation of init method failed; nested exception is com.gemstone.gemfire.pdx.PdxInitializationException: PDX registry could not be initialized because the disk store ds1 was not created. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cache-with-xml': Invocation of init method failed; nested exception is com.gemstone.gemfire. pdx.PdxInitializationException: PDX registry could not be initialized because the disk store ds1 was not created. 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:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) 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:109) at com.anz.markets.luxor.commons.ApplicationContextProvider.<clinit>(ApplicationContextProvider.java:71) at com.anz.markets.luxor.server.ServerLauncher.main(ServerLauncher.java:18) Caused by: com.gemstone.gemfire.pdx.PdxInitializationException: PDX registry could not be initialized because the disk store ds1 was not created. at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.getIdToType(PeerTypeRegistration.java:117) at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.suspendTX(PeerTypeRegistration.java:532) at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.getType(PeerTypeRegistration.java:371) at com.gemstone.gemfire.pdx.internal.TypeRegistry.getType(TypeRegistry.java:104) at com.gemstone.gemfire.internal.InternalDataSerializer.readPdxSerializable(InternalDataSerializer.java:2974) at com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2798) at com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3217) at com.gemstone.gemfire.internal.util.BlobHelper.deserializeBlob(BlobHelper.java:81) at com.gemstone.gemfire.internal.cache.EntryEventImpl.deserialize(EntryEventImpl.java:1288) at com.gemstone.gemfire.internal.cache.Oplog.deserializeKey(Oplog.java:6302) at com.gemstone.gemfire.internal.cache.Oplog.readKrf(Oplog.java:1623) at com.gemstone.gemfire.internal.cache.Oplog.recoverCrf(Oplog.java:1923) at com.gemstone.gemfire.internal.cache.DiskStoreImpl.recoverRegionsThatAreReady(DiskStoreImpl.java:2123) at com.gemstone.gemfire.internal.cache.DiskStoreImpl.initializeIfNeeded(DiskStoreImpl.java:2050) at com.gemstone.gemfire.internal.cache.DiskStoreImpl.doInitialRecovery(DiskStoreImpl.java:2054) at com.gemstone.gemfire.internal.cache.DiskStoreFactoryImpl.create(DiskStoreFactoryImpl.java:129) at com.gemstone.gemfire.internal.cache.xmlcache.CacheCreation.createDiskStore(CacheCreation.java:507) at com.gemstone.gemfire.internal.cache.xmlcache.CacheCreation.create(CacheCreation.java:386) at com.gemstone.gemfire.internal.cache.xmlcache.CacheXmlParser.create(CacheXmlParser.java:285) at com.gemstone.gemfire.internal.cache.GemFireCacheImpl.loadCacheXml(GemFireCacheImpl.java:3712) at org.springframework.data.gemfire.CacheFactoryBean.afterPropertiesSet(CacheFactoryBean.java:160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)

    Spring JIRA | 4 years ago | Udo Kohlmeyer
    pdx.PdxInitializationException: PDX registry could not be initialized because the disk store ds1 was not created.
  3. 0

    Gemfire PDX error on startup : The PDX metadata has already been created as a peer metadata region. Please create your pools first

    Stack Overflow | 2 years ago | Cristiano Fontes
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gfPool': Invocation of init method failed; nested exception is com.gemstone.gemfire.pdx.PdxInitializationException: The PDX metadata has already been created as a peer metadata region. Please create your pools first
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.gemstone.gemfire.pdx.PdxInitializationException

      PDX registry could not be initialized because the disk store ds1 was not created.

      at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.getIdToType()
    2. com.gemstone.gemfire
      GemFireCacheImpl.loadCacheXml
      1. com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.getIdToType(PeerTypeRegistration.java:117)
      2. com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.suspendTX(PeerTypeRegistration.java:532)
      3. com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.getType(PeerTypeRegistration.java:371)
      4. com.gemstone.gemfire.pdx.internal.TypeRegistry.getType(TypeRegistry.java:104)
      5. com.gemstone.gemfire.internal.InternalDataSerializer.readPdxSerializable(InternalDataSerializer.java:2974)
      6. com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2798)
      7. com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3217)
      8. com.gemstone.gemfire.internal.util.BlobHelper.deserializeBlob(BlobHelper.java:81)
      9. com.gemstone.gemfire.internal.cache.EntryEventImpl.deserialize(EntryEventImpl.java:1288)
      10. com.gemstone.gemfire.internal.cache.Oplog.deserializeKey(Oplog.java:6302)
      11. com.gemstone.gemfire.internal.cache.Oplog.readKrf(Oplog.java:1623)
      12. com.gemstone.gemfire.internal.cache.Oplog.recoverCrf(Oplog.java:1923)
      13. com.gemstone.gemfire.internal.cache.DiskStoreImpl.recoverRegionsThatAreReady(DiskStoreImpl.java:2123)
      14. com.gemstone.gemfire.internal.cache.DiskStoreImpl.initializeIfNeeded(DiskStoreImpl.java:2050)
      15. com.gemstone.gemfire.internal.cache.DiskStoreImpl.doInitialRecovery(DiskStoreImpl.java:2054)
      16. com.gemstone.gemfire.internal.cache.DiskStoreFactoryImpl.create(DiskStoreFactoryImpl.java:129)
      17. com.gemstone.gemfire.internal.cache.xmlcache.CacheCreation.createDiskStore(CacheCreation.java:507)
      18. com.gemstone.gemfire.internal.cache.xmlcache.CacheCreation.create(CacheCreation.java:386)
      19. com.gemstone.gemfire.internal.cache.xmlcache.CacheXmlParser.create(CacheXmlParser.java:285)
      20. com.gemstone.gemfire.internal.cache.GemFireCacheImpl.loadCacheXml(GemFireCacheImpl.java:3712)
      20 frames
    3. Spring Data GemFire
      CacheFactoryBean.afterPropertiesSet
      1. org.springframework.data.gemfire.CacheFactoryBean.afterPropertiesSet(CacheFactoryBean.java:160)
      1 frame
    4. Spring Beans
      AbstractAutowireCapableBeanFactory.initializeBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
      2 frames