Hidendra / LWC

Lightweight Protection for Chests, Furnaces, Dispensers, and more for the Minecraft server mod Bukkit
Other
167 stars 123 forks source link

[SEVERE] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String #584

Open CosmicVoyager opened 11 years ago

CosmicVoyager commented 11 years ago

CraftBukkit version git-Bukkit-1.4.7-R1.0-94-g141dcf0-b2735jnks (MC: 1.5.1) (Implementing API version 1.5.1-R0.1)

23:53:27 [INFO] [LWC] Enabling LWC v4.3.2 (b863-git-MANUAL) (April 07, 2013) 23:53:27 [INFO] [LWC] Connecting to SQLite 23:53:29 [SEVERE] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

http://pastie.org/7347404

kyle921 commented 11 years ago

I am also running into this issue, and would very much appreciate a fix. See here: http://pastebin.com/6KU0xUJx

CosmicVoyager commented 11 years ago

This is still happening on every server start.

barneygale commented 11 years ago

Also experiencing this. 4.3.2 Beta 3.

kyle921 commented 11 years ago

After checking the code, this only occurs if you add a block using its item ID instead of block name (as in '52' instead of 'mob_spawner'). Unfortunately, it also prevents the plugin from automatically adding trapped chests to the protection list.

sizilium commented 11 years ago

I have still the same issue:

... 08:52:15 CONSOLE: [INFORMATION] This server is running CraftBukkit version git-Bukkit-1.5.2-R1.0-18-ga8c0dc1-b2808jnks (MC: 1.6.2) (Implementing API version 1.6.2-R0.1-SNAPSHOT) ...

2013-07-13 08:52:15 [INFO] [LWC] Connecting to SQLite 2013-07-13 08:52:15 [SEVERE] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String 2013-07-13 08:52:15 [SEVERE] at com.griefcraft.sql.PhysDB.performDatabaseUpdates(PhysDB.java:469) 2013-07-13 08:52:15 [SEVERE] at com.griefcraft.sql.PhysDB.load(PhysDB.java:393) 2013-07-13 08:52:15 [SEVERE] at com.griefcraft.lwc.LWC.load(LWC.java:1427) 2013-07-13 08:52:15 [SEVERE] at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:203) 2013-07-13 08:52:15 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 2013-07-13 08:52:15 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) 2013-07-13 08:52:15 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 2013-07-13 08:52:15 [SEVERE] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:282) 2013-07-13 08:52:15 [SEVERE] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264) 2013-07-13 08:52:15 [SEVERE] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.(CraftServer.java:218) 2013-07-13 08:52:15 [SEVERE] at net.minecraft.server.v1_6_R2.PlayerList.(PlayerList.java:56) 2013-07-13 08:52:15 [SEVERE] at net.minecraft.server.v1_6_R2.DedicatedPlayerList.(SourceFile:11) 2013-07-13 08:52:15 [SEVERE] at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106) 2013-07-13 08:52:15 [SEVERE] at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) 2013-07-13 08:52:15 [SEVERE] at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)

Stormbow commented 10 years ago

Check the following folder: plugins\LWC\lib\native\Windows\amd64 for the file named sqlitejdbc.dll. If the file is 0 kb, download it from BitBucket: http://bit.ly/1fSbw9l

Left click the "View Raw File" link on the bottom right of the webpage linked above, to save the file. (Or use your browser's right-click and "save as" option.)

This solved a similar problem I was having.