0 Replies Latest reply on Feb 6, 2005 4:22 AM by flashwindcn

    lock.TimeoutException, is bug?

    flashwindcn Newbie

      I am using the JBossCache 1.2 and JBoss 3.2.4. They all work perfectly nicely but sometimes JBossCache display some error messages,

      on the server side JBossCache gives the following exception:
      158415328 2005-02-06 10:00:30,588 {http-192.168.0.41-80-Processor43} INFO <> [org.apache.struts.tiles.TilesRequestProcessor].[initDefinitionsMapping] (TilesRequestProcessor.java:139) - Tiles definition factory found for request processor '/stat'.
      158415344 2005-02-06 10:00:30,604 {http-192.168.0.41-80-Processor43} INFO <> [common.util.DateUtils].[minusDateFromConfig] (DateUtils.java:91) - ##
      158433406 2005-02-06 10:00:48,666 {http-192.168.0.41-80-Processor97} ERROR <> [org.jboss.cache.lock.IdentityLock].[acquireReadLock] (IdentityLock.java:226) - read lock for /common/servicelocator/ServiceLocator could not be acquired after 15000 ms. Lock map ownership Read lock owners: []
      Write lock owner: :243663
      (caller=Thread[http-192.168.0.41-80-Processor97,5,jboss])
      158433406 2005-02-06 10:00:48,666 {http-192.168.0.41-80-Processor50} ERROR <> [org.jboss.cache.lock.IdentityLock].[acquireReadLock] (IdentityLock.java:226) - read lock for /common/servicelocator/ServiceLocator could not be acquired after 15000 ms. Lock map ownership Read lock owners: []
      Write lock owner: :243663
      (caller=Thread[http-192.168.0.41-80-Processor50,5,jboss])
      158433406 2005-02-06 10:00:48,666 {http-192.168.0.41-80-Processor46} ERROR <> [org.jboss.cache.lock.IdentityLock].[acquireReadLock] (IdentityLock.java:226) - read lock for /common/servicelocator/ServiceLocator could not be acquired after 15000 ms. Lock map ownership Read lock owners: []
      Write lock owner: :243663
      (caller=Thread[http-192.168.0.41-80-Processor46,5,jboss])
      158433406 2005-02-06 10:00:48,666 {http-192.168.0.41-80-Processor31} ERROR <> [org.jboss.cache.lock.IdentityLock].[acquireReadLock] (IdentityLock.java:226) - read lock for /common/servicelocator/ServiceLocator could not be acquired after 15000 ms. Lock map ownership Read lock owners: []
      Write lock owner: :243663
      (caller=Thread[http-192.168.0.41-80-Processor31,5,jboss])
      158433406 2005-02-06 10:00:48,666 {http-192.168.0.41-80-Processor59} ERROR <> [org.jboss.cache.lock.IdentityLock].[acquireReadLock] (IdentityLock.java:226) - read lock for /common/servicelocator/ServiceLocator could not be acquired after 15000 ms. Lock map ownership Read lock owners: []
      Write lock owner: :243663
      (caller=Thread[http-192.168.0.41-80-Processor59,5,jboss])
      158433422 2005-02-06 10:00:48,682 {http-192.168.0.41-80-Processor97} WARN <> [common.servicelocator.ServiceLocator].[getLocalHome] (ServiceLocator.java:179) - !! ???
      org.jboss.cache.lock.TimeoutException: lock for /common/servicelocator/ServiceLocator could not be acquired after 15000ms. Lock map ownership Read lock owners: []
      Write lock owner: :243663

      at org.jboss.cache.lock.IdentityLock.acquireReadLock(IdentityLock.java:227)
      at org.jboss.cache.Node.acquireReadLock(Node.java:418)
      at org.jboss.cache.Node.acquire(Node.java:399)
      at org.jboss.cache.interceptors.LockInterceptor.lock(LockInterceptor.java:187)
      at org.jboss.cache.interceptors.LockInterceptor.invoke(LockInterceptor.java:134)
      at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:40)
      at org.jboss.cache.interceptors.CreateIfNotExistsInterceptor.invoke(CreateIfNotExistsInterceptor.java:47)
      at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3078)
      at org.jboss.cache.TreeCache.get(TreeCache.java:1610)
      at org.jboss.cache.TreeCache.get(TreeCache.java:1594)
      at org.jboss.cache.TreeCache.get(TreeCache.java:1581)
      at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:272)
      at $Proxy161.get(Unknown Source)
      at common.servicelocator.ServiceLocator.getLocalHome(ServiceLocator.java:163)
      at admin.option.ejb.SystemOptionDTOFactoryDelegate.initializeSystemOptionDTOFactorySessionLocalHome(SystemOptionDTOFactoryDelegate.java:105)
      at admin.option.ejb.SystemOptionDTOFactoryDelegate.(SystemOptionDTOFactoryDelegate.java:26)
      at admin.option.ejb.SystemOptionDelegate.getBooleanValue(SystemOptionDelegate.java:173)
      at common.stat.VisitListener.requestInitialized(VisitListener.java:45)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:187)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:444)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:534)

      I can't get any idea to rid off from the problem , WHO can help me!