Home  >  Forum  >  Spring
Post New Query

Error: unexpected token: spring with gemfire

joined on
June 15,2014
Asked on December 21,2014
Hi All,

I am learning Spring with Gemfire and creating a test application. While running my application, I am getting error unexpected token "test". I have defined my entity with "test" region.

Caused by: com.gemstone.gemfire.cache.query.QueryInvalidException: Syntax error in query:  unexpected token: test
at com.gemstone.gemfire.cache.query.internal.QCompiler.compileQuery(QCompiler.java:80)
at com.gemstone.gemfire.cache.query.internal.DefaultQuery.<init>(DefaultQuery.java:156)
at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.newQuery(DefaultQueryService.java:111)
at org.springframework.data.gemfire.GemfireTemplate.find(GemfireTemplate.java:298)

Please let me know what am I missing.

joined on
July 15,2014
Replied on December 21,2014

You can check if you have defined region "test" in configuration with LocalRegionFactoryBean bean.

You can check the link below for complete example of spring and gemfire.

joined on
June 15,2014
Replied on December 21,2014

Nice Example.


Write Answer

Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us