IBM Support

IV43462: ANNOTATIONFORMATERROR THROWN WHEN FETCHING AN ANNOTATION AFTER RETRANSFORMING OR REDEFINING A CLASS AFTER APPLYING IV38472

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: Exception:
    java.lang.annotation.AnnotationFormatError:
    java.lang.IllegalArgumentException: Wrong type at constant pool
    index
    .
    Stack Trace: java.lang.annotation.AnnotationFormatError:
    java.lang.IllegalArgumentException: Wrong type at constant pool
    index
    ? ? at
    sun.reflect.annotation.AnnotationParser.parseAnnotations(Annotat
    ionParser.java:87)
    ??? at
    java.lang.reflect.Method.declaredAnnotations(Method.java:722)
    ??? at java.lang.reflect.Method.getAnnotation(Method.java:708)
    ??? at
    java.lang.reflect.AccessibleObject.isAnnotationPresent(Accessibl
    eObject.java:200)
    .
    

Local fix

  • This issue can be worked around using the -Dreflect.cache=false
    option. Note however that this will have a performance impact
    when reflection is heavily used.
    

Problem summary

  • The problem is caused when a reflect object's annotations are
    parsed after its class has been redefined or retransformed.
    

Problem conclusion

  • This defect will be fixed in:
    7.0.0 SR5
    .
    The JVM has been updated to flush the reflection cache when a
    class is redefined or retransformed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV43462

  • 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-30

  • Closed date

    2013-05-30

  • Last modified date

    2013-07-10

  • 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