1

Need help with my bukkit code!

TheWizardNetwork 7/7/13 9:12 am
313
7/7/2013 4:03 pm
Hey, I have been coding this plugin and I don't know what is the problem, it says it's in the string but can someone help me on this?

org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.loadPlugins(CraftServer.java:239)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.<init>(CraftServer.java:217)
at net.minecraft.server.v1_6_R1.PlayerList.<init>(PlayerList.java:55)
at net.minecraft.server.v1_6_R1.DedicatedPlayerList.<init>(SourceFile:11)
at net.minecraft.server.v1_6_R1.DedicatedServer.init(DedicatedServer.java:106)
at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java:392)
at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
... 9 more
Caused by: java.lang.NullPointerException
at me.Trevor1134.SortingHat.SortingHat.<clinit>(SortingHat.java:30)
... 12 more



and this my Java Code on the paste bin, i have implemented from the onEnable to the onDisable.

http://pastebin.com/WMvvNAzQ
Posted by
TheWizardNetwork
Level 1 : New Miner
0

  Have something to say?

JoinSign in

12

funkiben
07/07/2013 3:27 pm
Level 17 : Journeyman Mage
Make sure you have "gryffindor" set in the config?
And if you do make sure its set like this:

griffindor:
- string
- string
- string
1
TheWizardNetwork
07/07/2013 3:46 pm
Level 1 : New Miner
Humm what? I am not working in the config here but rather in Java/Eclipse
1
nickfromgreece
07/07/2013 3:58 pm
Level 54 : Grandmaster Programmer
Yes but you added config code which means its tryign to get the values from the config file.... that might be the cause of it being null
1
funkiben
07/07/2013 4:03 pm
Level 17 : Journeyman Mage
So... you never made a config.yml in your project?
1
nickfromgreece
07/07/2013 9:26 am
Level 54 : Grandmaster Programmer
Caused by: java.lang.NullPointerException
at me.Trevor1134.SortingHat.SortingHat.<clinit>(SortingHat.java:30)

^^ whats there
1
TheWizardNetwork
07/07/2013 9:28 am
Level 1 : New Miner
The first string which is

http://pastebin.com/2w5kZzWe
1
nickfromgreece
07/07/2013 9:33 am
Level 54 : Grandmaster Programmer
plugin.getConfig().getStringList("gryffindor"); <---- thats null for some reason
1
TheWizardNetwork
07/07/2013 9:37 am
Level 1 : New Miner
Can you help me on how to fix it?
1
TheWizardNetwork
07/07/2013 9:20 am
Level 1 : New Miner
dbo008
TheWizardNetworkHey, I have been coding this plugin and I don't know what is the problem, it says it's in the string but can someone help me on this?

org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.loadPlugins(CraftServer.java:239)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.<init>(CraftServer.java:217)
at net.minecraft.server.v1_6_R1.PlayerList.<init>(PlayerList.java:55)
at net.minecraft.server.v1_6_R1.DedicatedPlayerList.<init>(SourceFile:11)
at net.minecraft.server.v1_6_R1.DedicatedServer.init(DedicatedServer.java:106)
at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java:392)
at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
... 9 more
Caused by: java.lang.NullPointerException
at me.Trevor1134.SortingHat.SortingHat.<clinit>(SortingHat.java:30)
... 12 more



and this my Java Code on the paste bin, i have implemented from the onEnable to the onDisable.

http://pastebin.com/WMvvNAzQ



forums.bukkit.org


Already asked there, nobody as been able to help me.
1
dbo008
07/07/2013 9:17 am
Level 4 : Apprentice Modder
TheWizardNetworkHey, I have been coding this plugin and I don't know what is the problem, it says it's in the string but can someone help me on this?

org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.loadPlugins(CraftServer.java:239)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.<init>(CraftServer.java:217)
at net.minecraft.server.v1_6_R1.PlayerList.<init>(PlayerList.java:55)
at net.minecraft.server.v1_6_R1.DedicatedPlayerList.<init>(SourceFile:11)
at net.minecraft.server.v1_6_R1.DedicatedServer.init(DedicatedServer.java:106)
at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java:392)
at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
... 9 more
Caused by: java.lang.NullPointerException
at me.Trevor1134.SortingHat.SortingHat.<clinit>(SortingHat.java:30)
... 12 more



and this my Java Code on the paste bin, i have implemented from the onEnable to the onDisable.

http://pastebin.com/WMvvNAzQ



forums.bukkit.org
1
Chuk40076
07/07/2013 9:16 am
Level 30 : Artisan Geek
Will look at it Tomorrow.
1
TheWizardNetwork
07/07/2013 12:27 pm
Level 1 : New Miner
Okay thanks, I didn't see your post...
1

Welcome