Home  >  Forum  >  Spring
Post New Query

Error: unexpected token: spring with gemfire



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.




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.






Replied on December 21, 2014
Nice Example.

Thanks.


Write Answer








©2019 concretepage.com | Privacy Policy | Contact Us