Process creation suddenly fails with 'Unknown process ID' error
Issue
We are using BRMS to execute jBPM processes. This is working without issues for some time, but suddenly the creation of a new process instance fails with the following error:
14:26:33,870 ERROR [SingleSessionCommandService] Could not commit session
java.lang.IllegalArgumentException: Unknown process ID: defaultPackage.helloTask
at org.jbpm.process.instance.ProcessRuntimeImpl.createProcessInstance(ProcessRuntimeImpl.java:153)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:136)
at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1075)
at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:322)
at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:119)
at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:38)
at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:365)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:229)
It seems that the singleton knowledgesession has lost references to all existing processes. The only way to recover from this state is to restart the server.
Environment
- Red Hat JBoss BRMS
- 5.3.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
