com.tc.object.tx.UnlockedSharedObjectException: ******************************************************************************* Attempt to access a shared object outside the scope of a shared lock. All access to shared objects must be within the scope of one or more shared locks defined in your Terracotta configuration. Please alter the locks section of your Terracotta configuration so that this access is auto-locked or protected by a named lock. For more information on this issue, please visit our Troubleshooting Guide at: http://terracotta.org/kit/troubleshooting Caused by Thread: ExecuteThread: '14' for queue: 'weblogic.kernel.Default' in VM(0) Shared Object Type: java.util.HashMap *******************************************************************************

Terracotta | rdev | 9 years ago
  1. 0

    UnlockedSharedObjectException in EHCache Wrapper Utility Method

    Terracotta | 9 years ago | rdev
    com.tc.object.tx.UnlockedSharedObjectException: ******************************************************************************* Attempt to access a shared object outside the scope of a shared lock. All access to shared objects must be within the scope of one or more shared locks defined in your Terracotta configuration. Please alter the locks section of your Terracotta configuration so that this access is auto-locked or protected by a named lock. For more information on this issue, please visit our Troubleshooting Guide at: http://terracotta.org/kit/troubleshooting Caused by Thread: ExecuteThread: '14' for queue: 'weblogic.kernel.Default' in VM(0) Shared Object Type: java.util.HashMap *******************************************************************************
  2. 0

    source: http://forums.terracotta.org/forums/posts/list/723.page If one takes a clustered ehcache CacheManager instance and try to register it with an MBeanServer, you'll get an UnlockedSharedObjectException. Making a call like this (passing a shared cacheManager) should produce the issue net.sf.ehcache.management.ManagementService.registerMBeans(cacheManager, ManagementFactory.getPlatformMBeanServer(), true, true, true, true); It looks like an attempt was made to make this transient since "net.sf.ehcache.CacheManager.cacheManagerEventListener" is declared transient in terracotta.xml in both the 1.2.4 and 1.3.0 modules. Unfortunately that field does not exist. Correcting the field name will just lead to an NPE on other nodes. This is the exception text: com.tc.object.tx.UnlockedSharedObjectException: ******************************************************************************* Attempt to access a shared object outside the scope of a shared lock. All access to shared objects must be within the scope of one or more shared locks defined in your Terracotta configuration. Please alter the locks section of your Terracotta configuration so that this access is auto-locked or protected by a named lock. For more information on this issue, please visit our Troubleshooting Guide at: http://terracotta.org/kit/troubleshooting Caused by Thread: main in VM(0) Shared Object Type: java.util.HashSet ******************************************************************************* at com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTransactionManagerImpl.java:278) at com.tc.object.tx.ClientTransactionManagerImpl.checkWriteAccess(ClientTransactionManagerImpl.java:291) at com.tc.object.bytecode.ManagerImpl.checkWriteAccess(ManagerImpl.java:662) at com.tc.object.bytecode.ManagerUtil.checkWriteAccess(ManagerUtil.java:364) at java.util.HashSet.add(HashSet.java) at net.sf.ehcache.event.CacheManagerEventListenerRegistry.registerListener(CacheManagerEventListenerRegistry.java:65) at net.sf.ehcache.management.ManagementService.init(ManagementService.java:137) at net.sf.ehcache.management.ManagementService.registerMBeans(ManagementService.java:110) at Foo.main(Foo.java:11)

    Terracotta Project Issue Tracker | 9 years ago | Tim Eck
    com.tc.object.tx.UnlockedSharedObjectException: ******************************************************************************* Attempt to access a shared object outside the scope of a shared lock. All access to shared objects must be within the scope of one or more shared locks defined in your Terracotta configuration. Please alter the locks section of your Terracotta configuration so that this access is auto-locked or protected by a named lock. For more information on this issue, please visit our Troubleshooting Guide at: http://terracotta.org/kit/troubleshooting Caused by Thread: main in VM(0) Shared Object Type: java.util.HashSet *******************************************************************************
  3. 0

    Lock problem

    Terracotta | 10 years ago | safarje
    com.tc.object.tx.UnlockedSharedObjectException: ******************************************************************************* Attempt to access a shared object outside the scope of a shared lock. All access to shared objects must be within the scope of one or more shared locks defined in your Terracotta configuration. Please alter the locks section of your Terracotta configuration so that this access is auto-locked or protected by a named lock. Caused by Thread: main in VM(2) Shared Object Type: java.util.ArrayList *******************************************************************************
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    UnlockedSharedObjectException problem

    Terracotta | 8 years ago | sirode
    com.tc.object.tx.UnlockedSharedObjectException: ******************************************************************************* Attempt to access a shared object outside the scope of a shared lock. All access to shared objects must be within the scope of one or more shared locks defined in your Terracotta configuration. Please alter the locks section of your Terracotta configuration so that this access is auto-locked or protected by a named lock. For more information on this issue, please visit our Troubleshooting Guide at: http://terracotta.org/kit/troubleshooting Caused by Thread: JMS SessionPool Worker-0 in VM(2) Shared Object Type: java.util.HashMap *******************************************************************************
  6. 0

    Re:Hashtable UnlockedSharedObjectException

    Terracotta | 7 years ago | dondragon2
    com.tc.object.tx.UnlockedSharedObjectException: ********************************************************************* Attempt to access a shared object outside the scope of a shared lock. All access to shared objects must be within the scope of one or more shared locks defined in your Terracotta configuration. Caused by Thread: pool-3-thread-1 in VM(0) Shared Object Type: java.util.Hashtable The cause may be one or more of the following: * Terracotta locking was not configured for the shared code. * The code itself does not have synchronization that Terracotta can use as a boundary. * The class doing the locking must be included for instrumentation. * The object was first locked, then shared. For more information on how to solve this issue, see: http://www.terracotta.org/usoe *********************************************************************

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.tc.object.tx.UnlockedSharedObjectException

      ******************************************************************************* Attempt to access a shared object outside the scope of a shared lock. All access to shared objects must be within the scope of one or more shared locks defined in your Terracotta configuration. Please alter the locks section of your Terracotta configuration so that this access is auto-locked or protected by a named lock. For more information on this issue, please visit our Troubleshooting Guide at: http://terracotta.org/kit/troubleshooting Caused by Thread: ExecuteThread: '14' for queue: 'weblogic.kernel.Default' in VM(0) Shared Object Type: java.util.HashMap *******************************************************************************

      at com.tc.object.tx.ClientTransactionManagerImpl.getTransaction()
    2. com.tc.object
      ManagerUtil.checkWriteAccess
      1. com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTransactionManagerImpl.java:260)
      2. com.tc.object.tx.ClientTransactionManagerImpl.checkWriteAccess(ClientTransactionManagerImpl.java:270)
      3. com.tc.object.bytecode.ManagerImpl.checkWriteAccess(ManagerImpl.java:637)
      4. com.tc.object.bytecode.ManagerUtil.checkWriteAccess(ManagerUtil.java:174)
      4 frames
    3. Java RT
      HashMap.put
      1. java.util.HashMap.put(Unknown Source)
      1 frame
    4. net.ruckus.commons
      SimpleCacheWrapper.set
      1. net.ruckus.commons.SimpleCacheWrapper.set(SimpleCacheWrapper.java:131)
      1 frame
    5. net.ruckus.service
      ServerConfigurationServiceImpl.getPropertyValue
      1. net.ruckus.service.config.ServerConfigurationServiceImpl.getPropertyValue(ServerConfigurationServiceImpl.java:82)
      2. net.ruckus.service.config.ServerConfigurationServiceImpl.getPropertyValue(ServerConfigurationServiceImpl.java:109)
      2 frames
    6. net.ruckus.ui
      EnsureRuckusContextFilter.doFilter
      1. net.ruckus.ui.web.filter.EnsureRuckusContextFilter.doFilter(EnsureRuckusContextFilter.java:120)
      1 frame
    7. net.sf.acegisecurity
      FilterChainProxy$VirtualFilterChain.doFilter
      1. net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
      2. net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:84)
      3. net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:182)
      4. net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
      5. net.sf.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:153)
      6. net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
      6 frames
    8. net.ruckus.acegi
      RedirectingRememberMeProcessingFilter.doFilter
      1. net.ruckus.acegi.web.RedirectingRememberMeProcessingFilter.doFilter(RedirectingRememberMeProcessingFilter.java:105)
      1 frame
    9. net.sf.acegisecurity
      FilterChainProxy.doFilter
      1. net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
      2. net.sf.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:305)
      3. net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
      4. net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:226)
      5. net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
      6. net.sf.acegisecurity.securechannel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:168)
      7. net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
      8. net.sf.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173)
      8 frames
    10. net.ruckus.acegi
      ThreadSafeFilterToBeanProxy.doFilter
      1. net.ruckus.acegi.web.ThreadSafeFilterToBeanProxy.doFilter(ThreadSafeFilterToBeanProxy.java:72)
      1 frame
    11. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
      1 frame
    12. net.ruckus.ui
      BrokenPipeSwallower.doFilter
      1. net.ruckus.ui.web.filter.BrokenPipeSwallower.doFilter(BrokenPipeSwallower.java:40)
      1 frame
    13. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
      1 frame
    14. Hibernate
      OpenSessionInViewFilter.doFilterInternal
      1. org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:172)
      1 frame
    15. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      1 frame
    16. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
      2. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
      2 frames
    17. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    18. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      1 frame
    19. Atmosphere weblogic
      ServletRequestImpl.execute
      1. weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
      2. weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
      2 frames
    20. weblogic.kernel
      ExecuteThread.run
      1. weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
      2. weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
      2 frames