I'm using JBoss 4.2.3 GA, with jBPM 3.2.6 GA.At first, it worked OK. When I tried to
configure the jBPM persistence, I got some errors and exceptions from the
DbPersistenceService, related to a Hibernate transaction. Here is a part of the log
2009-05-08 14:38:21,187 DEBUG [org.hibernate.hql.ast.ErrorCounter] throwQueryException() :
no errors
| 2009-05-08 14:38:21,187 DEBUG [org.hibernate.hql.ast.QueryTranslatorImpl] HQL:
|
| select pd
| from org.jbpm.graph.def.ProcessDefinition as pd
| order by pd.name, pd.version desc
|
|
| 2009-05-08 14:38:21,187 DEBUG [org.hibernate.hql.ast.QueryTranslatorImpl] SQL: select
processdef0_.ID_ as ID1_4_, processdef0_.NAME_ as NAME3_4_, processdef0_.DESCRIPTION_ as
DESCRIPT4_4_, processdef0_.VERSION_ as VERSION5_4_, processdef0_.ISTERMINATIONIMPLICIT_ as
ISTERMIN6_4_, processdef0_.STARTSTATE_ as STARTSTATE7_4_ from JBPM_PROCESSDEFINITION
processdef0_ order by processdef0_.NAME_, processdef0_.VERSION_ desc
| 2009-05-08 14:38:21,187 DEBUG [org.hibernate.hql.ast.ErrorCounter]
throwQueryException() : no errors
| 2009-05-08 14:38:21,187 DEBUG [org.hibernate.impl.SessionFactoryImpl] Checking 0 named
SQL queries
| 2009-05-08 14:38:21,187 DEBUG [org.jbpm.persistence.db.DbPersistenceService] creating
hibernate session
| 2009-05-08 14:38:21,265 DEBUG [org.hibernate.impl.SessionImpl] opened session at
timestamp: 5086459908861952
| 2009-05-08 14:38:21,265 DEBUG [org.jbpm.persistence.db.DbPersistenceService] beginning
hibernate transaction
| 2009-05-08 14:38:21,265 DEBUG [org.hibernate.transaction.JTATransaction] Looking for
UserTransaction under: UserTransaction
| 2009-05-08 14:38:21,265 DEBUG [org.hibernate.transaction.JTATransaction] Obtained
UserTransaction
| 2009-05-08 14:38:21,265 DEBUG [org.hibernate.transaction.JTATransaction] begin
| 2009-05-08 14:38:21,265 DEBUG [org.hibernate.transaction.JTATransaction] Began a new
JTA transaction
| 2009-05-08 14:38:21,281 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered
Synchronization
| 2009-05-08 14:38:21,281 DEBUG [org.jbpm.persistence.db.DbPersistenceService] begun
org.hibernate.transaction.JTATransaction@a15856
| 2009-05-08 14:38:21,281 DEBUG [org.jbpm.JbpmContext] closing jbpmContext
org.jbpm.JbpmContext@155aa19
| 2009-05-08 14:38:21,281 DEBUG [org.jbpm.svc.Services] closing service
'persistence': org.jbpm.persistence.db.DbPersistenceService@aea288
| 2009-05-08 14:38:21,281 DEBUG [org.jbpm.persistence.db.DbPersistenceService]
committing org.hibernate.transaction.JTATransaction@a15856
| 2009-05-08 14:38:21,281 DEBUG [org.hibernate.transaction.JTATransaction] commit
| 2009-05-08 14:38:21,281 DEBUG [org.hibernate.transaction.JTATransaction] Committed JTA
UserTransaction
| 2009-05-08 14:38:21,281 DEBUG [org.jbpm.persistence.db.DbPersistenceService] closing
hibernate session
| 2009-05-08 14:38:21,296 DEBUG [org.jbpm.svc.Services] closing service
'persistence': org.jbpm.persistence.db.DbPersistenceService@aea288
| 2009-05-08 14:38:21,296 DEBUG [org.jbpm.persistence.db.DbPersistenceService]
committing org.hibernate.transaction.JTATransaction@a15856
| 2009-05-08 14:38:21,296 ERROR [org.jbpm.persistence.db.DbPersistenceService]
transaction commit failed
| org.hibernate.TransactionException: Transaction not successfully started
| at org.hibernate.transaction.JTATransaction.commit(JTATransaction.java:126)
| at
org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:227)
| at
org.jbpm.persistence.db.DbPersistenceService.endTransaction(DbPersistenceService.java:132)
| at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:198)
| at org.jbpm.svc.Services.close(Services.java:243)
| at org.jbpm.JbpmContext.close(JbpmContext.java:133)
| at org.jbpm.web.BootstrapListener.contextInitialized(BootstrapListener.java:64)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
it continues for a lot of lines below....
Does someone knows why this happens?
Thanks
Alvaro
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229826#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...