-
Bug
-
Resolution: Done
-
Major
-
jBPM 6.1.0.Beta3
-
None
org.jbpm.runtime.manager.impl.jpa.ContextMappingInfo contains an HQL query named "FindKSessionToInit". Such query joins ContextMappingInfo with ProcessInstanceInfo on cmInfo.contextId = processInstanceInfo.processInstanceId. However, cmInfo.contextId is declared as a string while processInstanceInfo.processInstanceId is declared as a long so there is a mismatch in the types of the two columns created in the database.
When the runtime engine is created with JPA support, the "FindKSessionToInit" is run and it produces the following error:
org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = bigint