Having some trouble with MySQL and Bukkit

Discussion in 'Plugin Development' started by Puppier, Oct 1, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Puppier

    Here are the errors I am getting:
    Code:
    151 recipes
    16 achievements
    13:13:52 [INFO] Starting minecraft server version Beta 1.7.3
    13:13:52 [INFO] Loading properties
    13:13:52 [INFO] Starting Minecraft server on *:25565
    13:13:53 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-
    g73697a4-b1000jnks (MC: 1.7.3)
    13:13:53 [INFO] Preparing level "world"
    13:13:53 [INFO] Preparing start region for level 0 (Seed: 2507491385842608393)
    13:13:54 [INFO] Preparing spawn area: 44%
    13:13:55 [INFO] Preparing spawn area: 89%
    13:13:56 [INFO] Preparing start region for level 1 (Seed: 2507491385842608393)
    13:13:56 [INFO] Preparing spawn area: 52%
    13:13:57 [INFO] EZCensor On.
    13:13:57 [INFO] This server is protected by GriefAway.
    13:14:19 [SEVERE] lib.PatPeter.SQLibrary[MySQL] jdbc:mysql://sql109.000space.com
    :3306/space\_7313519\_mcban
    13:14:19 [SEVERE] lib.PatPeter.SQLibrary[MySQL] Could not be resolved because of
     an SQL Exception: Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driv
    er has not received any packets from the server..
    13:14:40 [SEVERE] lib.PatPeter.SQLibrary[MySQL] jdbc:mysql://sql109.000space.com
    :3306/space\_7313519\_mcban
    13:14:40 [SEVERE] lib.PatPeter.SQLibrary[MySQL] Could not be resolved because of
     an SQL Exception: Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driv
    er has not received any packets from the server..
    13:14:40 [SEVERE] Error occurred while enabling GriefAway v0.01 (Is it up to dat
    e?): null
    java.lang.NullPointerException
            at lib.PatPeter.SQLibrary.MySQL.query(MySQL.java:130)
            at me.Puppier.GriefAway.GriefAway.server(GriefAway.java:71)
            at me.Puppier.GriefAway.GriefAway.onEnable(GriefAway.java:58)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:878)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:272)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    13:14:40 [INFO] Op+ Has Been Activated.
    13:14:40 [INFO] Server permissions file permissions.yml is empty, ignoring it
    13:14:40 [INFO] Done (4.669s)! For help, type "help" or "?"
    >
    I do not know whats going on because all my code is error free. I am using the SQLibrary here.
    What am I doing wrong? My code at line 71 is this:
    Code:
    ResultSet serverips = mysql.query("SELECT 'ip' FROM 'Servers'");
    Defining the mysql variable:
    Code:
    private static MySQL mysql;
    '
    And:
    Code:
    GriefAway.mysql = new MySQL(this.log,"lib.PatPeter.SQLibrary","[CENSORED]","[CENSORED]","[CENSORED]","[CENSORED]","[CENSORED]");
    I censored all personal info out.
     
  2. Offline

    Lolmewn Retired Staff

    Sorry to ask.. but is MySQL on?
     
  3. Offline

    Puppier

    What do you mean? Where do I turn it on? (Sorry I am new at this)
     
  4. Offline

    PatPeter

Thread Status:
Not open for further replies.

Share This Page