Skip to main content

IV10376: NOCLASSDEFFOUNDERROR THROWN INSTEAD OF TYPENOTPRESENT WHEN CALLI NG GETANNOTATION() ON A MISSING DEPENDENT CLASS


Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: Exception in thread "main"
    java.lang.NoClassDefFoundError: c
            at java.lang.ClassLoader.defineClassImpl(Native Method)
            at
    java.lang.ClassLoader.defineClass(ClassLoader.java:260)
            at
    java.security.SecureClassLoader.defineClass(SecureClassLoader.ja
    va:69)
            at
    java.net.URLClassLoader.defineClass(URLClassLoader.java:540)
            at
    java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
            at
    java.net.URLClassLoader.access$300(URLClassLoader.java:79)
            at
    java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1038
    )
            at
    java.security.AccessController.doPrivileged(AccessController.jav
    a:288)
            at
    java.net.URLClassLoader.findClass(URLClassLoader.java:429)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:646)
            at
    sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:612)
            at java.lang.Class.forNameImpl(Native Method)
            at java.lang.Class.forName(Class.java:166)
            at
    com.ibm.oti.reflect.AnnotationParser.parseClass(AnnotationParser
    .java:203)
            at
    com.ibm.oti.reflect.AnnotationParser.parseElementValue(Annotatio
    nParser.java:156)
            at
    com.ibm.oti.reflect.AnnotationParser.parseAnnotation(AnnotationP
    arser.java:131)
            at
    com.ibm.oti.reflect.AnnotationParser.parseAnnotations(Annotation
    Parser.java:57)
            at
    java.lang.Class.getDeclaredAnnotations(Class.java:1652)
            at java.lang.Class.getAnnotations(Class.java:1609)
            at java.lang.Class.getAnnotation(Class.java:1589)
            at a.main(a.java:9)
    Caused by: java.lang.ClassNotFoundException: c
            at
    java.net.URLClassLoader.findClass(URLClassLoader.java:434)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:646)
            at
    sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:612)
            ... 22 more
    .
    

Local fix

  • The issue can be worked around by having the missing class on
    the class path
    

Problem summary

  • The NoClassDefFoundError is thrown erroneously when we call
    getAnnotation on a missing dependent class.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.1 SR1
    .
    The JVM has been fixed to correctly display TypeNotPresent in
    such cases.
    .
    To obtain the fix:
    Install build 20111108 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV10376

  • 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

    2011-11-17

  • Closed date

    2011-11-17

  • Last modified date

    2011-11-17

  • 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

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Runtimes for Java Technology

Virtual Machine


Software version:
260


Reference #:
IV10376


Modified date:
2011-11-17

Translate my page

Content navigation