[JBoss JIRA] Created: (JBPM-2303) Exception with a process containing a fork/join
by Alexis Seigneurin (JIRA)
Exception with a process containing a fork/join
-----------------------------------------------
Key: JBPM-2303
URL: https://jira.jboss.org/jira/browse/JBPM-2303
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: jBPM 4.0.0.Beta2
Environment: Tested with 4.0.0.Beta2 and 4.0-SNAPSHOT from SVN.
Reporter: Alexis Seigneurin
I have a process which contains a "fork" to 3 tasks. 2 of these tasks lead to a "join". I follow the first transition to the join without problem. Then, when I follow the second transition, i get an exception.
I will attach the source code and the process definition.
2009-06-02 13:37:40,634 DEBUG [org.hibernate.SQL] - <
delete
from
JBPM4_EXECUTION
where
DBID_=?
and DBVERSION_=?>
2009-06-02 13:37:40,649 WARN [org.hibernate.util.JDBCExceptionReporter] - <SQL Error: 0, SQLState: 23503>
2009-06-02 13:37:40,649 ERROR [org.hibernate.util.JDBCExceptionReporter] - <ERROR: update or delete on "jbpm4_execution" violates foreign key constraint "fk_exec_instance" on "jbpm4_execution"
Détail : Key (dbid_)=(105) is still referenced from table "jbpm4_execution".>
2009-06-02 13:37:40,649 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] - <Could not synchronize database state with session>
org.hibernate.exception.ConstraintViolationException: could not delete: [org.jbpm.jpdl.internal.model.JpdlExecution#105]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2569)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2725)
at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:97)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:172)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
at org.jbpm.pvm.internal.tx.HibernateSessionResource.prepare(HibernateSessionResource.java:54)
at org.jbpm.pvm.internal.tx.StandardTransaction.commit(StandardTransaction.java:106)
at org.jbpm.pvm.internal.tx.StandardTransaction.complete(StandardTransaction.java:65)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:61)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.TaskServiceImpl.completeTask(TaskServiceImpl.java:68)
at fr.idm.Bug.main(Bug.java:41)
Caused by: org.postgresql.util.PSQLException: ERROR: update or delete on "jbpm4_execution" violates foreign key constraint "fk_exec_instance" on "jbpm4_execution"
Détail : Key (dbid_)=(105) is still referenced from table "jbpm4_execution".
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1608)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1343)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:194)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:304)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2551)
... 16 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[JBoss JIRA] Created: (JBPM-2355) Unable to retrieve suspended process defintions
by Heiko Braun (JIRA)
Unable to retrieve suspended process defintions
-----------------------------------------------
Key: JBPM-2355
URL: https://jira.jboss.org/jira/browse/JBPM-2355
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Runtime Engine
Reporter: Heiko Braun
Assignee: Tom Baeyens
Priority: Blocker
Fix For: jBPM 4.0
this invocation
// suspended processes
ProcessDefinitionQuery pdQuery2 = repositoryService.createProcessDefinitionQuery();
pdQuery2.deploymentDbid(dpl.getDbid());
pdQuery2.suspended();
List<ProcessDefinition> suspendedPds = pdQuery2.list();
leads to
Caused by: org.jbpm.api.JbpmException: deployment 3 is suspended
at org.jbpm.pvm.internal.repository.RepositorySessionImpl.getObject(RepositorySessionImpl.java:131)
at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(ProcessDefinitionQueryImpl.java:72)
at org.jbpm.pvm.internal.query.AbstractQuery.execute(AbstractQuery.java:80)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.executeInExistingTx(JtaTransactionInterceptor.java:65)
at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:51)
at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.executeWithoutRetry(JtaRetryInterceptor.java:56)
at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:48)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(AbstractQuery.java:61)
at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.list(ProcessDefinitionQueryImpl.java:139)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[JBoss JIRA] Created: (JBPM-2339) Complete JTA transaction refactoring
by Bernd Ruecker (JIRA)
Complete JTA transaction refactoring
------------------------------------
Key: JBPM-2339
URL: https://jira.jboss.org/jira/browse/JBPM-2339
Project: JBoss jBPM
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: Bernd Ruecker
Assignee: Tom Baeyens
Priority: Critical
Fix For: jBPM 4.0
After the JTA refactoring there are two problems left which have to be fixed.
1.) The JtaTransactionInterceptor should work even if there is already running JTA transaction. Currently a exception is thrown that there is a transaciton ACTIVE. Instead of that it should just use it and do not create a own one.
2.) Suspending the transaction shouldn't be done in JtaTransactionInterceptor like it is done at the moment. The use case is to support nested transactions for the job executor (where it decrements the counter and maybe stores exceptions). The necessary code should be placed in the JobExecutor (so it should use Transaction.suspend directly), so it is at the right place. The current implementation with suspending every COMMITTED transaction it finds in the JtaTransactionInterceptor is hacky.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[JBoss JIRA] Created: (JBPM-2340) TaskService getTaskComments throws NullPointerException if the task is not found
by Flavio Donzé (JIRA)
TaskService getTaskComments throws NullPointerException if the task is not found
--------------------------------------------------------------------------------
Key: JBPM-2340
URL: https://jira.jboss.org/jira/browse/JBPM-2340
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.0.CR1
Reporter: Flavio Donzé
taskService.getTaskComments(-1);
Throws a NullPointerException, instead of returning null or an empty list.
java.lang.NullPointerException
at org.jbpm.pvm.internal.cmd.GetTaskCommentsCmd.execute(GetTaskCommentsCmd.java:50)
at org.jbpm.pvm.internal.cmd.GetTaskCommentsCmd.execute(GetTaskCommentsCmd.java:37)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.TaskServiceImpl.getTaskComments(TaskServiceImpl.java:123)
GetTaskCommentsCmd.java
public List<Comment> execute(Environment environment) throws Exception {
DbSession dbSession = environment.get(DbSession.class);
TaskImpl task = dbSession.get(TaskImpl.class, taskDbid);
List<Comment> comments = task.getComments();
forceInitializationAndClean(comments);
return comments;
}
"task" is null since it's not found.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months