0 Replies Latest reply on Nov 28, 2005 9:28 AM by Ales Justin

    IdentityLock exception with EJB3

    Ales Justin Master

      (this was already added to previous similar thread - which cannot be viewed anymore)

      I'm using cache with EJB3 (Hibernat3.1). All pojos use 'transactional' cache concurrency strategy.

      This is the error msg that I get:

      15:16:06,359 ERROR [IdentityLock] read lock for /mediumTime could not be acquired by Thread[http-0.0.0.0-8080-3,5,jboss] after 0 ms. Locks: Read lock owners: {}
      Write lock owner: GlobalTransaction:<null>:15
      , lock info: write owner=GlobalTransaction:<null>:15 (activeReaders=0, activeWriter=Thread[http-0.0.0.0-8080-3,5,jboss], waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
      15:16:06,359 ERROR [IdentityLock] read lock for /mediumTime could not be acquired by Thread[http-0.0.0.0-8080-3,5,jboss] after 0 ms. Locks: Read lock owners: {}
      Write lock owner: GlobalTransaction:<null>:15
      , lock info: write owner=GlobalTransaction:<null>:15 (activeReaders=0, activeWriter=Thread[http-0.0.0.0-8080-3,5,jboss], waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
      15:16:06,375 ERROR [IdentityLock] read lock for /mediumTime could not be acquired by Thread[http-0.0.0.0-8080-3,5,jboss] after 0 ms. Locks: Read lock owners: {}
      Write lock owner: GlobalTransaction:<null>:15
      , lock info: write owner=GlobalTransaction:<null>:15 (activeReaders=0, activeWriter=Thread[http-0.0.0.0-8080-3,5,jboss], waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
      


      My jboss-service.xml where I declare the cache:
      <?xml version="1.0" encoding="UTF-8"?>
      
      <server>
      
       <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/>
       <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=EJB3TreeCache">
       <depends>jboss:service=Naming</depends>
       <depends>jboss:service=TransactionManager</depends>
       <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
       <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
       <attribute name="CacheMode">LOCAL</attribute>
       <attribute name="ClusterName">TreeCache-Cluster</attribute>
       <attribute name="ClusterConfig">
       <config>
       <UDP mcast_addr="228.1.2.5" mcast_port="45577"
       ip_ttl="64" ip_mcast="true"
       mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
       ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
       loopback="false"/>
       <PING timeout="2000" num_initial_members="3"
       up_thread="false" down_thread="false"/>
       <MERGE2 min_interval="10000" max_interval="20000"/>
       <FD shun="true" up_thread="true" down_thread="true"/>
       <VERIFY_SUSPECT timeout="1500"
       up_thread="false" down_thread="false"/>
       <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
       up_thread="false" down_thread="false"/>
       <pbcast.STABLE desired_avg_gossip="20000"
       up_thread="false" down_thread="false"/>
       <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
       down_thread="false"/>
       <FRAG frag_size="8192"
       down_thread="false" up_thread="false"/>
       <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
       shun="true" print_local_addr="true"/>
       <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>
       </config>
       </attribute>
       <attribute name="InitialStateRetrievalTimeout">20000</attribute>
       <attribute name="SyncReplTimeout">15000</attribute>
       <attribute name="LockAcquisitionTimeout">10000</attribute>
       <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
       <attribute name="EvictionPolicyConfig">
       <config>
       <attribute name="wakeUpIntervalSeconds">5</attribute>
       <region name="/_default_">
       <attribute name="maxNodes">5000</attribute>
       <!-- Maximum time an object is kept in cache regardless of idle time; time from last change or visit
       and attribut must exist -->
       <attribute name="timeToLiveSeconds">3600</attribute>
       <attribute name="maxAgeSeconds">3600</attribute>
       </region>
       <region name="/content">
       <attribute name="maxNodes">300</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/contentToMany">
       <attribute name="maxNodes">1000</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/pubCompParagraph">
       <attribute name="maxNodes">300</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/source">
       <attribute name="maxNodes">20</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/sourceExtra">
       <attribute name="maxNodes">100</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/category">
       <attribute name="maxNodes">10</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/topic">
       <attribute name="maxNodes">50</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/banner">
       <attribute name="maxNodes">20</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       <attribute name="maxAgeSeconds">600</attribute>
       </region>
       <region name="/keyword">
       <attribute name="maxNodes">200</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <!-- words and meanings -->
       <region name="/lexicon">
       <attribute name="maxNodes">200</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/final">
       <attribute name="maxNodes">10</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/navigation">
       <attribute name="maxNodes">500</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/lastCategoryContent">
       <attribute name="maxNodes">50</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/related">
       <attribute name="maxNodes">200</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/moreContent">
       <attribute name="maxNodes">200</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       </region>
       <region name="/longTime">
       <attribute name="maxNodes">200</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       <attribute name="maxAgeSeconds">86400</attribute>
       </region>
       <region name="/mediumTime">
       <attribute name="maxNodes">200</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       <attribute name="maxAgeSeconds">3600</attribute>
       </region>
       <region name="/shortTime">
       <attribute name="maxNodes">200</attribute>
       <attribute name="timeToLiveSeconds">0</attribute>
       <attribute name="maxAgeSeconds">600</attribute>
       </region>
       </config>
       </attribute>
       </mbean>
      </server>
      


      Rgds, Ales