[JBoss jBPM] - Problem deleting a process containing a subProcess
by dd974
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.convert(SQLStateConverter.java:69)
| 12:45:18,408 INFO [STDOUT] at 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.execute(EntityDeleteAction.java:65)
| 12:45:18,428 INFO [STDOUT] at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
| 12:45:18,428 INFO [STDOUT] at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
| 12:45:18,428 INFO [STDOUT] at 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.flush(SessionImpl.java:905)
| 12:45:18,428 INFO [STDOUT] at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:345)
| 12:45:18,428 INFO [STDOUT] at 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: 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
18Â years, 11Â months
[JBossCache] - Re: Could this be deadlock when modifying TreeCache
by manik.surtaniï¼ jboss.com
"ramdas" wrote :
| Was wondering since i am unable to capture the stats using JMX, was there a way to set a particular log level on the jgroups package without hurting the performance of the existing system. Currently the app does not have any logging enabled for the jgroups category. Was hoping to get some information via logging on the status of the jgroups workings as these threads block.
| Since all the appservers in our cluster are behaving very similarly, was wondering why FC had to block to syn up senders with receivers. Something here does not sound right.
|
The problem with logging is that it does add a lot of noise to a live system.
So you create your cache instance using a singleton, presumably using new TreeCache() ?
One approach may be:
1) construct and start the JGroups channel first
2) then bind the channel to JMX programmatically - see http://wiki.jboss.org/wiki/Wiki.jsp?page=JMX
3) then construct the cache using the channel - new TreeCache(myChannel);
And then you should see JGroups stats in your jmx-console.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065715#4065715
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065715
18Â years, 11Â months
[Installation, Configuration & DEPLOYMENT] - Problem in configuring log4j in Jboss
by inderjeet
Hi All,
I am trying to set up a logger for my web application. I have Jboss 4.0.4 installed on my machine. I am using 'default' configuration of the JBoss server. I have added the follwoing code in my log4j.xml placed at /server/default/conf folder.
| <appender name="WIMAX_LOGS" class="org.apache.log4j.DailyRollingFileAppender">
| <param name="File" value="${jboss.server.home.dir}/log/ppas.log" />
| <param name="Append" value="true" />
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="[%5p] %d{dd MMM HH:mm:ss,SSS} - %m%n" />
| </layout>
| </appender>
|
| <category name="ppaslogs" additivity="false">
| <priority value="INFO" />
| <appender-ref ref="WIMAX_LOGS" />
| </category>
|
After doing this, i restarted the Jboss server and deployed my application on Jboss. When i run my application, the log file gets created but no messages are written to it. However all those messages appear in the 'server.log' frile of the Jboss.
Can someone tell that what could be the reason for this??
Thanks & Regards
Inder Jeet Singh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065714#4065714
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065714
18Â years, 11Â months