Null Pointer Exception on plugin init on recent 1.6.4 and 1.7.10 Cauldron builds
jamescowens opened this issue ยท 6 comments
Dynmap-mobs fails to load early in the initialization process for any recent version of cauldron (mcpc+) 1.6.4 or 1.7.10 builds.
Specifically for git-Cauldron-MCPC-Plus1.6.4-1.965.21.89 (MC: 1.6.4):
2014-07-26 21:27:14 [SEVERE] Could not load 'plugins/Dynmap-mobs.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NullPointerException
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:192)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:307)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugins(CraftServer.java:232)
at cpw.mods.fml.common.event.FMLServerAboutToStartEvent.(FMLServerAboutToStartEvent.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at cpw.mods.fml.common.LoaderState.getEvent(LoaderState.java:84)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:111)
at cpw.mods.fml.common.Loader.serverAboutToStart(Loader.java:805)
at cpw.mods.fml.common.FMLCommonHandler.handleServerAboutToStart(FMLCommonHandler.java:324)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:223)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:637)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
Caused by: java.lang.NullPointerException
For git-Cauldron-MCPC-Plus-1.7.10-1.1187.01.125 (MC: 1.7.10) (Implementing API version 1.7.10-R0.1-SNAPSHOT):
[12:16:46 ERROR]: Could not load 'plugins/dynmap-mobs.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NullPointerException
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:147) ~[JavaPluginLoader.class:git-Cauldron-MCPC-Plus-1.7.10-1.1187.01.125]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[SimplePluginManager.class:git-Cauldron-MCPC-Plus-1.7.10-1.1187.01.125]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [SimplePluginManager.class:git-Cauldron-MCPC-Plus-1.7.10-1.1187.01.125]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.java:318) [CraftServer.class:git-Cauldron-MCPC-Plus-1.7.10-1.1187.01.125]
at net.minecraft.world.storage.SaveHandler.initBukkitData(SaveHandler.java:458) [ayq.class:?]
at net.minecraft.world.storage.SaveHandler.func_75757_d(SaveHandler.java:136) [ayq.class:?]
at net.minecraft.world.World.(World.java:351) [ahb.class:?]
at net.minecraft.world.WorldServer.(WorldServer.java:153) [mt.class:?]
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:356) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:328) [lt.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:641) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_60]
Caused by: java.lang.NullPointerException
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:103) ~[launchwrapper-1.9.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:437) ~[PluginClassLoader.class:git-Cauldron-MCPC-Plus-1.7.10-1.1187.01.125]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:230) ~[PluginClassLoader.class:git-Cauldron-MCPC-Plus-1.7.10-1.1187.01.125]
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_60]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_60]
at java.lang.Class.forName0(Native Method) ~[?:1.7.0_60]
at java.lang.Class.forName(Class.java:190) ~[?:1.7.0_60]
at org.dynmap.mobs.DynmapMobsPlugin$MobMapping.(DynmapMobsPlugin.java:117) ~[?:?]
at org.dynmap.mobs.DynmapMobsPlugin.(DynmapMobsPlugin.java:127) ~[?:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_60]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_60]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_60]
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_60]
at java.lang.Class.newInstance(Class.java:374) ~[?:1.7.0_60]
at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:220) ~[PluginClassLoader.class:git-Cauldron-MCPC-Plus-1.7.10-1.1187.01.125]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:143) ~[JavaPluginLoader.class:git-Cauldron-MCPC-Plus-1.7.10-1.1187.01.125]
... 11 more
Looks like this started happening when bloodmc shifted over to the cauldron builds from the older mcpc+ series.
Note I pulled dynmap-mobs into eclipse using M2E and compiled against the current dynmap forge jar, but that didn't help. It may be a nms/obs mapping issue, but I can't sort it out.
(There is also a mismatch in the Marker API for dynmap 2.0 on cauldron 1.7.10. That is causing all dynmap API plugins like dynmap-factions to fail. I will create another bug report for that on the main dynmapforge area.)
Yes I have DynmapCBBridge installed. This issue seems to be occurring across both cauldron 1.6.4 and 1.7.10.
Hmm... I am running that already and the null pointer exception is still happening.
Working around some oddness in the Cauldron loader - try the latest dev build: http://mikeprimm.com/dynmap/builds/dynmap-mobs/dynmap-mobs-1.1.jar