Re: While enabling JCache, JCacheMetrics is throwing NullPointerException in getCacheManager with spring boot

2018-08-07 Thread daya airody
Hi slava, thanks for your comments. I am creating the cache directly using JCache API below: --- @Bean public JCacheManagerCustomizer cacheManagerCustomizer() { return cm -> { Configuration cacheConfiguration = createCacheConfiguration();

values retrieved from the cache are wrapped with JdkDynamicAopProxy while using springboot and JCache

2018-08-07 Thread daya airody
Values retrieved from cache are wrapped with JdkDynamicAopProxy. This throws below NPEs --- java.lang.NullPointerException: null at org.springframework.aop.framework.AdvisedSupport.getInterceptorsAndDynamicInterceptionAdvice(AdvisedSupport.java:481) at

Re: While enabling JCache, JCacheMetrics is throwing NullPointerException in getCacheManager with spring boot

2018-08-17 Thread daya airody
Hi Slava, other reply is about issues in caching Spring proxied objects. I am also seeing "Cache already exists" issue. Could you please throw some light on this? Thanks in advance, --daya-- -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: values retrieved from the cache are wrapped with JdkDynamicAopProxy while using springboot and JCache

2018-08-17 Thread daya airody
Thanks Ivan. If methodCache is marked as transient, proxied objects are not meant to be cached. Since this object is returned by spring JPA, hibernate second level caching might be enough. Looks like we should not cache JPA returned objects at method level. -- Sent from:

While enabling JCache, JCacheMetrics is throwing NullPointerException in getCacheManager with spring boot

2018-08-06 Thread daya airody
I am using ignite within a spring application using JCache API. Application is throwing NPE when starting up. -- exception Caused by: java.lang.NullPointerException: null at io.micrometer.core.instrument.binder.cache.JCacheMetrics.(JCacheMetrics.java:80) Spring is loading ignite

Re: While enabling JCache, JCacheMetrics is throwing NullPointerException in getCacheManager with spring boot

2018-08-06 Thread daya airody
I had to remove all the caches from ignite config file: This ensures that none of the caches loaded by JCache are created using ignite API. If I programmatically create cache and then add items to those caches, I don't get JCacheMetrics error.

Re: While enabling JCache, JCacheMetrics is throwing NullPointerException in getCacheManager with spring boot

2018-08-06 Thread daya airody
There is a problem with using spring.cache.cache-names=users,cannedReports When the SpringBoot application is restarted, it will throw below error: Caused by: org.apache.ignite.cache.CacheExistsException: Failed to start cache (a cache with the same name is already started): users at

Re: values retrieved from the cache are wrapped with JdkDynamicAopProxy while using springboot and JCache

2018-08-13 Thread daya airody
HI Ivan, I have uploaded a simple spring application reproducing the issue at below link: https://github.com/daya-airody/ignite-caching When I use ConcurrentMapCache to cache results from spring JPA native query, I am able to retrieve it correctly. However, once I enable ignite and JCache, I

Re: While enabling JCache, JCacheMetrics is throwing NullPointerException in getCacheManager with spring boot

2018-08-13 Thread daya airody
Hi slava, I have uploaded my code at below link: https://github.com/daya-airody/ignite-caching You need uncomment below lines in application.properties before running startup.sh. spring.cache.jcache.config=classpath:example-cache.xml spring.cache.cache-names=users,cannedReports When you run

Re: Does Apache Ignite support java 8 and hibernate 5.2 NOW?

2018-11-07 Thread daya airody
Hibernate_5.2.x expects different Interface from Ignite for hibernate entity cache and second level cache. ignite-hibernate_5.1 library only supports the interface required by hibernate 5.1. When is ignite going to support Hibernate 5.2.x. On spring boot 2.0.1.RELEASE, only java method caching

Re: While enabling JCache, JCacheMetrics is throwing NullPointerException in getCacheManager with spring boot

2018-11-08 Thread daya airody
I commented below line: #spring.cache.cache-names=users,cannedReports I am creating cache explicitly in CacheConfiguration class: if (cm.getCache("users") == null) cm.createCache("users", cacheConfiguration); if (cm.getCache("cannedReports") == null)

Re: While enabling JCache, JCacheMetrics is throwing NullPointerException in getCacheManager with spring boot

2018-11-08 Thread daya airody
I commented below line: #spring.cache.cache-names=users,cannedReports I am creating cache explicitly in CacheConfiguration class: if (cm.getCache("users") == null) cm.createCache("users", cacheConfiguration); if (cm.getCache("cannedReports") == null)

Does Apache Ignite support java 8 and hibernate 5.2 NOW?

2018-11-06 Thread daya airody
We are using spring boot 2.0.1.RELEASE. This has compile time dependency on hibernate_5.2. According to below post, ignite does not support hibernate-5.2.x. This breaks entity level caching in spring boot. Below is the stack overflow post:

Invalid handshake message

2018-11-21 Thread daya airody
We deployed Ignite on AWS.We have a single node cluster to begin with. Our Application is connecting as client. When I access one of the endpoints of our application, it is being intercepted by the GridWorker. GridWorker is throwing "Invalid handshake message" message. How to disable this