IBM Support

RS03246: NULLPOINTEREXECEPTION IS THROWN BECAUSE THE DEFINITION PART OF THE RULE IS NOT EXECUTED BEFORE THE CONDITION PART

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • NullPointerExeception is thrown because the definition part of
    the rule is not executed before the condition part
    
    Exception seen in Rule Designer log:
    
    java.lang.NullPointerException
        in the conditions of rule 'xyz_rule_name', at offset
    292, longueur 469
    Caused by: java.lang.NullPointerException
        at xyz_rule(BOM_class_name.java:1963)
        at
    com.ibm.rules.generated.ruleflow.RF_000_Controler$003ecf_general
    .CondExecEnv.test577(Unknown Source)
        at
    com.ibm.rules.generated.ruleflow.RF_000_Controler$003ecf_general
    .CondExecEnv.$sMethod$39(Unknown Source)
        at
    com.ibm.rules.generated.ruleflow.RF_000_Controler$003ecf_general
    .CondExecEnv.$sMethod$34(Unknown Source)
        at
    com.ibm.rules.generated.ruleflow.RF_000_Controler$003ecf_general
    .CondExecEnv.evaluateBooleanMethodHook(Unknown Source)
        at
    com.ibm.rules.engine.rete.runtime.state.AbstractConditionExecEnv
    .evaluateBooleanMethod(AbstractConditionExecEnv.java:63)
        at
    com.ibm.rules.engine.rete.runtime.network.impl.IlrAbstractGenera
    torDiscNode.evaluateGeneratorTest(IlrAbstractGeneratorDiscNode.j
    ava:134)
        at
    com.ibm.rules.engine.rete.runtime.network.impl.IlrAbstractGenera
    torDiscNode.initMemory(IlrAbstractGeneratorDiscNode.java:168)
        at
    com.ibm.rules.engine.rete.runtime.network.impl.IlrAbstractGenera
    torDiscNode.activate(IlrAbstractGeneratorDiscNode.java:92)
        at
    com.ibm.rules.engine.rete.runtime.network.impl.IlrAbstractJoinNo
    de.activate(IlrAbstractJoinNode.java:166)
        at
    com.ibm.rules.engine.rete.runtime.network.impl.IlrAbstractGenera
    torJoinNode.activate(IlrAbstractGeneratorJoinNode.java:76)
        at
    com.ibm.rules.engine.rete.runtime.network.impl.IlrDynamicRuleAct
    ionNode.activate(IlrDynamicRuleActionNode.java:236)
        at
    com.ibm.rules.engine.rete.runtime.network.impl.IlrStandardNetwor
    k.activateRulesGeneralGroup(IlrStandardNetwork.java:168)
        at
    com.ibm.rules.engine.rete.runtime.network.impl.IlrStandardNetwor
    k.activateRules(IlrStandardNetwork.java:139)
        at
    com.ibm.rules.engine.rete.runtime.AbstractReteEngine.transiteHar
    dToOngoingState(AbstractReteEngine.java:480)
        at
    com.ibm.rules.engine.rete.runtime.AbstractReteEngine.execute(Abs
    tractReteEngine.java:425)
        at
    com.ibm.rules.engine.rete.runtime.AbstractReteEngine.execute(Abs
    tractReteEngine.java:407)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users writing rules in Rule Designer                         *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When executing a rule, a condition might execute even if the *
    * object it requires is null.                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • The code was fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    RS03246

  • Reported component name

    WDS FOR RULES

  • Reported component ID

    5725B6903

  • Reported release

    881

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-11-27

  • Closed date

    2018-11-30

  • Last modified date

    2018-11-30

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WDS FOR RULES

  • Fixed component ID

    5725B6903

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSQP76","label":"IBM Operational Decision Manager"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"881","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
23 July 2021