greatman / Craftconomy

A MultiWorld/MultiCurrency economy plugin for Craftbukkit * DEPRECATED. Go in http://github.com/greatman/Craftconomy3 *
http://dev.bukkit.org/server-mods/craftconomy/
4 stars 1 forks source link

Array index out of bounds #29

Open Malkierian opened 12 years ago

Malkierian commented 12 years ago

I get this weird error when starting up Craftconomy these days (it's the same whether running latest release or latest dev build).

2012-07-31 19:00:35 [INFO] [Craftconomy] Enabling Craftconomy v2.3.5-b${BUILD_NUMBER}
2012-07-31 19:00:35 [INFO] [Craftconomy 2.3.5-b${BUILD_NUMBER}]Starting
2012-07-31 19:00:35 [INFO] [Craftconomy 2.3.5-b${BUILD_NUMBER}]Database loaded!
2012-07-31 19:00:35 [INFO] [Craftconomy 2.3.5-b${BUILD_NUMBER}]Spout not found. Disabling Spout features.
2012-07-31 19:00:35 [INFO] [Craftconomy 2.3.5-b${BUILD_NUMBER}]PayDay system loaded.
2012-07-31 19:00:35 [INFO] [Craftconomy 2.3.5-b${BUILD_NUMBER}]Started!
2012-07-31 19:00:35 [SEVERE] Error occurred while enabling Craftconomy v2.3.5-b${BUILD_NUMBER} (Is it up to date?)
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
    at java.util.Vector.get(Vector.java:694)
    at com.sun.rowset.CachedRowSetImpl.getCurrentRow(CachedRowSetImpl.java:1646)
    at com.sun.rowset.CachedRowSetImpl.getString(CachedRowSetImpl.java:1693)
    at com.sun.rowset.CachedRowSetImpl.getString(CachedRowSetImpl.java:2473)
    at me.greatman.Craftconomy.utils.DatabaseHandler.getCurrencyNames(DatabaseHandler.java:1001)
    at me.greatman.Craftconomy.Currency.<init>(Currency.java:54)
    at me.greatman.Craftconomy.Craftconomy.onEnable(Craftconomy.java:200)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:381)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:197)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

I've traced it to the Currency name grabber, but I've checked my database stuff and it's just fine. It's pointing to the right table, and that table has one currency in it: Coin(minor), Coins(minorplural), Sheen(name), Sheens(plural), with index of 1.