IBM Support

IZ76354: JAVA THROWS JAVA.LANG.TYPENOTPRESENTEXCEPTION FOR ANNOTATIONS IN A CLASS FILE THAT ARE UNKNOWN DURING RUNTIME

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: java.lang.TypeNotPresentException: Type
    abc.def.ghi  not present
    .
    Stack Trace: java.lang.TypeNotPresentException: Type abc.def.ghi
     not present
    at
    com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHel
    per.java:39)
    
    at
    com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(Anno
    tationHelper.java:51)
    
    at
    com.ibm.oti.reflect.Method.getDeclaredAnnotations(Method.java:35
    )
    at
    java.lang.reflect.Method.getDeclaredAnnotations(Method.java:719)
    
    at
    java.lang.reflect.AccessibleObject.getAnnotations(AccessibleObje
    ct.java:187)
    
    at com.ibm.oti.reflect.Method.getAnnotation(Method.java:21)
    at java.lang.reflect.Method.getAnnotation(Method.java:703)
    ...
    .
    

Local fix

  • This issue can be worked around when we have the classes of the
    unknown annotations on the classpath. This way we make it
    'visible' to the JVM during runtime.
    

Problem summary

  • Java throws java.lang.TypeNotPresentException for annotations in
    a class file that are UNKNOWN during runtime
    

Problem conclusion

  • This defect will be fixed in:
    5.0.0 SR12
    6.0.0 SR9
    .
    The annotations code area has been fixed handle unknown
    annotations suitably.
    .
    To obtain the fix:
    Install build 20100531 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ76354

  • Reported component name

    JAVA 5 J9 COMMO

  • Reported component ID

    620500127

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-05-27

  • Closed date

    2010-05-31

  • Last modified date

    2010-06-01

  • APAR is sysrouted FROM one or more of the following:

    IZ76352

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA 5 J9 COMMO

  • Fixed component ID

    620500127

Applicable component levels

  • R500 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVQ3W","label":"Virtual Machine"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
01 June 2010