SessionNotFoundException thrown from Timer after process migration in BPM Suite

Solution Verified - Updated -

Issue

  • I get SessionNotFoundException from Timer. The process instance was migrated by ProcessAdminServicesClient.

PerProcessInstanceRuntimeManager:

java.lang.RuntimeException: org.kie.internal.runtime.manager.SessionNotFoundException: No session found for context 1111
    at org.jbpm.process.core.timer.impl.GlobalTimerService.getCommandService(GlobalTimerService.java:247)
    at org.jbpm.process.core.timer.impl.GlobalTimerService.getCommandService(GlobalTimerService.java:208)
    at org.jbpm.persistence.timer.GlobalJpaTimerJobInstance.call(GlobalJpaTimerJobInstance.java:75)
    at org.jbpm.persistence.timer.GlobalJpaTimerJobInstance.call(GlobalJpaTimerJobInstance.java:47)
    at org.jbpm.process.core.timer.impl.QuartzSchedulerService$QuartzJob.execute(QuartzSchedulerService.java:335)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
 Caused by: org.kie.internal.runtime.manager.SessionNotFoundException: No session found for context 1111
    at org.jbpm.runtime.manager.impl.PerProcessInstanceRuntimeManager$PerProcessInstanceInitializer.initKieSession(PerProcessInstanceRuntimeManager.java:540)
    at org.jbpm.runtime.manager.impl.RuntimeEngineImpl.getKieSession(RuntimeEngineImpl.java:70)
    at org.jbpm.process.core.timer.impl.GlobalTimerService.getCommandService(GlobalTimerService.java:233)
    ... 6 more

SingletonRuntimeManager:

17:37:04,477 ERROR [stderr] (EJB default - 3) java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalStateException: Process instance 9 is owned by another deployment org.redhat.gss:TimerProject:1.0.1 != org.redhat.gss:TimerProject:1.0.0
17:37:04,477 ERROR [stderr] (EJB default - 3)   at org.drools.persistence.jpa.JDKCallableJobCommand.execute(JDKCallableJobCommand.java:37)
17:37:04,477 ERROR [stderr] (EJB default - 3)   at org.drools.persistence.jpa.JDKCallableJobCommand.execute(JDKCallableJobCommand.java:21)
17:37:04,478 ERROR [stderr] (EJB default - 3)   at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
17:37:04,478 ERROR [stderr] (EJB default - 3)   at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
17:37:04,478 ERROR [stderr] (EJB default - 3)   at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:604)
17:37:04,478 ERROR [stderr] (EJB default - 3)   at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
17:37:04,478 ERROR [stderr] (EJB default - 3)   at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82)
17:37:04,479 ERROR [stderr] (EJB default - 3)   at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
17:37:04,479 ERROR [stderr] (EJB default - 3)   at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73)
17:37:04,479 ERROR [stderr] (EJB default - 3)   at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:397)
17:37:04,479 ERROR [stderr] (EJB default - 3)   at org.jbpm.process.core.timer.impl.GlobalTimerService$DisposableCommandService.execute(GlobalTimerService.java:331)
17:37:04,479 ERROR [stderr] (EJB default - 3)   at org.jbpm.persistence.timer.GlobalJpaTimerJobInstance.call(GlobalJpaTimerJobInstance.java:77)
17:37:04,480 ERROR [stderr] (EJB default - 3)   at org.jbpm.persistence.timer.GlobalJpaTimerJobInstance.call(GlobalJpaTimerJobInstance.java:47)
17:37:04,480 ERROR [stderr] (EJB default - 3)   at org.jbpm.services.ejb.timer.EJBTimerScheduler.executeTimerJob(EJBTimerScheduler.java:84)

Environment

  • Red Hat JBoss BPM Suite
    • 6.4.4
    • 6.4.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In