L2 « Cache « JPA Q&A





1. LazyInitializationException with objects from L2 cache    forum.hibernate.org

I am getting the following exception working with hibernate: org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:53) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:84) at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:134) at com.benefitpoint.cmp.security.Permission$$EnhancerByCGLIB$$15036d4c.hashCode() at java.util.HashMap.hash(HashMap.java:261) at java.util.HashMap.containsKey(HashMap.java:339) at java.util.HashSet.contains(HashSet.java:180) This doesnt happen every time I access this particular page. I have narrowed it down to the following scenario: Request A retrieves objects from hibernate. The ...

2. L2 cache behaviour    forum.hibernate.org

I have hibernate working in clustered environment with L2 cache enabled (Tangosol Coherence) and two web apps sharing the cache. I have noticed that every time the objects cached by webApp1 are being read by webApp2, SQL select statements are being issued followed by cache's method put(...) being called. According to this, it seems natural to me to assume that cached ...

3. Hibernate doesn't want to read objects from the L2 cache    forum.hibernate.org

I am trying to setup the Hibernate L2 cache in my application and I believe I have everything properly configured, however what I am finding is that most of the time Hibernate won't attempt to read data from the cache. After combing through the debug logs it appears that most of the time Hibernate will execute a query in sql and ...

4. putting into L2 cache    forum.hibernate.org

6. n+1 + Cartesian produc + Gigaspaces + L2 Cache + Local Space    forum.hibernate.org

Hibernate: 3.0 Hi All, Ive been reading Java Persistence with Hibernate, very nice book by the way. It talks about n+1and Cartesian product problems. Do these problems still apply if using a L2 Cache and there is an embedded copy of the cache inside the application? Just to clarify this point we are developing an application that uses Gigaspaces technology for ...

7. Problem with Hibernate3.3.0CR1 jbc2 L2 cache    forum.hibernate.org

when i want to use jbosscache2.1 for L2 cache. some problems happed. my cfg files like: hibernate.cfg.xml (just a part) ... true true true org.hibernate.cache.jbc2.MultiplexedJBossCacheRegionFactory ... category.hbm.xml (just a part) ...

8. Dirty reads problem with L2 cache asynch strategies    forum.hibernate.org

Hibernate version : 3.3.0.SP1 Hello all ! I think there is a problem with asynchronous L2 cache strategies when putting data from load, as done by CacheConcurrencyStrategy.put() / EntityRegionAccessStrategy.putFromLoad() : These methods are called immediately after the select, so that the object passed can contain uncommitted modifications. If we put it in the cache at this time (as NonstrictReadWriteCache does), and ...