Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-6474

LazyInitializationException when getting process variables which extends VariableEntity

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • None
    • None
    • None
    • 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-tsurdilo Tihomir Surdilovic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: