IBM Support

RS03531: NPE WHEN LOADING GENERIC CLASS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When generating a dsar (with bytecode generation) in Rule
    Designer, there is a NPE due to the declaration of this kind of
    methods:
    
    public <T extends BO<?>> List<T> getBOs(List<BOKey<?
    extends T>> boKeys)
    
    !MESSAGE An error occurred during the
    export of the ruleset archive.
    
    com.ibm.rules.container.EngineOu
    tlineSerializationException: java.lang.NullPointerException
    at c
    om.ibm.rules.container.EnginePackageOpenXMLProducer.writeJar(Eng
    inePackageOpenXMLProducer.java:269)
    at com.ibm.rules.container.E
    nginePackageOpenXMLProducer.writeJar(EnginePackageOpenXMLProduce
    r.java:277)
    at com.ibm.rules.container.EngineOutlineSerializer.w
    riteJar(EngineOutlineSerializer.java:48)
    at com.ibm.rules.studio
    .rve.builder.RVERulesetArchiveExporter.serializeEngineOutline(RV
    ERulesetArchiveExporter.java:743)
    at com.ibm.rules.studio.rve.bu
    ilder.RVERulesetArchiveExporter.export(RVERulesetArchiveExporter
    .java:432)
    at ilog.rules.studio.model.archive.internal.RulesetAr
    chiveExportJob.run(RulesetArchiveExportJob.java:65)
    at
    org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
    Caused
    by: java.lang.NullPointerException
    at com.ibm.rules.engine.lang.
    semantics.util.generics.SemGenericParameters.hashCode(SemGeneric
    Parameters.java:74)
    at
    java.util.HashMap.hash(HashMap.java:350)
    at
    java.util.HashMap.get(HashMap.java:568)
    at com.ibm.rules.engine.
    lang.semantics.impl.GenericInstanceStore.getInstance(GenericInst
    anceStore.java:136)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users building rulesets with Decision Engine.                *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When generating a dsar (with bytecode generation) in Rule    *
    * Designer, there is a NPE due to the declaration of this kind *
    * of                                                           *
    * methods:                                                     *
    *                                                              *
    * public <T extends BO<?>> List<T> getBOs(List<BOKey<?         *
    * extends T>> boKeys)                                          *
    *                                                              *
    * !MESSAGE An error occurred during the                        *
    * export of the ruleset archive.                               *
    *                                                              *
    * com.ibm.rules.container.EngineOu                             *
    * tlineSerializationException: java.lang.NullPointerException  *
    * at c                                                         *
    * om.ibm.rules.container.EnginePackageOpenXMLProducer.writeJar *
    * (Eng                                                         *
    * inePackageOpenXMLProducer.java:269)                          *
    * at com.ibm.rules.container.E                                 *
    * nginePackageOpenXMLProducer.writeJar(EnginePackageOpenXMLPro *
    * duce                                                         *
    * r.java:277)                                                  *
    * at com.ibm.rules.container.EngineOutlineSerializer.w         *
    * riteJar(EngineOutlineSerializer.java:48)                     *
    * at com.ibm.rules.studio                                      *
    * .rve.builder.RVERulesetArchiveExporter.serializeEngineOutlin *
    * e(RV                                                         *
    * ERulesetArchiveExporter.java:743)                            *
    * at com.ibm.rules.studio.rve.bu                               *
    * ilder.RVERulesetArchiveExporter.export(RVERulesetArchiveExpo *
    * rter                                                         *
    * .java:432)                                                   *
    * at ilog.rules.studio.model.archive.internal.RulesetAr        *
    * chiveExportJob.run(RulesetArchiveExportJob.java:65)          *
    * at                                                           *
    * org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)    *
    * Caused                                                       *
    * by: java.lang.NullPointerException                           *
    * at com.ibm.rules.engine.lang.                                *
    * semantics.util.generics.SemGenericParameters.hashCode(SemGen *
    * eric                                                         *
    * Parameters.java:74)                                          *
    * at                                                           *
    * java.util.HashMap.hash(HashMap.java:350)                     *
    * at                                                           *
    * java.util.HashMap.get(HashMap.java:568)                      *
    * at com.ibm.rules.engine.                                     *
    * lang.semantics.impl.GenericInstanceStore.getInstance(Generic *
    * Inst                                                         *
    * anceStore.java:136)                                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • The code is fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    RS03531

  • Reported component name

    WDS FOR RULES

  • Reported component ID

    5725B6903

  • Reported release

    8A0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-11-25

  • Closed date

    2019-11-26

  • Last modified date

    2019-11-26

  • 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

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

Document Information

Modified date:
17 February 2022