Not loading database

Issue #82 closed
Former user created an issue

Plugin version: 2.3.5 MC version: 1.15.2 paper-105 Storage method: sqlite rc_database.db file size 15mb

So today I got this error, I had set delay_login to true, but have since set to false so I could connect to my own server. Never had this issue before, read through several other issues to come to this conclusion. This is the error I get in console when RC should be loading database. Does with and without old loading system set to true.

[20:34:44 WARN]: [RestrictedCreative] Plugin RestrictedCreative v2.3.5 generated an exception while executing task 76
java.lang.NullPointerException: null
at me.prunt.restrictedcreative.utils.Utils.getBlockChunk(Utils.java:86) ~[?:?]
at me.prunt.restrictedcreative.storage.DataHandler$2.run(DataHandler.java:485) ~[?:?]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.2.jar:git-Paper-105]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.15.2.jar:git-Paper-105]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.15.2.jar:git-Paper-105]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]

Comments (9)

  1. Hans Kurel repo owner

    Did you update the plugin before this error occured? Or used another (or older) database file? Or changed table names in the config?

  2. Taylor T

    No ive made no changes, to anything to do with this plugin. In fact it took me a bit to figure out this was the cause, because I hadnt done anything with it in quite some time.

  3. Hans Kurel repo owner

    Interesting. Maybe your server crashed before this occured? Because this error would show up only if there’s a invalid block saved to the database. Anyway, I’ll fix it in the next version.

  4. Taylor T

    Still getting this error on startup, any suggestions to a fix would be appreciated. It doesnt seem to effect anything.. My Players Inventories are still saved from Creative to Survival… but an error raises concerns nonetheless.

    [08:46:08 INFO]: [RestrictedCreative] Enabling RestrictedCreative v2.3.6
    [08:46:09 WARN]: java.sql.BatchUpdateException: batch entry 0: [SQLITE_CONSTRAINT] Abort due to constraint violation (UNIQUE constraint failed: rc_invs_tmp.player)
    [08:46:09 WARN]: at org.sqlite.jdbc3.JDBC3Statement.executeBatch(JDBC3Statement.java:205)
    [08:46:09 WARN]: at me.prunt.restrictedcreative.Main.loadData(Main.java:192)
    [08:46:09 WARN]: at me.prunt.restrictedcreative.Main.onEnable(Main.java:67)
    [08:46:09 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263)
    [08:46:09 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:364)
    [08:46:09 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483)
    [08:46:09 WARN]: at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:470)
    [08:46:09 WARN]: at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:384)
    [08:46:09 WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:488)
    [08:46:09 WARN]: at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:298)
    [08:46:09 WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:896)
    [08:46:09 WARN]: at java.lang.Thread.run(Thread.java:748)
    

  5. Hans Kurel repo owner

    Unfortunately I can't seem to figure out what the issue is here. Do you still have this error?

  6. Log in to comment