Stacktrace on load
Thorinwasher opened this issue ยท 0 comments
Bug Description
Stacktrace on load
Reproduction Steps
ex. 1. Do this, 2. Do that, 3. See this.
Desired Behaviour
ex. This should not have crashed.
Observed Behaviour
org.sgrewritten.stargate.exception.database.StorageReadException: org.sqlite.SQLiteException: [SQLITE_CONSTRAINT_FOREIGNKEY] A foreign key constraint failed (FOREIGN KEY constraint failed)
at Stargate-1.0.0.17-NIGHTLY-661d6bd.jar//org.sgrewritten.stargate.database.SQLDatabase.loadFromStorage(SQLDatabase.java:123)
at Stargate-1.0.0.17-NIGHTLY-661d6bd.jar//org.sgrewritten.stargate.network.StargateNetworkManager.loadPortals(StargateNetworkManager.java:213)
at Stargate-1.0.0.17-NIGHTLY-661d6bd.jar//org.sgrewritten.stargate.Stargate.onEnable(Stargate.java:150)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287)
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:519)
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:604)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:553)
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675)
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437)
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323)
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1136)
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: org.sqlite.SQLiteException: [SQLITE_CONSTRAINT_FOREIGNKEY] A foreign key constraint failed (FOREIGN KEY constraint failed)
at org.sqlite.core.DB.newSQLException(DB.java:1179)
at org.sqlite.core.DB.newSQLException(DB.java:1190)
at org.sqlite.core.DB.execute(DB.java:985)
at org.sqlite.jdbc3.JDBC3PreparedStatement.lambda$execute$0(JDBC3PreparedStatement.java:59)
at org.sqlite.jdbc3.JDBC3Statement.withConnectionTimeout(JDBC3Statement.java:454)
at org.sqlite.jdbc3.JDBC3PreparedStatement.execute(JDBC3PreparedStatement.java:53)
at Stargate-1.0.0.17-NIGHTLY-661d6bd.jar//org.sgrewritten.stargate.database.SQLDatabase.removeWorlds(SQLDatabase.java:245)
at Stargate-1.0.0.17-NIGHTLY-661d6bd.jar//org.sgrewritten.stargate.database.SQLDatabase.loadAllPortals(SQLDatabase.java:228)
at Stargate-1.0.0.17-NIGHTLY-661d6bd.jar//org.sgrewritten.stargate.database.SQLDatabase.loadFromStorage(SQLDatabase.java:112)
at Stargate-1.0.0.17-NIGHTLY-661d6bd.jar//org.sgrewritten.stargate.network.StargateNetworkManager.loadPortals(StargateNetworkManager.java:213)
at Stargate-1.0.0.17-NIGHTLY-661d6bd.jar//org.sgrewritten.stargate.Stargate.onEnable(Stargate.java:150)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287)
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:519)
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:604)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:553)
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675)
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437)
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323)
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1136)
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323)
at java.base/java.lang.Thread.run(Thread.java:1583)
Trace Logs
The sg trace command may be run through console or in-game.
Other Information
ex. Screenshots, error messages, additional context, bugged files, etc.