Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-138

LazyInitializationException when getting process variables which extends VariableEntity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.GA
    • 6.x.x
    • jBPM Core, Kie-Server
    • None
    • 2017 Week 40-41-42

    Description

      When KJAR is configured with pluggable persistence (i.e. JPAPlaceholderResolverStrategy) and there are hibernate Entities in the project which extends org.drools.persistence.jpa.marshaller.VariableEntity, the marshalling fails when I try to obtain the list of process variables via kie-server-client (getProcessInstanceVariables method)

      This can be solved by adding following configuration into persistence.xml of the KJAR:

                  <property name="hibernate.enable_lazy_load_no_trans" value="true"/>
      

      But more suitable solution would be the code change in the server side, so the MappedVariables set would be eagerly loaded.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              rhn-support-agiertli Anton Giertli
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: