Hi:

   Please forgive me for my poor English.I have some questions about jbpm deadlock,and Idon’t have a clue how to solve this problem.I would appreciate any suggestions from you guys. Thank you very much.

   Error log:

   org.hibernate.exception.GenericJDBCException: could not initialize a collection: [org.jbpm.pvm.internal.model.ExecutionImpl.variables#34030109]

         at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)

         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)

         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)

         at org.hibernate.loader.Loader.loadCollection(Loader.java:2001)

         at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)

         at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:565)

         at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:63)

         at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1716)

         at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)

         at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)

         at org.hibernate.collection.PersistentMap.values(PersistentMap.java:234)

         at org.hibernate.type.MapType.getElementsIterator(MapType.java:39)

         at org.hibernate.type.CollectionType.getElementsIterator(CollectionType.java:202)

         at org.hibernate.engine.CascadingAction.getAllElementsIterator(CascadingAction.java:415)

         at org.hibernate.engine.CascadingAction.access$100(CascadingAction.java:27)

         at org.hibernate.engine.CascadingAction$1.getCascadableChildrenIterator(CascadingAction.java:125)

         at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:294)

         at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)

         at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)

         at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)

         at org.hibernate.engine.Cascade.cascade(Cascade.java:130)

         at org.hibernate.event.def.DefaultDeleteEventListener.cascadeBeforeDelete(DefaultDeleteEventListener.java:307)

         at org.hibernate.event.def.DefaultDeleteEventListener.deleteEntity(DefaultDeleteEventListener.java:246)

         at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:141)

         at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:52)

         at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:766)

         at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:744)

         at org.jbpm.pvm.internal.hibernate.DbSessionImpl.deleteProcessInstance(DbSessionImpl.java:242)

         at org.jbpm.pvm.internal.model.ExecutionImpl.end(ExecutionImpl.java:392)

         at org.jbpm.pvm.internal.model.ExecutionImpl.end(ExecutionImpl.java:331)

         at org.jbpm.jpdl.internal.activity.EndActivity.execute(EndActivity.java:79)

         at org.jbpm.jpdl.internal.activity.EndActivity.execute(EndActivity.java:43)

         at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:56)

         at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:678)

         at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:638)

         at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:433)

         at org.jbpm.pvm.internal.cmd.SignalCmd.execute(SignalCmd.java:61)

         at org.jbpm.pvm.internal.cmd.SignalCmd.execute(SignalCmd.java:35)

         at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)

         at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)

         at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)

         at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:49)

         at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)

         at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)

         at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)

         at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.signalExecutionById(ExecutionServiceImpl.java:95)