java.lang.IllegalStateException: No transaction should be active

Atlassian JIRA | M Burdge | 4 years ago
  1. 0

    We are doing stash 2.3.1 evaluation, we created user directory connected to crowd server. A few days back, we keep getting user directory synchronization to crowd server. We tried restart, disable/remove old directory, then create new directory, the error never goes over. Please advice how we can fix this? !!!!! I attache error trace log at failure 2013-05-03 17:41:07,149 INFO [scheduler_Worker-7] c.a.c.d.DbCachingRemoteDirectory synchronisation for directory [ 491521 ] starting 2013-05-03 17:41:08,500 INFO [scheduler_Worker-7] c.a.c.d.l.c.RemoteDirectoryCacheRefresher found [ 7499 ] remote users in [ 1310ms ] 2013-05-03 17:41:08,502 INFO [scheduler_Worker-7] c.a.c.d.DbCachingRemoteChangeOperations scanning [ 7499 ] users to add or update 2013-05-03 17:41:08,520 INFO [scheduler_Worker-7] c.a.c.d.DirectoryCacheImplUsingChangeOperations scanned and compared [ 7499 ] users for update in DB cache in [ 19ms ] 2013-05-03 17:41:08,520 INFO [scheduler_Worker-7] c.a.c.d.DbCachingRemoteChangeOperations adding [ 7498 ] users 2013-05-03 17:41:08,568 WARN [scheduler_Worker-7] c.a.c.u.p.h.b.AbstractBatchProcessor batch failed falling back to individual processing java.lang.IllegalStateException: No transaction should be active at com.atlassian.stash.internal.crowd.TransactionManagerBatchProcessor.startTransaction(TransactionManagerBatchProcessor.java:60) ~[stash-dao-impl-2.3.1.jar:na] at com.atlassian.crowd.util.persistence.hibernate.batch.hibernate4.Hibernate4BatchProcessor.beforeProcessBatch(Hibernate4BatchProcessor.java:46) ~[crowd-persistence-hibernate4-2.6.2-m4.jar:na] at com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor.processBatch(AbstractBatchProcessor.java:153) [crowd-persistence-2.6.2-m4.jar:na] at com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor.execute(AbstractBatchProcessor.java:123) [crowd-persistence-2.6.2-m4.jar:na] at com.atlassian.crowd.dao.user.UserDAOHibernate.addAll(UserDAOHibernate.java:99) [crowd-persistence-hibernate4-2.6.2-m4.jar:na] at com.atlassian.stash.internal.crowd.HibernateUserDao.addAll(HibernateUserDao.java:68) [stash-dao-impl-2.3.1.jar:na] at sun.reflect.GeneratedMethodAccessor675.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_31] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_31] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) [spring-tx-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at $Proxy104.addAll(Unknown Source) [na:na] at com.atlassian.crowd.directory.CachingDirectory.addAllUsers(CachingDirectory.java:96) [crowd-persistence-2.6.2-m4.jar:na] at com.atlassian.crowd.directory.DbCachingRemoteChangeOperations.addUsers(DbCachingRemoteChangeOperations.java:175) [crowd-core-2.6.2-m4.jar:na] at sun.reflect.GeneratedMethodAccessor400.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_31] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_31] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) [spring-tx-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at com.atlassian.crowd.directory.$Proxy861.addUsers(Unknown Source) [na:na] at com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.addOrUpdateCachedUsers(DirectoryCacheImplUsingChangeOperations.java:58) [crowd-core-2.6.2-m4.jar:na] at com.atlassian.crowd.directory.ldap.cache.RemoteDirectoryCacheRefresher.synchroniseAllUsers(RemoteDirectoryCacheRefresher.java:65) [crowd-ldap-2.6.2-m4.jar:na] at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:78) [crowd-ldap-2.6.2-m4.jar:na] at com.atlassian.crowd.directory.ldap.cache.EventTokenChangedCacheRefresher.synchroniseAll(EventTokenChangedCacheRefresher.java:59) [crowd-ldap-2.6.2

    Atlassian JIRA | 4 years ago | M Burdge
    java.lang.IllegalStateException: No transaction should be active
  2. 0

    We are doing stash 2.3.1 evaluation, we created user directory connected to crowd server. A few days back, we keep getting user directory synchronization to crowd server. We tried restart, disable/remove old directory, then create new directory, the error never goes over. Please advice how we can fix this? !!!!! I attache error trace log at failure 2013-05-03 17:41:07,149 INFO [scheduler_Worker-7] c.a.c.d.DbCachingRemoteDirectory synchronisation for directory [ 491521 ] starting 2013-05-03 17:41:08,500 INFO [scheduler_Worker-7] c.a.c.d.l.c.RemoteDirectoryCacheRefresher found [ 7499 ] remote users in [ 1310ms ] 2013-05-03 17:41:08,502 INFO [scheduler_Worker-7] c.a.c.d.DbCachingRemoteChangeOperations scanning [ 7499 ] users to add or update 2013-05-03 17:41:08,520 INFO [scheduler_Worker-7] c.a.c.d.DirectoryCacheImplUsingChangeOperations scanned and compared [ 7499 ] users for update in DB cache in [ 19ms ] 2013-05-03 17:41:08,520 INFO [scheduler_Worker-7] c.a.c.d.DbCachingRemoteChangeOperations adding [ 7498 ] users 2013-05-03 17:41:08,568 WARN [scheduler_Worker-7] c.a.c.u.p.h.b.AbstractBatchProcessor batch failed falling back to individual processing java.lang.IllegalStateException: No transaction should be active at com.atlassian.stash.internal.crowd.TransactionManagerBatchProcessor.startTransaction(TransactionManagerBatchProcessor.java:60) ~[stash-dao-impl-2.3.1.jar:na] at com.atlassian.crowd.util.persistence.hibernate.batch.hibernate4.Hibernate4BatchProcessor.beforeProcessBatch(Hibernate4BatchProcessor.java:46) ~[crowd-persistence-hibernate4-2.6.2-m4.jar:na] at com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor.processBatch(AbstractBatchProcessor.java:153) [crowd-persistence-2.6.2-m4.jar:na] at com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor.execute(AbstractBatchProcessor.java:123) [crowd-persistence-2.6.2-m4.jar:na] at com.atlassian.crowd.dao.user.UserDAOHibernate.addAll(UserDAOHibernate.java:99) [crowd-persistence-hibernate4-2.6.2-m4.jar:na] at com.atlassian.stash.internal.crowd.HibernateUserDao.addAll(HibernateUserDao.java:68) [stash-dao-impl-2.3.1.jar:na] at sun.reflect.GeneratedMethodAccessor675.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_31] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_31] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) [spring-tx-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at $Proxy104.addAll(Unknown Source) [na:na] at com.atlassian.crowd.directory.CachingDirectory.addAllUsers(CachingDirectory.java:96) [crowd-persistence-2.6.2-m4.jar:na] at com.atlassian.crowd.directory.DbCachingRemoteChangeOperations.addUsers(DbCachingRemoteChangeOperations.java:175) [crowd-core-2.6.2-m4.jar:na] at sun.reflect.GeneratedMethodAccessor400.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_31] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_31] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) [spring-tx-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE] at com.atlassian.crowd.directory.$Proxy861.addUsers(Unknown Source) [na:na] at com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.addOrUpdateCachedUsers(DirectoryCacheImplUsingChangeOperations.java:58) [crowd-core-2.6.2-m4.jar:na] at com.atlassian.crowd.directory.ldap.cache.RemoteDirectoryCacheRefresher.synchroniseAllUsers(RemoteDirectoryCacheRefresher.java:65) [crowd-ldap-2.6.2-m4.jar:na] at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:78) [crowd-ldap-2.6.2-m4.jar:na] at com.atlassian.crowd.directory.ldap.cache.EventTokenChangedCacheRefresher.synchroniseAll(EventTokenChangedCacheRefresher.java:59) [crowd-ldap-2.6.2

    Atlassian JIRA | 4 years ago | M Burdge
    java.lang.IllegalStateException: No transaction should be active
  3. 0

    Error during transaction Synchronization

    Oracle Community | 9 years ago | 610170
    java.lang.IllegalStateException: No active Transaction
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Transaction error - com.atomikos

    Stack Overflow | 2 years ago
    java.lang.IllegalStateException: Transaction no longer active
  6. 0

    Atomikos Forum - Flow executionended unexpctedly and Transaction no longer active

    atomikos.com | 6 months ago
    org.springframework.batch.core.JobExecutionException: Flow execution ended unexpectedly

    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. java.lang.IllegalStateException

      No transaction should be active

      at com.atlassian.stash.internal.crowd.TransactionManagerBatchProcessor.startTransaction()
    2. com.atlassian.stash
      TransactionManagerBatchProcessor.startTransaction
      1. com.atlassian.stash.internal.crowd.TransactionManagerBatchProcessor.startTransaction(TransactionManagerBatchProcessor.java:60)[stash-dao-impl-2.3.1.jar:na]
      1 frame
    3. com.atlassian.crowd
      UserDAOHibernate.addAll
      1. com.atlassian.crowd.util.persistence.hibernate.batch.hibernate4.Hibernate4BatchProcessor.beforeProcessBatch(Hibernate4BatchProcessor.java:46)[crowd-persistence-hibernate4-2.6.2-m4.jar:na]
      2. com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor.processBatch(AbstractBatchProcessor.java:153)[crowd-persistence-2.6.2-m4.jar:na]
      3. com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor.execute(AbstractBatchProcessor.java:123)[crowd-persistence-2.6.2-m4.jar:na]
      4. com.atlassian.crowd.dao.user.UserDAOHibernate.addAll(UserDAOHibernate.java:99)[crowd-persistence-hibernate4-2.6.2-m4.jar:na]
      4 frames
    4. com.atlassian.stash
      HibernateUserDao.addAll
      1. com.atlassian.stash.internal.crowd.HibernateUserDao.addAll(HibernateUserDao.java:68)[stash-dao-impl-2.3.1.jar:na]
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor675.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_31]
      3. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_31]
      3 frames
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      3 frames
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)[spring-tx-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      1 frame
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      4. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      4 frames
    9. Unknown
      $Proxy104.addAll
      1. $Proxy104.addAll(Unknown Source)[na:na]
      1 frame
    10. com.atlassian.crowd
      DbCachingRemoteChangeOperations.addUsers
      1. com.atlassian.crowd.directory.CachingDirectory.addAllUsers(CachingDirectory.java:96)[crowd-persistence-2.6.2-m4.jar:na]
      2. com.atlassian.crowd.directory.DbCachingRemoteChangeOperations.addUsers(DbCachingRemoteChangeOperations.java:175)[crowd-core-2.6.2-m4.jar:na]
      2 frames
    11. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor400.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_31]
      3. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_31]
      3 frames
    12. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      3 frames
    13. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)[spring-tx-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      1 frame
    14. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
      2 frames
    15. com.atlassian.crowd
      AbstractCacheRefresher.synchroniseAll
      1. com.atlassian.crowd.directory.$Proxy861.addUsers(Unknown Source)[na:na]
      2. com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.addOrUpdateCachedUsers(DirectoryCacheImplUsingChangeOperations.java:58)[crowd-core-2.6.2-m4.jar:na]
      3. com.atlassian.crowd.directory.ldap.cache.RemoteDirectoryCacheRefresher.synchroniseAllUsers(RemoteDirectoryCacheRefresher.java:65)[crowd-ldap-2.6.2-m4.jar:na]
      4. com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:78)[crowd-ldap-2.6.2-m4.jar:na]
      4 frames