NullPointerException while calling KnowledgeRuntimeAdapter.update
Issue
When following code is called:
FactHandle handle = session.getFactHandle(activeAlarmValue);
if (handle != null) {
session.update(handle, activeAlarmValue);
}
This exception is raised:
org.drools.core.common.NamedEntryPoint.update(NamedEntryPoint.java:419)
at org.drools.core.common.NamedEntryPoint.update(NamedEntryPoint.java:397)
at org.drools.core.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1221)
at org.drools.core.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1190)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.update(StatefulKnowledgeSessionImpl.java:326)
at org.drools.impl.adapters.KnowledgeRuntimeAdapter.update(KnowledgeRuntimeAdapter.java:247)
The same code was working fine in the Drools 5, the exception started only after migration to BPM 6.x
Environment
- Red Hat JBoss BRMS
- 6.0.x
- Red Hat JBoss BPM Suite
- 6.0.x
- Legacy API
- knowledge-api-6.0.x-redhat-x.jar
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.