PreciousStones

PreciousStones

269k Downloads

NullPointerException loading sqlitedb under MCPC-Plus

madsmith opened this issue ยท 1 comments

commented

I've been trying to get PreciousStones to work under one of the Bukkit compatible servers recommended for TekkitLite. I've been using MCPC-plus.

I'm running mcpc-plus-1.4.7-R1.1-SNAPSHOT-f524-164.jar available from the Jenkins builds here:

http://ci.md-5.net/job/MCPC-Plus/

I've added PreciousStones.jar to the plugins folder and I get the following error when the server starts.

java.lang.NullPointerException
at org.sqlite.NestedDB$CausedSQLException.fillInStackTrace(NestedDB.java:649)
at java.lang.Throwable.(Throwable.java:250)
at java.lang.Exception.(Exception.java:54)
at java.sql.SQLException.(SQLException.java:140)
at org.sqlite.NestedDB$CausedSQLException.(NestedDB.java:626)
at org.sqlite.NestedDB._open(NestedDB.java:63)
at org.sqlite.DB.open(DB.java:86)
at org.sqlite.Conn.open(Conn.java:140)
at org.sqlite.Conn.(Conn.java:57)
at org.sqlite.JDBC.createConnection(JDBC.java:77)
at org.sqlite.JDBC.connect(JDBC.java:64)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:243)
at net.sacredlabyrinth.Phaed.PreciousStones.storage.SQLiteCore.initialize(Unknown Source)
at net.sacredlabyrinth.Phaed.PreciousStones.storage.SQLiteCore.getConnection(Unknown Source)
at net.sacredlabyrinth.Phaed.PreciousStones.storage.SQLiteCore.checkConnection(Unknown Source)
at net.sacredlabyrinth.Phaed.PreciousStones.managers.StorageManager.initiateDB(Unknown Source)
at net.sacredlabyrinth.Phaed.PreciousStones.managers.StorageManager.(Unknown Source)
at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(Unknown Source)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:427)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:300)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:282)
at net.minecraft.server.MinecraftServer.j(MinecraftServer.java:600)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:566)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:445)
at ho.c(DedicatedServer.java:195)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:722)
at fy.run(ThreadMinecraftServer.java:16)

I'm trying to debug why PreciousStones is unable to initialize the sqlite database while other plugins (e.g. Essentials) don't seem to be having a problem.

commented

Let the server run longer and found that essentials was having issues as well. Seems they use a framework that retries connections for 30 attempts so it seemed like it initialized the databases correctly and loaded the plugin when in reality it was not.

I probably should close this issue and follow up with the MCPC devs.