NullPointerException while calling KnowledgeRuntimeAdapter.update

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.