<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    TreeCache error after Hibernate sessionFacotry close
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/erangac">Eranga Samararathna</a> in <i>JBoss Cache</i> - <a href="https://community.jboss.org/message/724584#724584">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I am using a Hibernate 3.1.13 with jboss-cache 3.2.5</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm running my application with second level caching enabled and in middle of the application (based on user operation ) I am closing the existing session factory (sessionFactory.close();) and create a new one.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Up to this moment my second level cache work fine and after closing and creating new session factory I am getting following error from the Treecache.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Error</p><p>================================================</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Caused by: org.jboss.cache.CacheException: java.lang.reflect.InvocationTargetException</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:148)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:1012)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:778)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:632)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:345)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.hibernate.cache.jbc2.builder.SharedCacheInstanceManager.start(SharedCacheInstanceManager.java:155)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.hibernate.cache.jbc2.JBossCacheRegionFactory.start(JBossCacheRegionFactory.java:106)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.hibernate.impl.SessionFactoryImpl.&lt;init&gt;(SessionFactoryImpl.java:192)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1304)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at com.valista.rse.server.SessionFactoryHolder.refreshSessionFactory(SessionFactoryHolder.java:102)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; ... 32 more</p><p>&#160;&#160;&#160; Caused by: java.lang.reflect.InvocationTargetException</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:144)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; ... 44 more</p><p>&#160;&#160;&#160; Caused by: org.jboss.cache.CacheException: Unable to fetch state on startup</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.cache.RPCManagerImpl.start(RPCManagerImpl.java:385)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; ... 49 more</p><p>&#160;&#160;&#160; Caused by: org.jboss.cache.CacheException: Cache instance at 127.0.0.1:47082 cannot integrate state since state provider could not provide state due to null</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.cache.statetransfer.DefaultStateTransferManager.setState(DefaultStateTransferManager.java:169)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.cache.remoting.jgroups.ChannelMessageListener.setState(ChannelMessageListener.java:191)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:665)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:765)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.JChannel.up(JChannel.java:1183)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:444)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.pbcast.STATE_TRANSFER.handleStateRsp(STATE_TRANSFER.java:421)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:120)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.pbcast.GMS.up(GMS.java:787)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.FRAG.unfragment(FRAG.java:290)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.FRAG.up(FRAG.java:150)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:616)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.UNICAST.up(UNICAST.java:282)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:233)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:735)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:167)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.FD.up(FD.java:284)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.MERGE2.up(MERGE2.java:144)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.Discovery.up(Discovery.java:263)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.TP.passMessageUp(TP.java:1275)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.TP.access$100(TP.java:49)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1818)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1797)</p><p>&#160;&#160;&#160;&#160;&#160;&#160; ... 3 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>My treecache configuration file</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>================================</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;!-- ===================================================================== --&gt;</p><p>&#160;&#160;&#160; &lt;!--&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160; &lt;!--&#160; Sample TreeCache Service Configuration&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160; &lt;!--&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160; &lt;!-- ===================================================================== --&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;server&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;classpath codebase="../lib" archives="jbosscache-core.jar, jgroups.jar"/&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- ==================================================================== --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Defines TreeCache configuration&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- ==================================================================== --&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;mbean code="org.jboss.cache.TreeCache"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name="jboss.cache:service=TreeCache"&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;depends&gt;jboss:service=Naming&lt;/depends&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- &lt;depends&gt;jboss:service=TransactionManager&lt;/depends&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; TransactionManager configuration not required for Hibernate!</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!--</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Node isolation level : SERIALIZABLE</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; REPEATABLE_READ (default)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; READ_COMMITTED</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; READ_UNCOMMITTED</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; NONE</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="IsolationLevel"&gt;READ_COMMITTED&lt;/attribute&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!--</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Valid modes are LOCAL</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; REPL_ASYNC</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; REPL_SYNC</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="CacheMode"&gt;REPL_SYNC&lt;/attribute&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Name of cluster. Needs to be the same for all clusters, in order</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; to find each other</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="ClusterName"&gt;TreeCache-Cluster&lt;/attribute&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- JGroups protocol stack properties. Can also be a URL,</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; e.g. file:/home/bela/default.xml</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="ClusterProperties"&gt;&lt;/attribute&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="ClusterConfig"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;config&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; UDP: if you have a multihomed machine,</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; set the bind_addr attribute to the appropriate NIC IP address</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; UDP: On Windows machines, because of the media sense feature</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; being broken with multicast (even after disabling media sense)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; set the loopback attribute to true</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;UDP mcast_addr="228.1.2.3" mcast_port="45566" bind_addr="127.0.0.1"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ip_ttl="64" ip_mcast="true"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mcast_send_buf_size="150000" mcast_recv_buf_size="80000"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ucast_send_buf_size="150000" ucast_recv_buf_size="80000"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loopback="false"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;PING timeout="2000" num_initial_members="3"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; up_thread="false" down_thread="false"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;MERGE2 min_interval="10000" max_interval="20000"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;FD shun="true" up_thread="true" down_thread="true"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;VERIFY_SUSPECT timeout="1500"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; up_thread="false" down_thread="false"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; up_thread="false" down_thread="false"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pbcast.STABLE desired_avg_gossip="20000"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; up_thread="false" down_thread="false"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; down_thread="false"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;FRAG frag_size="8192"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; down_thread="false" up_thread="false"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pbcast.GMS join_timeout="5000" join_retry_timeout="2000"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; shun="true" print_local_addr="false"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/config&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/attribute&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!--</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Max number of entries in the cache. If this is exceeded, the</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; eviction policy will kick some entries out in order to make</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; more room</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="MaxCapacity"&gt;20000&lt;/attribute&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!--</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; The max amount of time (in milliseconds) we wait until the</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; initial state (ie. the contents of the cache) are retrieved from</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; existing members in a clustered environment</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="InitialStateRetrievalTimeout"&gt;20000&lt;/attribute&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!--</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Number of milliseconds to wait until all responses for a</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; synchronous call have been received.</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="SyncReplTimeout"&gt;10000&lt;/attribute&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Max number of milliseconds to wait for a lock acquisition --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="LockAcquisitionTimeout"&gt;15000&lt;/attribute&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Max number of milliseconds we hold a lock (not currently</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; implemented) --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="LockLeaseTimeout"&gt;60000&lt;/attribute&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Name of the eviction policy class. Not supported now. --&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;attribute name="EvictionPolicyClass"&gt;&lt;/attribute&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/mbean&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;/server&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>My Hibernate configuration file</p><p>=================================</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p># hibernate properties (general settings)</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; # Note: Define C3P0 settings in c3p0.properties, NOT in this file.</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; # Debugging</p><p>&#160;&#160;&#160; hibernate.show_sql=false</p><p>&#160;&#160;&#160; #hibernate.cglib.use_reflection_optimizer=false</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; # Database isolation 1=read uncommitted, 2=read committed, 4=repeatable read, 8=serializable</p><p>&#160;&#160;&#160; hibernate.connection.isolation = 2</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; #configurations for jboss-cache as second level cache</p><p>&#160;&#160;&#160; hibernate.cache.use_second_level_cache=true</p><p>&#160;&#160;&#160; hibernate.cache.region.factory_class=org.hibernate.cache.jbc2.SharedJBossCacheRegionFactory</p><p>&#160;&#160;&#160; hibernate.cache.region.jbc2.cfg.shared=treecache.xml</p><p>&#160;&#160;&#160; hibernate.cache.use_query_cache=false</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; # Filtered values based on db type</p><p>&#160;&#160;&#160; hibernate.connection.url=@db.url@</p><p>&#160;&#160;&#160; hibernate.connection.username=@db.users.owner.username@</p><p>&#160;&#160;&#160; hibernate.connection.password=@db.users.owner.password@</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; hibernate.database.startup.enabled=@db.startup.enabled@</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; db.type=@db.type@</p><p>&#160;&#160; </p><p>&#160;&#160;&#160; hibernate.generate_statistics=true</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Appreciate you people help on this matter</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/724584#724584">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>