NullPointerException while calling KnowledgeRuntimeAdapter.update

Solution Verified - Updated -


When following code is called:

FactHandle handle = session.getFactHandle(activeAlarmValue);
        if (handle != null) {
            session.update(handle, activeAlarmValue);            

This exception is raised:

        at org.drools.core.common.NamedEntryPoint.update(
        at org.drools.core.common.AbstractWorkingMemory.update(
        at org.drools.core.common.AbstractWorkingMemory.update(
        at org.drools.core.impl.StatefulKnowledgeSessionImpl.update(
        at org.drools.impl.adapters.KnowledgeRuntimeAdapter.update(

The same code was working fine in the Drools 5, the exception started only after migration to BPM 6.x


  • 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content