jbpm计时器任务调用时发生错误

时间:2016-06-01 13:41:31

标签: jbpm

我的jBPM 6.3工作流程中有一个用户计时器任务。当发生计时器任务时,我收到以下错误:

  

错误2016-06-01 17:35:53
  org.hibernate.engine.jdbc.spi.SqlExceptionHelper:146 -
  获取JdbcConnectionHandle的错误
  一个JdbcPooledConnection的   来自datasource jdbc / PostgresDS
  在州可达到的   使用计数1包装JDBC LrcXAConnection
  on org.postgresql.jdbc4.Jdbc4Connection@4baf9c1
  在JDBC LrcConnectionHandle上   处于状态NO_TX的JDBC LrcXAResource

我的工作流程似乎是

enter image description here

我的persistence.xml是:

    <persistence-unit name="dms-jbpm" transaction-type="RESOURCE_LOCAL">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>

    <mapping-file>META-INF/JBPMorm.xml</mapping-file>
    <mapping-file>META-INF/Taskorm.xml</mapping-file>
    <mapping-file>META-INF/TaskAuditorm.xml</mapping-file>

    <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
    <class>org.drools.persistence.info.SessionInfo</class>
    <class>org.drools.persistence.info.WorkItemInfo</class>
    <class>org.jbpm.process.audit.ProcessInstanceLog</class>
    <class>org.jbpm.process.audit.NodeInstanceLog</class>
    <class>org.jbpm.process.audit.VariableInstanceLog</class>
    <class>org.jbpm.persistence.correlation.CorrelationKeyInfo</class>
    <class>org.jbpm.persistence.correlation.CorrelationPropertyInfo</class>
    <class>org.jbpm.runtime.manager.impl.jpa.ContextMappingInfo</class>
    <class>org.jbpm.services.task.impl.model.AttachmentImpl</class>
    <class>org.jbpm.services.task.impl.model.ContentImpl</class>
    <class>org.jbpm.services.task.impl.model.BooleanExpressionImpl</class>
    <class>org.jbpm.services.task.impl.model.CommentImpl</class>
    <class>org.jbpm.services.task.impl.model.DeadlineImpl</class>
    <class>org.jbpm.services.task.impl.model.DelegationImpl</class>
    <class>org.jbpm.services.task.impl.model.EscalationImpl</class>
    <class>org.jbpm.services.task.impl.model.GroupImpl</class>
    <class>org.jbpm.services.task.impl.model.I18NTextImpl</class>
    <class>org.jbpm.services.task.impl.model.NotificationImpl</class>
    <class>org.jbpm.services.task.impl.model.EmailNotificationImpl</class>
    <class>org.jbpm.services.task.impl.model.EmailNotificationHeaderImpl</class>
    <class>org.jbpm.services.task.impl.model.PeopleAssignmentsImpl</class>
    <class>org.jbpm.services.task.impl.model.ReassignmentImpl</class>
    <class>org.jbpm.services.task.impl.model.TaskImpl</class>
    <class>org.jbpm.services.task.impl.model.TaskDataImpl</class>
    <class>org.jbpm.services.task.impl.model.UserImpl</class>
    <class>org.jbpm.services.task.audit.impl.model.BAMTaskSummaryImpl</class>
    <class>org.jbpm.services.task.audit.impl.model.TaskEventImpl</class>
    <class>org.jbpm.services.task.audit.impl.model.AuditTaskImpl</class>
    <properties>
        <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.BitronixJtaPlatform" />
    </properties>
</persistence-unit>

我无法理解我做错了什么。

1 个答案:

答案 0 :(得分:1)

我可以看到,jBPM核心引擎使用JTA进行持久化,你应该在persistence.xml中使用它(而不是resource_local)。不确定这是否是唯一的问题......