org.springframework.beans.factory.BeanCreationException

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.

  • When a developer attempts to create a "local-only", client-based _Region Index_ using {{<gfe:index .. />}} tag element in the *Spring Data GemFire's* XML namespace configuration meta-data, or directly through the SDG API using the [IndexFactoryBean|https://github.com/spring-projects/spring-data-gemfire/blob/master/src/main/java/org/springframework/data/gemfire/IndexFactoryBean.java], an {{UnsupportedOperationException}} is thrown... {code:java} Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientIndex': Invocation of init method failed; nested exception is java.lang.UnsupportedOperationException: Index Operation is not supported on the Server Region. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) 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:191) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:615) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at io.pivotal.gemfire.MyFirstGemClient.main(MyFirstGemClient.java:136) Caused by: java.lang.UnsupportedOperationException: Index Operation is not supported on the Server Region. at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getIndexes(DefaultQueryService.java:367) at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getIndexes(DefaultQueryService.java:353) at org.springframework.data.gemfire.IndexFactoryBean.createIndex(IndexFactoryBean.java:79) at org.springframework.data.gemfire.IndexFactoryBean.afterPropertiesSet(IndexFactoryBean.java:72) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1572) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1510) ... 12 more {code} *Spring Data GemFire's* [IndexFactoryBean|https://github.com/spring-projects/spring-data-gemfire/blob/master/src/main/java/org/springframework/data/gemfire/IndexFactoryBean.java] should introspect the GemFire Cache instance and determine whether the "cache" is an instance of [ClientCache|http://gemfire.docs.pivotal.io/latest/javadocs/japi/com/gemstone/gemfire/cache/client/ClientCache.html], and if so, use the [ClientCache.getLocalQueryService()|http://gemfire.docs.pivotal.io/latest/javadocs/japi/com/gemstone/gemfire/cache/client/ClientCache.html#getLocalQueryService()] to create the _Index_.
    via by John Blum,
  • Hi John, I work for the gemfire support team and I have a customer reporting a bug for {{spring-data-gemfire}}. Apologies if this is not the correct way of asking queries or something to your team, I'm pretty new and I've already sent an email to my team asking for the correct way of doing this, but I'm sending you this email in the meantime to save time. Basically, you can't create an index from the +client-side+ using {{spring-data-gemfire}}, and the same expression +works just fine on the server-side+. As an example, if you use the following expression when launching a server everything works: {code:xml} <gfe:index id="testIndex" expression="nameField" from="/region" type="FUNCTIONAL"/>. {code} If you use it from the client side, on the other hand, the following stack trace occurs: {code:java} Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientIndex': Invocation of init method failed; nested exception is java.lang.UnsupportedOperationException: Index Operation is not supported on the Server Region. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) 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:191) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:615) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at io.pivotal.gemfire.MyFirstGemClient.main(MyFirstGemClient.java:136) Caused by: java.lang.UnsupportedOperationException: Index Operation is not supported on the Server Region. at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getIndexes(DefaultQueryService.java:367) at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getIndexes(DefaultQueryService.java:353) at org.springframework.data.gemfire.IndexFactoryBean.createIndex(IndexFactoryBean.java:79) at org.springframework.data.gemfire.IndexFactoryBean.afterPropertiesSet(IndexFactoryBean.java:72) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1572) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1510) ... 12 more {code} Please let me know if you already have any opened ticket regarding this or it's already fixed and estimated to be released in the future. If you have time, also, just send me the link where I can check this type of things by myself so I don't bother you again. Best regards. *Juan José Ramos* <jramos@pivotal.io>
    via by John Blum,
  • When a developer attempts to create a "local-only", client-based _Region Index_ using {{<gfe:index .. />}} tag element in the *Spring Data GemFire's* XML namespace configuration meta-data, or directly through the SDG API using the [IndexFactoryBean|https://github.com/spring-projects/spring-data-gemfire/blob/master/src/main/java/org/springframework/data/gemfire/IndexFactoryBean.java], an {{UnsupportedOperationException}} is thrown... {code:java} Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientIndex': Invocation of init method failed; nested exception is java.lang.UnsupportedOperationException: Index Operation is not supported on the Server Region. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) 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:191) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:615) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at io.pivotal.gemfire.MyFirstGemClient.main(MyFirstGemClient.java:136) Caused by: java.lang.UnsupportedOperationException: Index Operation is not supported on the Server Region. at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getIndexes(DefaultQueryService.java:367) at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getIndexes(DefaultQueryService.java:353) at org.springframework.data.gemfire.IndexFactoryBean.createIndex(IndexFactoryBean.java:79) at org.springframework.data.gemfire.IndexFactoryBean.afterPropertiesSet(IndexFactoryBean.java:72) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1572) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1510) ... 12 more {code} *Spring Data GemFire's* [IndexFactoryBean|https://github.com/spring-projects/spring-data-gemfire/blob/master/src/main/java/org/springframework/data/gemfire/IndexFactoryBean.java] should introspect the GemFire Cache instance and determine whether the "cache" is an instance of [ClientCache|http://gemfire.docs.pivotal.io/latest/javadocs/japi/com/gemstone/gemfire/cache/client/ClientCache.html], and if so, use the [ClientCache.getLocalQueryService()|http://gemfire.docs.pivotal.io/latest/javadocs/japi/com/gemstone/gemfire/cache/client/ClientCache.html#getLocalQueryService()] to create the _Index_.
    via by John Blum,
  • Hi John, I work for the gemfire support team and I have a customer reporting a bug for {{spring-data-gemfire}}. Apologies if this is not the correct way of asking queries or something to your team, I'm pretty new and I've already sent an email to my team asking for the correct way of doing this, but I'm sending you this email in the meantime to save time. Basically, you can't create an index from the +client-side+ using {{spring-data-gemfire}}, and the same expression +works just fine on the server-side+. As an example, if you use the following expression when launching a server everything works: {code:xml} <gfe:index id="testIndex" expression="nameField" from="/region" type="FUNCTIONAL"/>. {code} If you use it from the client side, on the other hand, the following stack trace occurs: {code:java} Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientIndex': Invocation of init method failed; nested exception is java.lang.UnsupportedOperationException: Index Operation is not supported on the Server Region. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) 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:191) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:615) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at io.pivotal.gemfire.MyFirstGemClient.main(MyFirstGemClient.java:136) Caused by: java.lang.UnsupportedOperationException: Index Operation is not supported on the Server Region. at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getIndexes(DefaultQueryService.java:367) at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getIndexes(DefaultQueryService.java:353) at org.springframework.data.gemfire.IndexFactoryBean.createIndex(IndexFactoryBean.java:79) at org.springframework.data.gemfire.IndexFactoryBean.afterPropertiesSet(IndexFactoryBean.java:72) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1572) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1510) ... 12 more {code} Please let me know if you already have any opened ticket regarding this or it's already fixed and estimated to be released in the future. If you have time, also, just send me the link where I can check this type of things by myself so I don't bother you again. Best regards. *Juan José Ramos* <jramos@pivotal.io>
    via by John Blum,
    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientIndex': Invocation of init method failed; nested exception is java.lang.UnsupportedOperationException: Index Operation is not supported on the Server Region. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) 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:191) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:615) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at io.pivotal.gemfire.MyFirstGemClient.main(MyFirstGemClient.java:136) Caused by: java.lang.UnsupportedOperationException: Index Operation is not supported on the Server Region. at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getIndexes(DefaultQueryService.java:367) at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getIndexes(DefaultQueryService.java:353) at org.springframework.data.gemfire.IndexFactoryBean.createIndex(IndexFactoryBean.java:79) at org.springframework.data.gemfire.IndexFactoryBean.afterPropertiesSet(IndexFactoryBean.java:72) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1572) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1510) ... 12 more
    No Bugmate found.