Hi,

Index field name must be unique across both a key and a value. Check the 
implementation of your key and value and make sure that there is no duplicates.

—
Denis

> On Jul 12, 2016, at 5:01 AM, deleerhai <185961...@qq.com> wrote:
> 
> Hi,
> Create cache configuration error.
> 
> <http://apache-ignite-users.70518.x6.nabble.com/file/n6218/1.png> 
> <http://apache-ignite-users.70518.x6.nabble.com/file/n6218/2.png> 
> 
> 七月 12, 2016 10:13:19 上午 org.apache.catalina.core.ApplicationContext log
> 严重: StandardWrapper.Throwable
> javax.cache.CacheException: Index with name 'code_idx' already exists.
>       at
> org.apache.ignite.configuration.CacheConfiguration$TypeDescriptor.addIndex(CacheConfiguration.java:2429)
>       at
> org.apache.ignite.configuration.CacheConfiguration.processAnnotation(CacheConfiguration.java:2340)
>       at
> org.apache.ignite.configuration.CacheConfiguration.processAnnotationsInClass(CacheConfiguration.java:2292)
>       at
> org.apache.ignite.configuration.CacheConfiguration.processKeyAndValueClasses(CacheConfiguration.java:2233)
>       at
> org.apache.ignite.configuration.CacheConfiguration.setIndexedTypes(CacheConfiguration.java:1913)
>       at
> com.czt.kbp.coupon.repository.cachestore.CouponCacheConfig.config(CouponCacheConfig.java:14)
>       at
> com.czt.kbp.coupon.repository.cachestore.CouponCacheIniter.init(CouponCacheIniter.java:58)
>       at
> com.czt.kbp.coupon.repository.cachestore.CouponCacheIniter.initCache(CouponCacheIniter.java:41)
>       at
> com.czt.kbp.coupon.server.servlet.CouponInitServlet.init(CouponInitServlet.java:19)
>       at
> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)
>       at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)
>       at 
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
>       at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4996)
>       at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
>       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>       at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
>       at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>       at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>       at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>       at java.lang.Thread.run(Thread.java:745)
> 
> 
> 
> 
> --
> View this message in context: 
> http://apache-ignite-users.70518.x6.nabble.com/Create-cache-configuration-error-tp6218.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to