CraftConomy

154k Downloads

iConomy6 MySQL convert does not work properly

EvilOlaf opened this issue ยท 0 comments

commented

I could do the setup routine till I had to enter the login credentials for the database to convert:

mysql selected. Now, Please enter the correct values for the database format chosen. Syntax is: /ccsetup convert <address, port, username, password, database> <value>
Example: /ccsetup convert address test
[16:32:43 INFO]: Olaf issued server command: /ccsetup convert localhost 3306 myexistingdb veryevilpassword myexistingdb
# No luck
[16:32:56 INFO]: Olaf issued server command: /ccsetup convert localhost 3306 myexistingdb veryevilpassword myexistingdb test
# No luck
[16:32:59 INFO]: Olaf issued server command: /ccsetup convert localhost 3306 myexistingdb veryevilpassword myexistingdb
# No luck
[16:33:12 INFO]: Olaf issued server command: /ccsetup convert localhost 3306 myexistingdb veryevilpassword
# No luck
[16:33:15 INFO]: Olaf issued server command: /ccsetup convert localhost
[16:33:15 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'ccsetup' in plugin Craftconomy3 v3.3-e72ac42-trv178
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_60]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_60]
        at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at com.greatmancode.craftconomy3.commands.setup.NewSetupConvertCommand.selectValues(NewSetupConvertCommand.java:87) ~[?:?]
        at com.greatmancode.craftconomy3.commands.setup.NewSetupConvertCommand.execute(NewSetupConvertCommand.java:54) ~[?:?]
        at com.greatmancode.craftconomy3.tools.commands.SubCommand.execute(SubCommand.java:69) ~[?:?]
        at com.greatmancode.craftconomy3.tools.commands.bukkit.BukkitCommandReceiver.onCommand(BukkitCommandReceiver.java:51) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8.jar:git-Spigot-76236cb-62a2169]
        ... 15 more
[16:33:18 INFO]: Olaf issued server command: /ccsetup convert localhost 3306
# From this point CC3 does not recognize /ccsetup commands anymore.

As an additional suggestion. If the database setup has been completed and the further setup fails for any reason and you have to restart the server the whole procedure has to be done again even though those values have been written to the config file already. Did not test if Setup: false would allow to skip this as well as starting a conversion process.

Thanks for reading.

Best regards
Olaf