geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jared Stewart (JIRA)" <>
Subject [jira] [Created] (GEODE-2796) NPE in ClassPathLoader
Date Tue, 18 Apr 2017 18:33:41 GMT
Jared Stewart created GEODE-2796:

             Summary: NPE in ClassPathLoader
                 Key: GEODE-2796
             Project: Geode
          Issue Type: Bug
          Components: management
            Reporter: Jared Stewart

It looks like an NPE was introduced by the fix for GEODE-2290:

Caused by: java.lang.NullPointerException
    at org.apache.geode.internal.ClassPathLoader.getResource(
    at org.apache.geode.internal.ClassPathLoader.getResourceAsStream(
    at org.apache.geode.internal.ClassPathLoader.getResourceAsStream(
    at org.apache.geode.internal.GemFireVersion$VersionDescription.<init>(
    at org.apache.geode.internal.GemFireVersion.getDescription(
    at org.apache.geode.internal.GemFireVersion.getGemFireVersion(
    at org.apache.geode.cache.CacheFactory.getVersion(

This is caused by the following method: 
 private List<ClassLoader> getClassLoaders() {
    ArrayList<ClassLoader> classLoaders = new ArrayList<>();

    if (!excludeTCCL) {


    return classLoaders;

According to the JavaDocs, `getContextClassLoader()` actually returns null to indicate the
system class loader (rather than actually returning the system class loader).

This message was sent by Atlassian JIRA

View raw message