IBM Support

RS01916: CLASSCASTEXCEPTION WHEN DEBUGGING A DECISION ENGINE RULESET

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following exception is thrown when debugging a ruleset
    using a function with an expression such as
    for (int i = 0 ; i< 10 ; i++ )
    Error while executing ruleset: com.ibm.rules.engine.util.
    FunctionLocation incompatible with com.ibm.rules.engine.util.
    VariableLocation
    java.lang.ClassCastException: com.ibm.rules.engine.util.
    FunctionLocation incompatible with com.ibm.rules.engine.util.
    VariableLocation
        at com.ibm.rules.engine.ruleflow.runtime.
    AbstractDebugRuleflowEngineNotifier.notifyVariableAssignment(
    AbstractDebugRuleflowEngineNotifier.java:186)
        at com.ibm.rules.generated.EngineDataClass.f1(Unknown
    Source)
        at com.ibm.rules.generated.ruleflow.rf1$003etask_2.Task.
    body(Unknown Source)
        at com.ibm.rules.generated.ruleflow.rf1$003etask_2.Task.run(
    Unknown Source)
        at com.ibm.rules.generated.ruleflow.rf1.Task.body(Unknown
    Source)
        at com.ibm.rules.generated.ruleflow.rf1.Task.run(Unknown
    Source)
        at com.ibm.rules.generated.ruleflow.
    AbstractGeneratedRuleflowEngine.execute(Unknown Source)
        at com.ibm.rules.generated.ruleflow.
    AbstractGeneratedRuleflowEngine.execute(Unknown Source)
        at com.ibm.rules.studio.rve.launch.main.RveRulesetMain.main(
    RveRulesetMain.java:67)
    

Local fix

  • modify the expression and initialize the variable before using
    it in the for expression.
    int i ;
    for ( i=0; i< 10 ; i++)
    

Problem summary

  • The variable in a loop is not properly registered when
    debugging
    

Problem conclusion

  • the code is fixed
    

Temporary fix

Comments

APAR Information

  • APAR number

    RS01916

  • Reported component name

    WDS FOR RULES

  • Reported component ID

    5725B6903

  • Reported release

    870

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-02-26

  • Closed date

    2015-03-06

  • Last modified date

    2015-03-06

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

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

Modules/Macros

  • 999
    

Fix information

  • Fixed component name

    WDS FOR RULES

  • Fixed component ID

    5725B6903

Applicable component levels

  • R870 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSQP76","label":"IBM Operational Decision Manager"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"870","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 February 2022