Skip to content

Unexpected "Illegal method call. This session was previously disposed." in Drools v10.1.0ย #6579

@jarlesat

Description

@jarlesat

I can't see that this has been reported. When running a process defined in a bpmn file, and that file includes a node of type reusable subprocess, that in turn run another process in another bpmn file, it fails immediately with a java.lang.IllegalStateException: Illegal method call. This session was previously disposed.

This is introduced in v10.1.0, and does not happen in v10.0.0 (nor in earlier version neither). As far as I can tell this is introduced in a commit, 5810447b0cbb20e036a9a6f3fec07faa929f2231, that has one single change in the code that disposes the kieSession as the last activity in RuleFlowGroupRuleTypeEngineImpl::evaluate. The comment says "Dispose KieSession after rules execution when using ruleFlowGroup (#3678)", but that can seems to not be a intended behaviour? But I may of cource have missed something :-)

I have included a minimal maven project as a zip file that demonstrates it.

sample.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ๐Ÿ“‹ Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions