Skip to content

Instantly share code, notes, and snippets.

@deathcap
Created May 13, 2014 04:05
Show Gist options
  • Save deathcap/85ac493cac913b1257c7 to your computer and use it in GitHub Desktop.
Save deathcap/85ac493cac913b1257c7 to your computer and use it in GitHub Desktop.
doppiojvm craftbukkit 1.7.2-R0.3 java.lang.NullPointerException: at org.apache.logging.log4j.util.ProviderUtil.<clinit>(ProviderUtil.java:54)
DoppioJVM https://github.com/plasma-umass/doppio 77826e3088aa41241eb2444541bd4da5fb982669
http://localhost:8000/
/tmp$ java -jar craftbukkit-1.7.2-R0.3.jar
Loading libraries, please wait...
java.lang.ExceptionInInitializerError
at org.bukkit.craftbukkit.Main.main(Main.java:159)
Caused by: java.lang.ExceptionInInitializerError
at net.minecraft.server.v1_7_R1.MinecraftServer.<clinit>(MinecraftServer.java:46)
... 1 more
Caused by: java.lang.ExceptionInInitializerError
at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:44)
... 2 more
Caused by: java.lang.ExceptionInInitializerError
at org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:48)
... 3 more
Caused by: java.lang.ExceptionInInitializerError
at org.apache.logging.log4j.util.PropertiesUtil.<init>(PropertiesUtil.java:71)
at org.apache.logging.log4j.util.PropertiesUtil.<clinit>(PropertiesUtil.java:31)
... 4 more
Caused by: java.lang.NullPointerException:
at org.apache.logging.log4j.util.ProviderUtil.<clinit>(ProviderUtil.java:54)
... 6 more
slightly different error than https://github.com/plasma-umass/doppio/issues/200
@deathcap
Copy link
Author

https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/util/

static {
    final ClassLoader cl = findClassLoader();
    Enumeration<URL> enumResources = null;
    try {
        enumResources = cl.getResources(PROVIDER_RESOURCE);
    } catch (final IOException e) {
        LOGGER.fatal("Unable to locate " + PROVIDER_RESOURCE, e);
    }

    if (enumResources != null) {
        while (enumResources.hasMoreElements()) {
            final URL url = enumResources.nextElement();
            try {
                final Properties props = PropertiesUtil.loadClose(url.openStream(), url);
                if (!validVersion(props.getProperty(API_VERSION))) {
                    continue;
                }
                PROVIDERS.add(new Provider(props, url));
            } catch (final IOException ioe) {
                LOGGER.error("Unable to open " + url.toString(), ioe);
            }
        }
    }
}

http://forums.bukkit.org/threads/bukkit-server-start-bat-file-error.235038/

Maybe https://github.com/plasma-umass/doppio/blob/natives_refactor/src/natives/java_lang.ts

public static 'getClassLoader0()Ljava/lang/ClassLoader;'(thread: threading.JVMThread, javaThis: java_object.JavaClassObject): ClassLoader.JavaClassLoaderObject {
// The bootstrap classloader is represented as 'null', which is OK
// according to the spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment