-
Bug
-
Resolution: Done
-
Major
-
EAP 5.0.1
-
None
-
JBoss EAP 5.1.0, JDK 1.6 Sun/Oracle, Fedora 14
-
-
-
Using the Hibernate SecondLevel Cache with JBossCache configured to TimestampRegionImpl can occur NullPointerException at cache initialization. This fix adds a Null Pointer checker to allow the cache be initialized successfully
-
Not Required
At a JBoss Cluster, when Hibernate is configured to use Second Level Cache in JBossCache2 with timestamp setting, the second JBoss instance to be initialized throws NullPointerException, starting State Integration.
You just note this exception if change log level category for JBossCache to DEBUG:
jboss-log4j.xml:
<category name="org.jboss.cache">
<priority value="DEBUG"/>
</category>
The exception in server.log (full log attached):
2010-11-24 00:22:35,779 DEBUG [org.jboss.cache.remoting.jgroups.ChannelMessageListener] (Incoming-5,127.0.0.1:55200) Caught exception integrating state!
org.jboss.cache.CacheException: java.lang.NullPointerException
at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateTransientState(DefaultStateTransferIntegrator.java:251)
at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateState(DefaultStateTransferIntegrator.java:113)
at org.jboss.cache.statetransfer.DefaultStateTransferManager.setState(DefaultStateTransferManager.java:201)
at org.jboss.cache.statetransfer.DefaultStateTransferManager.setState(DefaultStateTransferManager.java:165)
...
Caused by: java.lang.NullPointerException
at org.hibernate.cache.jbc2.timestamp.TimestampsRegionImpl.nodeModified(TimestampsRegionImpl.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.cache.notifications.NotifierImpl$ListenerInvocation$1.run(NotifierImpl.java:720)
As integration state fails, the new node's cache is not updated with cluster cached values
- clones
-
JBPAPP-8370 CLONE - NullPointerException using Hibernate SecondLevel Cache at InitialState phase
- Closed