Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- Problem deleting a process containing a subProcess

- Problem deleting a process containing a subProcess

2007-07-19       - By dd974

 Back
Hi,

I'm using JBPM 3.1.2 and I have a process containing 1 sub process.
When my processInstance has finished , I've put


 |  graphSession.deleteProcessInstance(processInstance.getId());
 |

But I have the error following :

anonymous wrote :
 | 12:45:18,408 ERROR [TaskThread] The process throws exception on close:
 | 12:45:18,408 INFO  [STDOUT] org.jbpm.JbpmException: problem closing
services {persistence=org.jbpm.persistence.JbpmPersistenceException: couldn't
commit hibernate session}
 | 12:45:18,408 INFO  [STDOUT]   at org.jbpm.svc.Services.close(Services.java
:223)
 | 12:45:18,408 INFO  [STDOUT]   at org.jbpm.JbpmContext.close(JbpmContext.java
:139)
 | 12:45:18,408 INFO  [STDOUT]   at com.editag.web.business.bean.TaskThread.run
(TaskThread.java:112)
 | 12:45:18,408 INFO  [STDOUT] Caused by: org.jbpm.persistence
.JbpmPersistenceException: couldn't commit hibernate session
 | 12:45:18,408 INFO  [STDOUT]   at org.jbpm.persistence.db
.DbPersistenceService.close(DbPersistenceService.java:172)
 | 12:45:18,408 INFO  [STDOUT]   at org.jbpm.svc.Services.close(Services.java
:211)
 | 12:45:18,408 INFO  [STDOUT]   ... 2 more
 | 12:45:18,408 INFO  [STDOUT] Caused by: org.hibernate.exception
.ConstraintViolationException: could not delete: [org.jbpm.graph.exe.Token#2355]
 | 12:45:18,408 INFO  [STDOUT]   at org.hibernate.exception.SQLStateConverter Source code of org.hibernate.exception.SQLStateConverter
.convert(SQLStateConverter.java:69)
 | 12:45:18,408 INFO  [STDOUT]   at org.hibernate.exception.JDBCExceptionHelper Source code of org.hibernate.exception.JDBCExceptionHelper
.convert(JDBCExceptionHelper.java:43)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.persister.entity
.AbstractEntityPersister.delete(AbstractEntityPersister.java:2307)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.persister.entity
.AbstractEntityPersister.delete(AbstractEntityPersister.java:2439)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.action.EntityDeleteAction Source code of org.hibernate.action.EntityDeleteAction
.execute(EntityDeleteAction.java:65)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.engine.ActionQueue Source code of org.hibernate.engine.ActionQueue
(ActionQueue.java:243)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.engine.ActionQueue Source code of org.hibernate.engine.ActionQueue
.executeActions(ActionQueue.java:227)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.engine.ActionQueue Source code of org.hibernate.engine.ActionQueue
.executeActions(ActionQueue.java:145)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.event.def
.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener
.java:296)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.event.def
.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.impl.SessionImpl Source code of org.hibernate.impl.SessionImpl
(SessionImpl.java:905)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.impl.SessionImpl Source code of org.hibernate.impl.SessionImpl
(SessionImpl.java:345)
 | 12:45:18,428 INFO  [STDOUT]   at org.hibernate.transaction.JDBCTransaction Source code of org.hibernate.transaction.JDBCTransaction
.commit(JDBCTransaction.java:106)
 | 12:45:18,428 INFO  [STDOUT]   at org.jbpm.persistence.db
.DbPersistenceService.close(DbPersistenceService.java:162)
 | 12:45:18,428 INFO  [STDOUT]   ... 3 more
 | 12:45:18,428 INFO  [STDOUT] Caused by: java.sql.SQLException Source code of java.sql.SQLException: Integrity
constraint violation FK_PROCIN_SPROCTKN table: JBPM_PROCESSINSTANCE in
statement [delete from JBPM_TOKEN where ID_=? and VERSION_=?]
 | 12:45:18,428 INFO  [STDOUT]   at org.hsqldb.jdbc.Util.throwError(Unknown
Source)
 | 12:45:18,428 INFO  [STDOUT]   at org.hsqldb.jdbc.jdbcPreparedStatement
.executeUpdate(Unknown Source)
 | 12:45:18,438 INFO  [STDOUT]   at org.jboss.resource.adapter.jdbc
.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:227)
 | 12:45:18,438 INFO  [STDOUT]   at org.hibernate.persister.entity
.AbstractEntityPersister.delete(AbstractEntityPersister.java:2293)
 | 12:45:18,438 INFO  [STDOUT]   ... 14 more
 |

I've found answers to my question for more recently versions but I can't change
my version. Can someone help me ?

Thank you.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4065721#4065721

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4065721
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.