org.springframework.beans.MethodInvocationException: Property 'partitionAttributes' threw exception; nested exception is java.lang.IllegalStateException: Data policy PERSISTENT_REPLICATE is not allowed for a partitioned region. DataPolicies other than [PARTITION, PERSISTENT_PARTITION] are not allowed.

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I am trying to use '{{partitioned-region-template}}' to simplify my configurations. However, when persistence is enabled, SDG is trying to set "PERSISTENT_REPLICATE" to a Partitioned Region. Please see the errors from below attached stacktrace. When persistence is off, there is no issue. Please help to take a look at it. Thanks! {code:xml} <gfe:partitioned-region-template id="PartitionedRegionTemplate" total-buckets="163" copies="1" persistent="true" disk-store-ref="regionDataStore"> <gfe:partition-resolver ref="colocationPartitionResolver" /> <gfe:eviction type="HEAP_PERCENTAGE" action="OVERFLOW_TO_DISK" /> </gfe:partitioned-region-template> <gfe:partitioned-region id="fundRegion" template="PartitionedRegionTemplate" /> {code} Stack Trace: {code:java} Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fundRegion': Cannot create inner bean '(inner bean)#49d67b41' of type [org.springframework.data.gemfire.RegionAttributesFactoryBean] while setting bean property 'attributes'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#49d67b41': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'partitionAttributes' threw exception; nested exception is java.lang.IllegalStateException: Data policy PERSISTENT_REPLICATE is not allowed for a partitioned region. DataPolicies other than [PARTITION, PERSISTENT_PARTITION] are not allowed. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:287) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1419) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:449) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:423) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:551) at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:178) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:304) ... 13 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#49d67b41': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'partitionAttributes' threw exception; nested exception is java.lang.IllegalStateException: Data policy PERSISTENT_REPLICATE is not allowed for a partitioned region. DataPolicies other than [PARTITION, PERSISTENT_PARTITION] are not allowed. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) ... 28 more Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'partitionAttributes' threw exception; nested exception is java.lang.IllegalStateException: Data policy PERSISTENT_REPLICATE is not allowed for a partitioned region. DataPolicies other than [PARTITION, PERSISTENT_PARTITION] are not allowed. at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:101) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1452) ... 32 more {code}
    via by Heng Yan,
  • I am trying to use '{{partitioned-region-template}}' to simplify my configurations. However, when persistence is enabled, SDG is trying to set "PERSISTENT_REPLICATE" to a Partitioned Region. Please see the errors from below attached stacktrace. When persistence is off, there is no issue. Please help to take a look at it. Thanks! {code:xml} <gfe:partitioned-region-template id="PartitionedRegionTemplate" total-buckets="163" copies="1" persistent="true" disk-store-ref="regionDataStore"> <gfe:partition-resolver ref="colocationPartitionResolver" /> <gfe:eviction type="HEAP_PERCENTAGE" action="OVERFLOW_TO_DISK" /> </gfe:partitioned-region-template> <gfe:partitioned-region id="fundRegion" template="PartitionedRegionTemplate" /> {code} Stack Trace: {code:java} Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fundRegion': Cannot create inner bean '(inner bean)#49d67b41' of type [org.springframework.data.gemfire.RegionAttributesFactoryBean] while setting bean property 'attributes'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#49d67b41': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'partitionAttributes' threw exception; nested exception is java.lang.IllegalStateException: Data policy PERSISTENT_REPLICATE is not allowed for a partitioned region. DataPolicies other than [PARTITION, PERSISTENT_PARTITION] are not allowed. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:287) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1419) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:449) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:423) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:551) at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:178) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:304) ... 13 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#49d67b41': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'partitionAttributes' threw exception; nested exception is java.lang.IllegalStateException: Data policy PERSISTENT_REPLICATE is not allowed for a partitioned region. DataPolicies other than [PARTITION, PERSISTENT_PARTITION] are not allowed. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) ... 28 more Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'partitionAttributes' threw exception; nested exception is java.lang.IllegalStateException: Data policy PERSISTENT_REPLICATE is not allowed for a partitioned region. DataPolicies other than [PARTITION, PERSISTENT_PARTITION] are not allowed. at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:101) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1452) ... 32 more {code}
    via by Heng Yan,
  • Configuring userDnPatterns using Spel
    via Stack Overflow by lauritens
    ,
  • Error Deploying mule in Tomcat
    via Stack Overflow by Sheikh Zubair
    ,
  • GitHub comment 62#179768728
    via GitHub by mmoayyed
    ,
  • Not working with grails 3.0.15
    via GitHub by vitgou
    ,
    • org.springframework.beans.MethodInvocationException: Property 'partitionAttributes' threw exception; nested exception is java.lang.IllegalStateException: Data policy PERSISTENT_REPLICATE is not allowed for a partitioned region. DataPolicies other than [PARTITION, PERSISTENT_PARTITION] are not allowed. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    6 more bugmates