[jboss-user] [JBossCache] - NPE when using optimistic locking with JbossCache 1.4.0.SP1,
pkorros
do-not-reply at jboss.com
Tue Oct 17 05:49:08 EDT 2006
I am trying to setup JbossCache 1.4.0.sp1 to work with hibernate 3.2.GA using optimistic locking. When I use pessimistic locking I don;t have any errors but when I use OPTIMISTIC then I get many NullPointerExceptions when using optimistic locking with JbossCache 1.4.0.SP1, hibernate 3.2.GA.
The errors look like:
[org.jboss.cache.interceptors.TxInterceptor] There was a problem handling this request
java.lang.NullPointerException
at org.jboss.cache.interceptors.OptimisticNodeInterceptor.invoke(OptimisticNodeInterceptor.java:68) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor.invoke(OptimisticCreateIfNotExistsInterceptor.java:69)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.invoke(OptimisticValidatorInterceptor.java:75)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java:122)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:345)
at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:156)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:183)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5520)
at org.jboss.cache.TreeCache.remove(TreeCache.java:3742)
at org.jboss.cache.TreeCache.remove(TreeCache.java:3297)
at org.hibernate.cache.OptimisticTreeCache.writeLoad(OptimisticTreeCache.java:76)
at org.hibernate.cache.TransactionalCache.put(TransactionalCache.java:55)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:156)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
at org.hibernate.loader.Loader.doQuery(Loader.java:717)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2144)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
at org.hibernate.loader.Loader.list(Loader.java:2023)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
My config file is like:
treecache.xml
...
org.jboss.cache.GenericTransactionManagerLookup
OPTIMISTIC
LOCAL
...
hibernate.cfg.xml
...
org.hibernate.cache.OptimisticTreeCacheProvider
...
any ideas on what is causing the error?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978739#3978739
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978739
More information about the jboss-user
mailing list