Skip to content

[BUG] Error connecting to the database #48

@m0baer

Description

@m0baer

Describe the bug
Me again, I'm sorry ;) I have problem with the database connection at the moment. During the week the parkours of the server stopped working. While debugging I found out that the sqlite data seems to be okay, I can easily read a copied version of the db. Permissions of the file haven't changed, there seems to be another problem. Something with MaterialData? Is this just my setup?

To Reproduce
Unsure, at one time in the week parkour stopped working

Expected behavior
It should run forever ;)

Screenshots
No Screenshot, but console output:

19:37:54
[HubParkour]: There has been an error connecting to the database. The plugin will now be disabled.  Stack Trace:
Console19:37:54
java.lang.ClassCastException: class org.bukkit.material.MaterialData cannot be cast to class org.bukkit.material.Sign (org.bukkit.material.MaterialData and org.bukkit.material.Sign are in unnamed module of loader java.net.URLClassLoader @5a10411)
	at HubParkour-2.8.1.jar/me.block2block.hubparkour.managers.DatabaseManager.loadSigns(DatabaseManager.java:649) ~[HubParkour-2.8.1.jar:?]
	at HubParkour-2.8.1.jar/me.block2block.hubparkour.managers.DatabaseManager.load(DatabaseManager.java:68) ~[HubParkour-2.8.1.jar:?]
	at HubParkour-2.8.1.jar/me.block2block.hubparkour.HubParkour.onEnable(HubParkour.java:223) ~[HubParkour-2.8.1.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:284) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.4.jar:1.21.4-138-5395ae3]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.4.jar:1.21.4-138-5395ae3]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:656) ~[paper-1.21.4.jar:1.21.4-138-5395ae3]
	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:605) ~[paper-1.21.4.jar:1.21.4-138-5395ae3]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:743) ~[paper-1.21.4.jar:1.21.4-138-5395ae3]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:488) ~[paper-1.21.4.jar:1.21.4-138-5395ae3]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:322) ~[paper-1.21.4.jar:1.21.4-138-5395ae3]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1163) ~[paper-1.21.4.jar:1.21.4-138-5395ae3]
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310) ~[paper-1.21.4.jar:1.21.4-138-5395ae3]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
INFO19:37:54
[HubParkour]: Disabling HubParkour v2.8.1

Environment (please complete the following information):
Server Version: Paper version 1.21.4-138-main@5395ae3
Plugin Version: 2.8.1
Server Software PaperSpigot
Other Plugins Installed: AdvancedRegionMarket (3.5.3), AutoUpdateGeyser (5.5), BlueMap (3.20), Geyser-Spigot (2.6.0-SNAPSHOT), HubParkour (2.8.1), LuckPerms (5.4.131), PlaceholderAPI (2.11.6), RegionTeleport (3.2.0), Shopkeepers (2.23.3), Vault (1.7.3-b131), WorldEdit (7.3.10-beta-01+cb9fd58), WorldGuard (7.0.13-beta-2+5c4848b), floodgate (2.2.3-SNAPSHOT (b114-83fbd6e)), voicechat (2.5.27)

Additional context
It may be my setup/the other mods, but I do not understand the error pointing to the database. All other mods seem to be running without a problem.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions