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 cache are wrapped with JdkDynamicAopProxy. This throws
below NPEs
---
java.lang.NullPointerException: null
at
org.springframework.aop.framework.AdvisedSupport.getInterceptorsAndDynamicInterceptionAdvice(AdvisedSupport.java:481)
at
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/
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:
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
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.
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
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
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
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
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)
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)
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:
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
14 matches
Mail list logo