Red Hat Bugzilla – Bug 971376
Task query fails on PostgreSQL due to: Large Objects may not be used in auto-commit mode.
Last modified: 2013-11-01 07:42:24 EDT
Created attachment 757627 [details]
Task query fails on PostgreSQL due to: org.postgresql.util.PSQLException: Large Objects may not be used in auto-commit mode. Problematic method call in my code:
List<TaskSummary> list = taskService.getTasksAssignedAsPotentialOwner(actorId, "en-UK");
Server log attached.
See the steps here: https://github.com/jsvitak/jbpm-6-examples/tree/master/rewards-basic
So just clone the repo, follow the steps in readme.md and configure EAP to use PostgreSQL datasource. Also change the hibernate.dialect in file
The process starts correctly, but I was unable to list John's tasks. This operation works on MySQL without problems. It's possible that other problems may follow when approving tasks on PostgreSQL.
JBoss EAP 6.1.0
jBPM 6.0.0.Beta3 (it should be the same as DR5)
After some investigation together with Maciej there is a solution to this issue. The reported method call was not closed inside transaction and PostgreSQL is sensitive database to correct transaction handling. After putting query call inside transaction everything works.
Closing the bugzilla as this is not a real jBPM issue.
If we don't support PostgreSQL, then this is not a bug... If we do support PostgreSQL, then I'm curious as to why this is not a bug?
We do support PostgresSQL and I'm curious too. Maciej, Jiri would you be so kind to explain? :)
first of all that was quite some time ago when we closed this as not a bug and indeed it was just misconfiguration in usage rather then actual a bug in jbpm. Since that time we have enhanced handling of human tasks in terms of transactions and all operations on TaskService interface are by default transactional - if no transaction is already in progress new one will be started on TaskService level. Hope that helps