java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by M Burdge,
  • 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
    via by M Burdge,
    • 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]
    No Bugmate found.