LazyInitializationException when getting process variables which extends VariableEntity

Solution Verified - Updated -

Issue

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)

LazyInitializationException is thrown.

Environment

  • Red Hat JBoss BPM Suite
    • 6.4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content