IBM Support

RS01369: GENERIC ARGUMENTS IN FUNCTIONS CAUSE EXCEPTION WHILE GENERATING RULESET IN DECISION ENGINE MODE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • With "Decision Engine for z/OS" ruleset build mode, generating
    ruleset for rule project that contains generic methods in
    functions may cause exceptions.
    
    For example, with methods using generic comparator parameter in
    function IRL code, an "Cannot convert xom.yourComparatorName to
    type java.util.Comparator<java.lang.Object>" error will be
    reported with the following trace:
    com.ibm.rules.container.EngineOutlineSerializationException:
    java.lang.RuntimeException: Cannot convert xom.
    yourComparatorName to type java.util.Comparator<java.lang.
    Object>
         at com.ibm.rules.container.EnginePackageOpenXMLProducer.
    writeJar(EnginePackageOpenXMLProducer.java:227)
         at com.ibm.rules.container.EnginePackageOpenXMLProducer.
    writeJar(EnginePackageOpenXMLProducer.java:235)
         at com.ibm.rules.container.EngineOutlineSerializer.
    writeJar(EngineOutlineSerializer.java:55)
         at com.ibm.rules.studio.rve.builder.
    RVERulesetArchiveExporter.serializeEngineOutline(Unknown Source)
    
         at com.ibm.rules.studio.rve.builder.
    RVERulesetArchiveExporter.export(Unknown Source)
         ...
    Caused by: java.lang.RuntimeException: Cannot convert xom.
    ActionOutActionOutCodeComparator to type java.util.
    Comparator<java.lang.Object>
         at com.ibm.rules.engine.lang.semantics.transform.
    SemMainLangTransformer.convertTransformedValue(
    SemMainLangTransformer.java:663)
         at com.ibm.rules.engine.lang.semantics.transform.
    SemMainLangTransformer.transformValue(SemMainLangTransformer.
    java:615)
         at com.ibm.rules.engine.lang.semantics.transform.
    SemMainLangTransformer.transformValues(SemMainLangTransformer.
    java:759)
         at com.ibm.rules.engine.lang.semantics.transform.
    BaseTransformer.mainTransformValues(BaseTransformer.java:448)
         ...
    

Local fix

  • Use B2X methods for all generic methods in the function code.
    

Problem summary

  • generics method are not handled properly in the decision engine
    code generator . This issue will be addressed in update of V8.5
    

Problem conclusion

Temporary fix

  • Move the function with generic into B2X code
    

Comments

APAR Information

  • APAR number

    RS01369

  • Reported component name

    WDS FOR RULES

  • Reported component ID

    5725B6903

  • Reported release

    800

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-07-10

  • Closed date

    2013-09-06

  • Last modified date

    2013-09-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

Applicable component levels

  • R850 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":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 February 2022