Aadav N [
https://community.jboss.org/people/aadav86] created the discussion
"Re: Task notifications in jBPM 5.3"
To view the discussion, visit:
https://community.jboss.org/message/830810#830810
--------------------------------------------------------------
Hi Maciejs,
So now the deadlines are created at the database end. And at the scheduled time when the
services are attempting to run we get an exception like this.
2013-07-30 20:13:13,823 ERROR [org.jbpm.task.service.persistence.TaskPersistenceManager]
(pool-20-thread-1) Unable to rollback transaction (or to mark as 'to rollback')!
java.lang.NullPointerException
at
org.drools.persistence.jta.JtaTransactionManager.getStatus(JtaTransactionManager.java:205)
at
org.jbpm.task.service.persistence.TaskJTATransactionManager.rollback(TaskJTATransactionManager.java:51)
at
org.jbpm.task.service.persistence.TaskPersistenceManager.rollBackTransaction(TaskPersistenceManager.java:97)
at
org.jbpm.task.service.TaskServiceSession.executeEscalatedDeadline(TaskServiceSession.java:1055)
at
org.jbpm.task.service.TaskService.executeEscalatedDeadline(TaskService.java:221)
at
org.jbpm.task.service.TaskService$ScheduledTaskDeadline.call(TaskService.java:359)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
2013-07-30 20:13:13,823 ERROR [org.jbpm.task.service.TaskService] (pool-20-thread-1) Could
not start transaction.
java.lang.RuntimeException: Could not start transaction.
at
org.jbpm.task.service.TaskServiceSession.executeEscalatedDeadline(TaskServiceSession.java:1062)
at
org.jbpm.task.service.TaskService.executeEscalatedDeadline(TaskService.java:221)
at
org.jbpm.task.service.TaskService$ScheduledTaskDeadline.call(TaskService.java:359)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at
org.drools.persistence.jta.JtaTransactionManager.getStatus(JtaTransactionManager.java:205)
at
org.jbpm.task.service.persistence.TaskJTATransactionManager.getStatus(TaskJTATransactionManager.java:63)
at
org.jbpm.task.service.persistence.TaskJTATransactionManager.begin(TaskJTATransactionManager.java:36)
at
org.jbpm.task.service.persistence.TaskPersistenceManager.beginTransaction(TaskPersistenceManager.java:79)
at
org.jbpm.task.service.TaskServiceSession.executeEscalatedDeadline(TaskServiceSession.java:1036)
... 9 more
2013-07-30 20:13:14,204 ERROR [org.jbpm.task.service.persistence.TaskPersistenceManager]
(pool-21-thread-1) Unable to rollback transaction (or to mark as 'to rollback')!
java.lang.NullPointerException
at
org.drools.persistence.jta.JtaTransactionManager.getStatus(JtaTransactionManager.java:205)
at
org.jbpm.task.service.persistence.TaskJTATransactionManager.rollback(TaskJTATransactionManager.java:51)
at
org.jbpm.task.service.persistence.TaskPersistenceManager.rollBackTransaction(TaskPersistenceManager.java:97)
at
org.jbpm.task.service.TaskServiceSession.executeEscalatedDeadline(TaskServiceSession.java:1055)
at
org.jbpm.task.service.TaskService.executeEscalatedDeadline(TaskService.java:221)
at
org.jbpm.task.service.TaskService$ScheduledTaskDeadline.call(TaskService.java:359)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
2013-07-30 20:13:14,204 ERROR [org.jbpm.task.service.TaskService] (pool-21-thread-1) Could
not start transaction.
java.lang.RuntimeException: Could not start transaction.
at
org.jbpm.task.service.TaskServiceSession.executeEscalatedDeadline(TaskServiceSession.java:1062)
at
org.jbpm.task.service.TaskService.executeEscalatedDeadline(TaskService.java:221)
at
org.jbpm.task.service.TaskService$ScheduledTaskDeadline.call(TaskService.java:359)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at
org.drools.persistence.jta.JtaTransactionManager.getStatus(JtaTransactionManager.java:205)
at
org.jbpm.task.service.persistence.TaskJTATransactionManager.getStatus(TaskJTATransactionManager.java:63)
at
org.jbpm.task.service.persistence.TaskJTATransactionManager.begin(TaskJTATransactionManager.java:36)
at
org.jbpm.task.service.persistence.TaskPersistenceManager.beginTransaction(TaskPersistenceManager.java:79)
at
org.jbpm.task.service.TaskServiceSession.executeEscalatedDeadline(TaskServiceSession.java:1036)
... 9 more
FYI, for now to make this piece work I'm just using DefaultEscalatedDeadlineHandler
only. Not extending any custom handler. can you please let me know what am I missing here
Thanks,
Aadav
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/830810#830810]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]