[jboss-user] [JBossCache] - Read Locks not released broken between 1.4.1.beta and 1.4.1.

youngm do-not-reply at jboss.com
Mon Jan 22 17:05:58 EST 2007


I have an app that worked fine with 1.4.1.beta but with the upgrade to 1.4.1.GA it appears my read locks are no longer being released.  I get the following error frequently with 1.4.1.GA but never with 1.4.1.beta:


  | 14:55:04,218 ERROR IdentityLock: write lock for / could not be acquired after 0 ms. Locks: Read lock owners: [GlobalTransaction:<null>:2]
  | Write lock owner: null
  |  (caller=Thread[main,5,main], lock info: read owners=[GlobalTransaction:<null>:2] (activeReaders=1, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0))
  | 14:55:04,218 ERROR IdentityLock: write lock for / could not be acquired after 0 ms. Locks: Read lock owners: [GlobalTransaction:<null>:2]
  | Write lock owner: null
  |  (caller=Thread[main,5,main], lock info: read owners=[GlobalTransaction:<null>:2] (activeReaders=1, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0))
  | 14:55:04,218 ERROR IdentityLock: write lock for / could not be acquired after 0 ms. Locks: Read lock owners: [GlobalTransaction:<null>:2]
  | Write lock owner: null
  |  (caller=Thread[main,5,main], lock info: read owners=[GlobalTransaction:<null>:2] (activeReaders=1, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0))
  | 14:55:04,296 ERROR IdentityLock: write lock for / could not be acquired after 0 ms. Locks: Read lock owners: [GlobalTransaction:<null>:2]
  | Write lock owner: null
  |  (caller=Thread[main,5,main], lock info: read owners=[GlobalTransaction:<null>:2] (activeReaders=1, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0))
  | 14:55:04,296 ERROR IdentityLock: write lock for / could not be acquired after 0 ms. Locks: Read lock owners: [GlobalTransaction:<null>:2]
  | Write lock owner: null
  |  (caller=Thread[main,5,main], lock info: read owners=[GlobalTransaction:<null>:2] (activeReaders=1, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0))

I'm using JBossCache with Spring 2.0.2+Hibernate EntityManager 3.2.1+JoTM for JTA.

JBossCache is correctly getting my JoTM transaction manager and Spring is starting a transaction.

And again this worked fine with 1.4.1.beta.

Any ideas about what could be the problem?

For good measure I've included my cacheService file:


  | <?xml version="1.0" encoding="UTF-8"?>
  | <!-- ===================================================================== -->
  | <!-- JBossCache Configuration File: test or dev                            -->
  | <!-- ===================================================================== -->
  | <server>
  | 	<mbean code="org.jboss.cache.TreeCache" name="$jmxDomain$:service=TreeCache">
  | 		<attribute name="TransactionManagerLookupClass">
  | 			org.lds.stack.spring.jpa.jbosscache.JBossCacheConfigurableTransactionLookup
  | 		</attribute>
  | 		<attribute name="NodeLockingScheme">PESSIMISTIC</attribute>
  | 		<attribute name="IsolationLevel">REPEATABLE_READ</attribute>
  | 		<attribute name="CacheMode">LOCAL</attribute>
  | 		<attribute name="UseReplQueue">false</attribute>
  | 		<attribute name="ReplQueueInterval">0</attribute>
  | 		<attribute name="ReplQueueMaxElements">0</attribute>
  | 		<attribute name="ClusterName">org.lds.stack.$jmxDomain$</attribute>
  | 		<attribute name="FetchInMemoryState">false</attribute>
  | 		<attribute name="SyncReplTimeout">20000</attribute>
  | 		<attribute name="LockAcquisitionTimeout">15000</attribute>
  | 		<attribute name="InitialStateRetrievalTimeout">20000</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>
  | 					<attribute name="timeToLiveSeconds">1000</attribute>
  | 				</region>
  | 				<region name="/org/lds/stack/petstore/model/Animal">
  | 					<attribute name="maxNodes">5000</attribute>
  | 					<attribute name="timeToLiveSeconds">1000</attribute>
  | 				</region>
  | 				<region name="/org/lds/stack/petstore/model/Classification">
  | 					<attribute name="maxNodes">5000</attribute>
  | 					<attribute name="timeToLiveSeconds">0</attribute>
  | 				</region>
  | 				<region name="/org/lds/stack/petstore/model/Country">
  | 					<attribute name="maxNodes">10000</attribute>
  | 					<attribute name="timeToLiveSeconds">0</attribute>
  | 				</region>
  | 			</config>
  | 		</attribute>
  | 		<attribute name="UseRegionBasedMarshalling">false</attribute>
  | 	</mbean>
  | </server>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005019#4005019

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005019



More information about the jboss-user mailing list