[jboss-user] [JBossCache] - Re: Problem using FileCacheLoader
bruce_zhang
do-not-reply at jboss.com
Thu Jul 13 20:11:35 EDT 2006
genman:
Thank you for the information.
Below is the log I got when the cache start up, it seems found all the objects under the node "/loanet" but not loaded in memory:
main org.jboss.cache.PropertyConfigurator - Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor at 21f46a
| main org.jboss.cache.PropertyConfigurator - attribute size: 10
| main org.jboss.cache.PropertyConfigurator - setting attribute TransactionManagerLookupClass to org.jboss.cache.DummyTransactionManagerLookup
| main org.jboss.cache.PropertyConfigurator - setting attribute NodeLockingScheme to OPTIMISTIC
| main org.jboss.cache.PropertyConfigurator - setting attribute IsolationLevel to REPEATABLE_READ
| main org.jboss.cache.PropertyConfigurator - setting attribute CacheMode to LOCAL
| main org.jboss.cache.PropertyConfigurator - setting attribute ClusterName to TreeCache-Cluster
| main org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setClusterConfig(org.w3c.dom.Element) with parameter "[config: null]" of type class weblogic.apache.xerces.dom.DeferredElementImpl
| main org.jboss.cache.TreeCache - setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=228.1.2.3;mcast_port=45566;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
| main org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setSyncReplTimeout(long) with parameter "10000" of type class java.lang.Long
| main org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setLockAcquisitionTimeout(long) with parameter "15000" of type class java.lang.Long
| main org.jboss.cache.PropertyConfigurator - getSubElementObject(): element object. Does not exist for config
| main org.jboss.cache.PropertyConfigurator - setting attribute EvictionPolicyClass to
| main org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setCacheLoaderConfiguration(org.w3c.dom.Element) with parameter "[config: null]" of type class weblogic.apache.xerces.dom.DeferredElementImpl
| main org.jboss.cache.transaction.DummyTransactionManager - binding of DummyTransactionManager failed
| javax.naming.OperationNotSupportedException: bind not allowed in a ReadOnlyContext; remaining name '/TransactionManager'
| at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException(ReadOnlyContextWrapper.java:145)
| at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException(ReadOnlyContextWrapper.java:161)
| at weblogic.jndi.factories.java.ReadOnlyContextWrapper.bind(ReadOnlyContextWrapper.java:57)
| at weblogic.jndi.internal.AbstractURLContext.bind(AbstractURLContext.java:45)
| at javax.naming.InitialContext.bind(InitialContext.java:355)
| at org.jboss.cache.transaction.DummyTransactionManager.getInstance(DummyTransactionManager.java:33)
| at org.jboss.cache.DummyTransactionManagerLookup.getTransactionManager(DummyTransactionManagerLookup.java:17)
| at org.jboss.cache.TreeCache._createService(TreeCache.java:1311)
| at org.jboss.cache.TreeCache.createService(TreeCache.java:1297)
| at com.citigroup.posmgmt.biz.JBossCacheImpl.startService(JBossCacheImpl.java:54)
| at com.citigroup.posmgmt.biz.JBossCacheImpl.startup(JBossCacheImpl.java:91)
| at weblogic.t3.srvr.StartupClassService.invokeStartup(StartupClassService.java:177)
| at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:158)
| at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
| at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
| at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
| at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
| at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
| at weblogic.t3.srvr.PostDeploymentStartupService.resume(PostDeploymentStartupService.java:63)
| at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
| at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
| at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
| at weblogic.Server.main(Server.java:32)
| main org.jboss.cache.loader.AsyncCacheLoader - setConfig {location=/tmp/cacheStore}
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - Configuring cache loader with location = /tmp/cacheStore
| main org.jboss.cache.TreeCache - Not using an EvictionPolicy
| main org.jboss.cache.factories.InterceptorChainFactory - interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.OptimisticNodeInterceptor
| class org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor
| class org.jboss.cache.interceptors.OptimisticValidatorInterceptor
| class org.jboss.cache.interceptors.OptimisticLockingInterceptor
| class org.jboss.cache.interceptors.CacheStoreInterceptor
| class org.jboss.cache.interceptors.CacheLoaderInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| main org.jboss.cache.TreeCache - cache mode is local, will not create the channel
| main org.jboss.cache.loader.AsyncCacheLoader - Async cache loader starting: org.jboss.cache.loader.AsyncExtendedCacheLoader at 5e25f3 delegate=[JdbmCacheLoader locationStr=/tmp/cacheStore size=-1] processor=null stopped=true batchSize=100 pollWait=100 returnOld=true asyncPut=true queue.capacity()=10000 queue.peek()=null
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - Starting JdbmCacheLoader instance.
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - JdbmCacheLoader located as 131100
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - JDBM database /tmp/cacheStore/TreeCache-Cluster opened with 11134 entries
| AsyncCacheLoader-1 org.jboss.cache.loader.AsyncCacheLoader - run0
| main org.jboss.cache.loader.CacheLoaderManager - preloading transient state from cache loader org.jboss.cache.loader.AsyncExtendedCacheLoader at 5e25f3 delegate=[JdbmCacheLoader locationStr=/tmp/cacheStore size=11134] processor=TQ t=Thread[AsyncCacheLoader-1,5,main] stopped=false batchSize=100 pollWait=100 returnOld=true asyncPut=true queue.capacity()=10000 queue.peek()=null
| main org.jboss.cache.loader.CacheLoaderManager - preloading /loanet
| main org.jboss.cache.interceptors.TxInterceptor - (null) call on method [_get(/loanet, bla, true)]
| main org.jboss.cache.interceptors.TxInterceptor - Creating transaction for thread Thread[main,5,main]
| main org.jboss.cache.interceptors.TxInterceptor - local transaction exists - registering global tx if not present for Thread[main,5,main]
| main org.jboss.cache.interceptors.TxInterceptor - Associated gtx in txTable is null
| main org.jboss.cache.TreeCache - created new GTX: GlobalTransaction:<null>:1, local TX=org.jboss.cache.transaction.DummyTransaction at 562791
| main org.jboss.cache.interceptors.TxInterceptor - Registering sync handler for tx org.jboss.cache.transaction.DummyTransaction at 562791, gtx GlobalTransaction:<null>:1
| main org.jboss.cache.transaction.DummyTransaction - registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction at 562791, handlers=[]
| main org.jboss.cache.interceptors.TxInterceptor - registering for TX completion: SynchronizationHandler(TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:1, tx=org.jboss.cache.transaction.DummyTransaction at 562791))
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - invoke _get(/loanet, bla, true)
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - load element /loanet mustLoad=true
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - loadNode /loanet
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - get /loanet map={600001466=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 4a1bda, 600003106=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 16a93b8, 600007439=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 838a2, 600010984=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 1be40d5, 600007195=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 19261de, 600006550=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 157566d, 600003453=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at eb203b, 600005005=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 911fb5, 600006685=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 1b8b5cd, 600006145=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 1a7d9e7, 600004544=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at d2ee5d, 600004711=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 1f568f, 600002342=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 16c02df, 600002640=com.citigroup.posmgmt.vo.LoaNetActivityTbEx at 30803a, 600
| .......
| [-- More data info for the node --]
|
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - nodeExists true
| main org.jboss.cache.Node - created child: fqn=/loanet
| main org.jboss.cache.interceptors.CacheStoreInterceptor - CacheStoreInterceptor called with meth _get(/loanet, bla, true)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - transactional so don't put stuff in the cloader yet.
| main org.jboss.cache.transaction.DummyTransaction - processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction at 562791, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:1, tx=org.jboss.cache.transaction.DummyTransaction at 562791)]
| main org.jboss.cache.interceptors.TxInterceptor - Running beforeCompletion on gtx GlobalTransaction:<null>:1
| main org.jboss.cache.interceptors.TxInterceptor - No modifications in this tx. Skipping beforeCompletion()
| main org.jboss.cache.transaction.DummyTransaction - processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction at 562791, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:1, tx=org.jboss.cache.transaction.DummyTransaction at 562791)]
| main org.jboss.cache.interceptors.TxInterceptor - calling aftercompletion for GlobalTransaction:<null>:1
| main org.jboss.cache.interceptors.TxInterceptor - Running commit phase. One phase? false
| main org.jboss.cache.interceptors.TxInterceptor - running commit for GlobalTransaction:<null>:1
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - invoke commit(GlobalTransaction:<null>:1)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - CacheStoreInterceptor called with meth commit(GlobalTransaction:<null>:1)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - transactional so don't put stuff in the cloader yet.
| main org.jboss.cache.interceptors.CacheStoreInterceptor - Commit called with no modifications; ignoring.
| main org.jboss.cache.interceptors.OptimisticValidatorInterceptor - commiting validated changes
| main org.jboss.cache.interceptors.OptimisticValidatorInterceptor - Merging node /loanet not necessary since the node is not dirty
| main org.jboss.cache.interceptors.TxInterceptor - Finished local commit/rollback method for GlobalTransaction:<null>:1
| main org.jboss.cache.interceptors.TxInterceptor - Finished commit phase
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - getChildrenNames /loanet
| main org.jboss.cache.loader.CacheLoaderManager - preloading transient state from cache loader was successful (in 7169 milliseconds)
| main org.jboss.cache.interceptors.TxInterceptor - (null) call on method [_get(/loanet, bla, true)]
| main org.jboss.cache.interceptors.TxInterceptor - Creating transaction for thread Thread[main,5,main]
| main org.jboss.cache.interceptors.TxInterceptor - local transaction exists - registering global tx if not present for Thread[main,5,main]
| main org.jboss.cache.interceptors.TxInterceptor - Associated gtx in txTable is null
| main org.jboss.cache.TreeCache - created new GTX: GlobalTransaction:<null>:2, local TX=org.jboss.cache.transaction.DummyTransaction at 58ba4b
| main org.jboss.cache.interceptors.TxInterceptor - Registering sync handler for tx org.jboss.cache.transaction.DummyTransaction at 58ba4b, gtx GlobalTransaction:<null>:2
| main org.jboss.cache.transaction.DummyTransaction - registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction at 58ba4b, handlers=[]
| main org.jboss.cache.interceptors.TxInterceptor - registering for TX completion: SynchronizationHandler(TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:2, tx=org.jboss.cache.transaction.DummyTransaction at 58ba4b))
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - invoke _get(/loanet, bla, true)
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - load element /loanet mustLoad=false
| main org.jboss.cache.interceptors.CacheStoreInterceptor - CacheStoreInterceptor called with meth _get(/loanet, bla, true)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - transactional so don't put stuff in the cloader yet.
| main org.jboss.cache.transaction.DummyTransaction - processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction at 58ba4b, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:2, tx=org.jboss.cache.transaction.DummyTransaction at 58ba4b)]
| main org.jboss.cache.interceptors.TxInterceptor - Running beforeCompletion on gtx GlobalTransaction:<null>:2
| main org.jboss.cache.interceptors.TxInterceptor - No modifications in this tx. Skipping beforeCompletion()
| main org.jboss.cache.transaction.DummyTransaction - processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction at 58ba4b, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:2, tx=org.jboss.cache.transaction.DummyTransaction at 58ba4b)]
| main org.jboss.cache.interceptors.TxInterceptor - calling aftercompletion for GlobalTransaction:<null>:2
| main org.jboss.cache.interceptors.TxInterceptor - Running commit phase. One phase? false
| main org.jboss.cache.interceptors.TxInterceptor - running commit for GlobalTransaction:<null>:2
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - invoke commit(GlobalTransaction:<null>:2)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - CacheStoreInterceptor called with meth commit(GlobalTransaction:<null>:2)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - transactional so don't put stuff in the cloader yet.
| main org.jboss.cache.interceptors.CacheStoreInterceptor - Commit called with no modifications; ignoring.
| main org.jboss.cache.interceptors.OptimisticValidatorInterceptor - commiting validated changes
| main org.jboss.cache.interceptors.OptimisticValidatorInterceptor - Merging node /loanet not necessary since the node is not dirty
| main org.jboss.cache.interceptors.TxInterceptor - Finished local commit/rollback method for GlobalTransaction:<null>:2
| main org.jboss.cache.interceptors.TxInterceptor - Finished commit phase
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - getChildrenNames /loanet
I have also tried to change to JBossTransactionManagerLookup but it totally not working (I am using Weblogic 8.1 AS). Did I miss anything in the configuration ??
Thanks a lot !
-Bruce
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957930#3957930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957930
More information about the jboss-user
mailing list