java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION!]

Pentaho BI Platform Tracking | Michael D'Amour | 4 years ago
  1. 0

    09:01:53,658 WARN [AbstractLoginModule] Usage of deprecated 'trust_credentials_attribute' option. Please note that for security reasons this feature will notbe supported in future releases. 09:01:53,659 ERROR [ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0004 - Action "org.pentaho.platform.admin.GeneratedContentCleaner" failed to run as a quartz job java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION! at org.pentaho.platform.engine.core.system.StandaloneSession.getAttribute(StandaloneSession.java:78) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getCurrentTenant(JcrTenantUtils.java:112) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getTenant(JcrTenantUtils.java:86) at org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao.getJackrabbitUser(AbstractJcrBackedUserRoleDao.java:514) at org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao.getUser(AbstractJcrBackedUserRoleDao.java:476) at org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao$13.doInJcr(JcrUserRoleDao.java:287) at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:89) at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:115) at org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao.getUser(JcrUserRoleDao.java:284) at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy1.getUser(Unknown Source) at org.pentaho.platform.security.userroledao.service.UserRoleDaoUserDetailsService.loadUserByUsername(UserRoleDaoUserDetailsService.java:80) at org.pentaho.platform.security.userroledao.service.UserRoleDaoUserRoleListService.getRolesForUser(UserRoleDaoUserRoleListService.java:107) at org.pentaho.platform.plugin.services.security.userrole.ExtraRolesUserRoleListServiceDecorator.getRolesForUser(ExtraRolesUserRoleListServiceDecorator.java:96) at org.pentaho.platform.engine.security.SecurityHelper.createAuthentication(SecurityHelper.java:343) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:117) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:94) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:151) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:142) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction(ActionAdapterQuartzJob.java:195) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:110) at org.pentaho.platform.scheduler2.quartz.BlockingQuartzJob.execute(BlockingQuartzJob.java:37) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546) 09:01:53,664 WARN [BlockingQuartzJob] Got Exception retrieving the Blockout Manager for job 'admin:GeneratedContentCleaner:1363891484031'. Executing the underlying job anyway org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob$LoggingJobExecutionException: ActionAdapterQuartzJob.ERROR_0004 - Action "org.pentaho.platform.admin.GeneratedContentCleaner" failed to r un as a quartz job [See nested exception: java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION!] at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:115) at org.pentaho.platform.scheduler2.quartz.BlockingQuartzJob.execute(BlockingQuartzJob.java:37) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546) Caused by: java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION! at org.pentaho.platform.engine.core.system.StandaloneSession.getAttribute(StandaloneSession.java:78) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getCurrentTenant(JcrTenantUtils.java:112) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getTenant(JcrTenantUtils.java:86) at org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao.getJackrabbitUser(AbstractJcrBackedUserRoleDao.java:514) at org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao.getUser(AbstractJcrBackedUserRoleDao.java:476) at org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao$13.doInJcr(JcrUserRoleDao.java:287) at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:89) at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:115) at org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao.getUser(JcrUserRoleDao.java:284) at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy1.getUser(Unknown Source) at org.pentaho.platform.security.userroledao.service.UserRoleDaoUserDetailsService.loadUserByUsername(UserRoleDaoUserDetailsService.java:80) at org.pentaho.platform.security.userroledao.service.UserRoleDaoUserRoleListService.getRolesForUser(UserRoleDaoUserRoleListService.java:107) at org.pentaho.platform.plugin.services.security.userrole.ExtraRolesUserRoleListServiceDecorator.getRolesForUser(ExtraRolesUserRoleListServiceDecorator.java:96) at org.pentaho.platform.engine.security.SecurityHelper.createAuthentication(SecurityHelper.java:343) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:117) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:94) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:151) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:142) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction(ActionAdapterQuartzJob.java:195) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:110) ... 3 more 09:01:53,694 ERROR [ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0001 - Property "ActionAdapterQuartzJob-ActionClass" or "ActionAdapterQuartzJob-ActionId" must be set in the job data map 09:01:53,695 ERROR [ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0002 - Failed to create an instance of action "unknown" org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob$LoggingJobExecutionException: ActionAdapterQuartzJob.ERROR_0001 - Property "ActionAdapterQuartzJob-ActionClass" or "ActionAdapterQuartzJo b-ActionId" must be set in the job data map at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.resolveClass(ActionAdapterQuartzJob.java:80) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:94) at org.pentaho.platform.scheduler2.quartz.BlockingQuartzJob.execute(BlockingQuartzJob.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)

    Pentaho BI Platform Tracking | 4 years ago | Michael D'Amour
    java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION!]
  2. 0

    09:01:53,658 WARN [AbstractLoginModule] Usage of deprecated 'trust_credentials_attribute' option. Please note that for security reasons this feature will notbe supported in future releases. 09:01:53,659 ERROR [ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0004 - Action "org.pentaho.platform.admin.GeneratedContentCleaner" failed to run as a quartz job java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION! at org.pentaho.platform.engine.core.system.StandaloneSession.getAttribute(StandaloneSession.java:78) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getCurrentTenant(JcrTenantUtils.java:112) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getTenant(JcrTenantUtils.java:86) at org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao.getJackrabbitUser(AbstractJcrBackedUserRoleDao.java:514) at org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao.getUser(AbstractJcrBackedUserRoleDao.java:476) at org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao$13.doInJcr(JcrUserRoleDao.java:287) at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:89) at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:115) at org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao.getUser(JcrUserRoleDao.java:284) at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy1.getUser(Unknown Source) at org.pentaho.platform.security.userroledao.service.UserRoleDaoUserDetailsService.loadUserByUsername(UserRoleDaoUserDetailsService.java:80) at org.pentaho.platform.security.userroledao.service.UserRoleDaoUserRoleListService.getRolesForUser(UserRoleDaoUserRoleListService.java:107) at org.pentaho.platform.plugin.services.security.userrole.ExtraRolesUserRoleListServiceDecorator.getRolesForUser(ExtraRolesUserRoleListServiceDecorator.java:96) at org.pentaho.platform.engine.security.SecurityHelper.createAuthentication(SecurityHelper.java:343) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:117) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:94) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:151) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:142) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction(ActionAdapterQuartzJob.java:195) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:110) at org.pentaho.platform.scheduler2.quartz.BlockingQuartzJob.execute(BlockingQuartzJob.java:37) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546) 09:01:53,664 WARN [BlockingQuartzJob] Got Exception retrieving the Blockout Manager for job 'admin:GeneratedContentCleaner:1363891484031'. Executing the underlying job anyway org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob$LoggingJobExecutionException: ActionAdapterQuartzJob.ERROR_0004 - Action "org.pentaho.platform.admin.GeneratedContentCleaner" failed to r un as a quartz job [See nested exception: java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION!] at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:115) at org.pentaho.platform.scheduler2.quartz.BlockingQuartzJob.execute(BlockingQuartzJob.java:37) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546) Caused by: java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION! at org.pentaho.platform.engine.core.system.StandaloneSession.getAttribute(StandaloneSession.java:78) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getCurrentTenant(JcrTenantUtils.java:112) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getTenant(JcrTenantUtils.java:86) at org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao.getJackrabbitUser(AbstractJcrBackedUserRoleDao.java:514) at org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao.getUser(AbstractJcrBackedUserRoleDao.java:476) at org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao$13.doInJcr(JcrUserRoleDao.java:287) at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:89) at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:115) at org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao.getUser(JcrUserRoleDao.java:284) at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy1.getUser(Unknown Source) at org.pentaho.platform.security.userroledao.service.UserRoleDaoUserDetailsService.loadUserByUsername(UserRoleDaoUserDetailsService.java:80) at org.pentaho.platform.security.userroledao.service.UserRoleDaoUserRoleListService.getRolesForUser(UserRoleDaoUserRoleListService.java:107) at org.pentaho.platform.plugin.services.security.userrole.ExtraRolesUserRoleListServiceDecorator.getRolesForUser(ExtraRolesUserRoleListServiceDecorator.java:96) at org.pentaho.platform.engine.security.SecurityHelper.createAuthentication(SecurityHelper.java:343) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:117) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:94) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:151) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:142) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction(ActionAdapterQuartzJob.java:195) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:110) ... 3 more 09:01:53,694 ERROR [ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0001 - Property "ActionAdapterQuartzJob-ActionClass" or "ActionAdapterQuartzJob-ActionId" must be set in the job data map 09:01:53,695 ERROR [ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0002 - Failed to create an instance of action "unknown" org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob$LoggingJobExecutionException: ActionAdapterQuartzJob.ERROR_0001 - Property "ActionAdapterQuartzJob-ActionClass" or "ActionAdapterQuartzJo b-ActionId" must be set in the job data map at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.resolveClass(ActionAdapterQuartzJob.java:80) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:94) at org.pentaho.platform.scheduler2.quartz.BlockingQuartzJob.execute(BlockingQuartzJob.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)

    Pentaho BI Platform Tracking | 4 years ago | Michael D'Amour
    java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION!]
  3. 0

    During investigation of the issue http://jira.pentaho.com/browse/PDI-10665 I faced up with the one more issue in AutoDoc.processRow() method. We are trying to load repository directory tree: ------------------------------------------------------------------------------------------------ data.repository = getTrans().getRepository(); if ( data.repository != null ) { data.tree = data.repository.loadRepositoryDirectoryTree(); } ------------------------------------------------------------------------------------------------ And as result there is an attempt to call StandaloneSession.getAttribute(StandaloneSession.java:75) for already destroyed session. See log below: org.springframework.transaction.CannotCreateTransactionException: Could not open JCR session for transaction; nested exception is java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION! at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doBegin(LocalTransactionManager.java:160) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374) at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy28.getTree(Unknown Source) at org.pentaho.platform.repository2.unified.ExceptionLoggingDecorator$41.call(ExceptionLoggingDecorator.java:445) at org.pentaho.platform.repository2.unified.ExceptionLoggingDecorator$41.call(ExceptionLoggingDecorator.java:443) at org.pentaho.platform.repository2.unified.ExceptionLoggingDecorator.callLogThrow(ExceptionLoggingDecorator.java:489) at org.pentaho.platform.repository2.unified.ExceptionLoggingDecorator.getTree(ExceptionLoggingDecorator.java:443) at org.pentaho.platform.repository2.unified.ExceptionLoggingDecorator.getTree(ExceptionLoggingDecorator.java:454) at org.pentaho.di.repository.pur.PurRepository.loadRepositoryFileTree(PurRepository.java:520) at org.pentaho.di.repository.pur.PurRepository.loadRepositoryDirectoryTree(PurRepository.java:528) at org.pentaho.di.trans.steps.autodoc.AutoDoc.processRow(AutoDoc.java:163) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION! at org.pentaho.platform.engine.core.system.StandaloneSession.getAttribute(StandaloneSession.java:75) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getTenantedUser(JcrTenantUtils.java:96) at org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoSessionCredentialsStrategy.getUserId(PentahoSessionCredentialsStrategy.java:74) at org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoSessionCredentialsStrategy.getCredentials(PentahoSessionCredentialsStrategy.java:65) at org.pentaho.platform.repository2.unified.jcr.sejcr.CredentialsStrategySessionFactory.getSession(CredentialsStrategySessionFactory.java:337) at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doBegin(LocalTransactionManager.java:120) ... 16 more This occurs because in StartExecutionTransAsUserServlet we switch PentahoHttpSession to a Standalone Session: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- public void transStarted(Trans trans) throws KettleException { // Switches my PentahoHttpSession to a Standalone Session if (log.isDebug()) { log.logDebug(BaseMessages.getString(SUBCLASS_PKG, "StartExecutionTransAsUserServlet.Log.CallbackReceived")); } SecurityHelper.getInstance().becomeUser(PentahoSessionHolder.getSession().getName()); } ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- So now we have UserSession in PentahoSessionStore and in HttpSessionPentahoSessionIntegrationFilter we destroy this one: // Crucial removal of PentahoSessionHolder contents - do this before anything else. PentahoSessionHolder.removeSession(); At the same time the steps of our transformation are executing in several separate threads and when one of them (in this case it AutoDoc ) is trying to load DI repository tree, on jackrabbit level there is attempt to work with this destroyed UserSession. As result - ava.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION! The steps to reproduce are the same as in http://jira.pentaho.com/browse/PDI-10665

    Pentaho BI Platform Tracking | 3 years ago | Tatsiana Kasiankova
    org.springframework.transaction.CannotCreateTransactionException: Could not open JCR session for transaction; nested exception is java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Schedule a simple transformation (generate rows step / dummy) as admin (having all privileges): nothing happens. Tested with Run now as well as scheduled at a specific time (the scheduler lists the schedule, but monitoring the DI-Server does not show the transformation after it gets triggered). Possible related error messages in pentahodataintegrationserver-stdout.xxx.log (looks similar to BISERVER-11157 & ESR-3601): 15:31:01,658 ERROR [ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0004 - Action "org.pentaho.platform.plugin.kettle.PdiAction" failed to run as a quartz job java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION! at org.pentaho.platform.engine.core.system.StandaloneSession.getAttribute(StandaloneSession.java:75) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getCurrentTenant(JcrTenantUtils.java:152) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getTenant(JcrTenantUtils.java:125) at org.pentaho.platform.security.userroledao.service.UserRoleDaoUserRoleListService.getRolesForUser(UserRoleDaoUserRoleListService.java:134) at org.pentaho.platform.plugin.services.security.userrole.ExtraRolesUserRoleListServiceDecorator.getRolesForUser(ExtraRolesUserRoleListServiceDecorator.java:113) at org.pentaho.platform.plugin.services.security.userrole.CompositeUserRoleListService$7.perform(CompositeUserRoleListService.java:113) at org.pentaho.platform.plugin.services.security.userrole.CompositeUserRoleListService.collectResultsForOperation(CompositeUserRoleListService.java:123) at org.pentaho.platform.plugin.services.security.userrole.CompositeUserRoleListService.getRolesForUser(CompositeUserRoleListService.java:111) at org.pentaho.platform.engine.security.SecurityHelper.createAuthentication(SecurityHelper.java:320) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:132) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:112) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:166) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:156) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction

    Pentaho BI Platform Tracking | 2 years ago | Jens Bleuel
    java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION!
  6. 0

    Schedule a simple transformation (generate rows step / dummy) as admin (having all privileges): nothing happens. Tested with Run now as well as scheduled at a specific time (the scheduler lists the schedule, but monitoring the DI-Server does not show the transformation after it gets triggered). Possible related error messages in pentahodataintegrationserver-stdout.xxx.log (looks similar to BISERVER-11157 & ESR-3601): 15:31:01,658 ERROR [ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0004 - Action "org.pentaho.platform.plugin.kettle.PdiAction" failed to run as a quartz job java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION! at org.pentaho.platform.engine.core.system.StandaloneSession.getAttribute(StandaloneSession.java:75) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getCurrentTenant(JcrTenantUtils.java:152) at org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getTenant(JcrTenantUtils.java:125) at org.pentaho.platform.security.userroledao.service.UserRoleDaoUserRoleListService.getRolesForUser(UserRoleDaoUserRoleListService.java:134) at org.pentaho.platform.plugin.services.security.userrole.ExtraRolesUserRoleListServiceDecorator.getRolesForUser(ExtraRolesUserRoleListServiceDecorator.java:113) at org.pentaho.platform.plugin.services.security.userrole.CompositeUserRoleListService$7.perform(CompositeUserRoleListService.java:113) at org.pentaho.platform.plugin.services.security.userrole.CompositeUserRoleListService.collectResultsForOperation(CompositeUserRoleListService.java:123) at org.pentaho.platform.plugin.services.security.userrole.CompositeUserRoleListService.getRolesForUser(CompositeUserRoleListService.java:111) at org.pentaho.platform.engine.security.SecurityHelper.createAuthentication(SecurityHelper.java:320) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:132) at org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:112) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:166) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:156) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction

    Pentaho BI Platform Tracking | 2 years ago | Jens Bleuel
    java.lang.IllegalStateException: StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION!

    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

      StandaloneSession.ERROR_0001 - !StandaloneSession.ERROR_0001_ACCESSING_DESTROYED_SESSION!

      at org.pentaho.platform.engine.core.system.StandaloneSession.getAttribute()
    2. org.pentaho.platform
      JcrUserRoleDao$13.doInJcr
      1. org.pentaho.platform.engine.core.system.StandaloneSession.getAttribute(StandaloneSession.java:78)
      2. org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getCurrentTenant(JcrTenantUtils.java:112)
      3. org.pentaho.platform.repository2.unified.jcr.JcrTenantUtils.getTenant(JcrTenantUtils.java:86)
      4. org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao.getJackrabbitUser(AbstractJcrBackedUserRoleDao.java:514)
      5. org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao.getUser(AbstractJcrBackedUserRoleDao.java:476)
      6. org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao$13.doInJcr(JcrUserRoleDao.java:287)
      6 frames
    3. org.springframework.extensions
      JcrTemplate.execute
      1. org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:89)
      2. org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:115)
      2 frames
    4. org.pentaho.platform
      JcrUserRoleDao.getUser
      1. org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao.getUser(JcrUserRoleDao.java:284)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    9. Unknown
      $Proxy1.getUser
      1. $Proxy1.getUser(Unknown Source)
      1 frame
    10. org.pentaho.platform
      BlockingQuartzJob.execute
      1. org.pentaho.platform.security.userroledao.service.UserRoleDaoUserDetailsService.loadUserByUsername(UserRoleDaoUserDetailsService.java:80)
      2. org.pentaho.platform.security.userroledao.service.UserRoleDaoUserRoleListService.getRolesForUser(UserRoleDaoUserRoleListService.java:107)
      3. org.pentaho.platform.plugin.services.security.userrole.ExtraRolesUserRoleListServiceDecorator.getRolesForUser(ExtraRolesUserRoleListServiceDecorator.java:96)
      4. org.pentaho.platform.engine.security.SecurityHelper.createAuthentication(SecurityHelper.java:343)
      5. org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:117)
      6. org.pentaho.platform.engine.security.SecurityHelper.becomeUser(SecurityHelper.java:94)
      7. org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:151)
      8. org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:142)
      9. org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction(ActionAdapterQuartzJob.java:195)
      10. org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:110)
      11. org.pentaho.platform.scheduler2.quartz.BlockingQuartzJob.execute(BlockingQuartzJob.java:37)
      11 frames
    11. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:199)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
      2 frames