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

    Details

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tsurdilovic Tihomir Surdilovic
                  Reporter:
                  anton.giertli Anton Giertli
                  Tester:
                  Marian Macik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: