Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-11721

SpringProperties: the ClassLoader might be null, if class is loaded by the bootstrap class loader

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 3.2.8, 4.0.3
    • Fix Version/s: 3.2.9, 4.0.4, 4.1 RC1
    • Component/s: Core
    • Labels:
      None

      Description

      The `NPE` is here:

      ClassLoader cl = SpringProperties.class.getClassLoader();
      			URL url = cl.getResource(PROPERTIES_RESOURCE_LOCATION);
      

      The similar issue is here: http://stackoverflow.com/questions/1921238/getclass-getclassloader-is-null-why

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              abilan Artem Bilan
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 30 weeks, 2 days ago