IBM Support

IV43173: THROWABLE FOR CLASS INITIALIZATION ERROR RETAINED USING WEAKREFE RENCE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: N/A
    .
    

Local fix

Problem summary

  • When a Class fails to initialize, the exception that caused the
    failure is stored as a WeakReference, to allow class unloading
    to occur. However, since its a WeakReference, the exception is
    discarded after the first gc, which when using gencon could be
    the next scavenge. In this issue arises, a
    java.lang.NoClassDefFoundError would be thrown and the result of
    the getCause() doesn't contain original exception information
    such as following stacktrace.
    java.lang.NoClassDefFoundError: defects.cmvc195512.FailToInit
    (initialization failure)
     at
    java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternal
    s.java:236)
     at java.lang.J9VMInternals.initialize(J9VMInternals.java:307)
     at
    defects.cmvc195512.TestFailedInit.fail(TestFailedInit.java:57)
     at
    defects.cmvc195512.TestFailedInit.test(TestFailedInit.java:40)
     at
    defects.cmvc195512.TestFailedInit.main(TestFailedInit.java:9)
    

Problem conclusion

  • This defect will be fixed in:
    7.0.0 SR5
    6.0.1 SR6
    .
    A SoftReference is used of a WeakReference so the exception is
    retained for a longer period of time.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV43173

  • Reported component name

    J9 COMMON CODE

  • Reported component ID

    620700127

  • Reported release

    260

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-05-27

  • Closed date

    2013-05-27

  • Last modified date

    2013-05-27

  • 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

    J9 COMMON CODE

  • Fixed component ID

    620700127

Applicable component levels

  • R260 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022