IBM Support

RS01671: INCORRECT BYTECODE GENERATION WHEN "FOR" LOOP HAS SEVERAL INITIA LIZATIONS OR INCREMENTS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When a for loop has multiple initializations or increments (
    separated by a coma)  the ruleset execution may fail with an
    exception such as:
    Exception in thread "main" java.lang.ClassFormatError:
    JVMCFRE074 no Code attribute specified;
    class=com/ibm/rules/generated/EngineDataClass,
    method=myFunction()V, pc=0
        at java.lang.ClassLoader.defineClass(ClassLoader.java:306)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:1526)
        at com.ibm.rules.engine.load.NativeEngineLoader$
    JarStreamClassLoader.findClass(NativeEngineLoader.java:328)
        at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:
    760)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:737)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:707)
        at com.ibm.brl.generated.engine.ReteEngine.
    createRuleEngineInput(Unknown Source)
        at com.ibm.rules.engine.rete.runtime.AbstractReteEngine.
    createInput(AbstractReteEngine.java:126)
        at com.ibm.rules.studio.rve.launch.main.RveRulesetMain.main(
    RveRulesetMain.java:65)
    With such incorrect bytecode in a ruleset, a JVM running with -
    Xverify:none may not detect the problem during bytecode
    verification, and the JVM may crash with a crash report such as:
    # A fatal error has been detected by the Java Runtime
    Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x02e8a6d9,
    pid=38728, tid=38908
    # JRE version: 6.0_27-b07
    # Java VM: Java HotSpot(TM) Client VM (20.2-b06 mixed mode
    windows-x86 )
    # Problematic frame:
    # j com.ibm.rules.generated.EngineDataClass.myFunction()Z+0
    ....
    

Local fix

  • replace the for loop with an equivalent while loop
    

Problem summary

  • incorrect code generation with for loop
    

Problem conclusion

  • code is fixed
    

Temporary fix

Comments

APAR Information

  • APAR number

    RS01671

  • Reported component name

    WS DECISION SVR

  • Reported component ID

    5725B6901

  • Reported release

    851

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-07-08

  • Closed date

    2014-07-25

  • Last modified date

    2014-07-25

  • 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

    WS DECISION SVR

  • Fixed component ID

    5725B6901

Applicable component levels

  • R851 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022