Solved the last packet sent successfully

Discussion in 'Spigot Plugin Development' started by Lifeonblack, May 21, 2017.

  1. Hello what does this mean?
    Code (Java):
    The last packet sent successfully to the server was 0 milliseconds ago. The driv
    er has not received any packets from the server.
    [14:58:15 WARN]:        at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    [14:58:15 WARN]:        at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (Unknown Source)
    [14:58:15 WARN]:        at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(Unknown Source)
    [14:58:15 WARN]:        at java.lang.reflect.Constructor.newInstance(Unknown Sou
    rce)
    [14:58:15 WARN]:        at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
    [14:58:15 WARN]:        at com.mysql.jdbc.SQLError.createCommunicationsException
    (SQLError.java:989)
    [14:58:15 WARN]:        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:341)
    [14:58:15 WARN]:        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionI
    mpl.java:2251)
    [14:58:15 WARN]:        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(Conne
    ctionImpl.java:2284)
    [14:58:15 WARN]:        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionI
    mpl.java:2083)
    [14:58:15 WARN]:        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.j
    ava:806)
    [14:58:15 WARN]:        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection
    .java:47)
    [14:58:15 WARN]:        at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    [14:58:15 WARN]:        at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (Unknown Source)
    [14:58:15 WARN]:        at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(Unknown Source)
    [14:58:15 WARN]:        at java.lang.reflect.Constructor.newInstance(Unknown Sou
    rce)
    [14:58:15 WARN]:        at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
    [14:58:15 WARN]:        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionI
    mpl.java:410)
    [14:58:15 WARN]:        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegist
    eringDriver.java:328)
    [14:58:15 WARN]:        at java.sql.DriverManager.getConnection(Unknown Source)
    [14:58:15 WARN]:        at java.sql.DriverManager.getConnection(Unknown Source)
    [14:58:15 WARN]:        at me.lifeonblack.AuthPin.mysql.MySQL.openConnection(MyS
    QL.java:43)
    [14:58:15 WARN]:        at me.lifeonblack.AuthPin.AuthPin.onEnable(AuthPin.java:
    50)
    [14:58:15 WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:271)
    [14:58:15 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:337)
    [14:58:15 WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:405)
    [14:58:15 WARN]:        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlu
    gin(CraftServer.java:376)
    [14:58:15 WARN]:        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlu
    gins(CraftServer.java:326)
    [14:58:15 WARN]:        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.reload(Cr
    aftServer.java:750)
    [14:58:15 WARN]:        at org.bukkit.Bukkit.reload(Bukkit.java:540)
    [14:58:15 WARN]:        at org.bukkit.command.defaults.ReloadCommand.execute(Rel
    oadCommand.java:25)
    [14:58:15 WARN]:        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:141)
    [14:58:15 WARN]:        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchC
    ommand(CraftServer.java:650)
    [14:58:15 WARN]:        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchS
    erverCommand(CraftServer.java:636)
    [14:58:15 WARN]:        at net.minecraft.server.v1_11_R1.DedicatedServer.aM(Dedi
    catedServer.java:437)
    [14:58:15 WARN]:        at net.minecraft.server.v1_11_R1.DedicatedServer.D(Dedic
    atedServer.java:400)
    [14:58:15 WARN]:        at net.minecraft.server.v1_11_R1.MinecraftServer.C(Minec
    raftServer.java:678)
    [14:58:15 WARN]:        at net.minecraft.server.v1_11_R1.MinecraftServer.run(Min
    ecraftServer.java:576)
    [14:58:15 WARN]:        at java.lang.Thread.run(Unknown Source)
    [14:58:15 WARN]: Caused by: java.net.UnknownHostException: null
    [14:58:15 WARN]:        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Me
    thod)
    [14:58:15 WARN]:        at java.net.InetAddress$2.lookupAllHostAddr(Unknown Sour
    ce)
    [14:58:15 WARN]:        at java.net.InetAddress.getAddressesFromNameService(Unkn
    own Source)
    [14:58:15 WARN]:        at java.net.InetAddress.getAllByName0(Unknown Source)
    [14:58:15 WARN]:        at java.net.InetAddress.getAllByName(Unknown Source)
    [14:58:15 WARN]:        at java.net.InetAddress.getAllByName(Unknown Source)
    [14:58:15 WARN]:        at com.mysql.jdbc.StandardSocketFactory.connect(Standard
    SocketFactory.java:188)
    [14:58:15 WARN]:        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
    [14:58:15 WARN]:        ... 32 more
    could anyone help me?
     
  2. This would be your problem right here, I take it you are using MySqL database, this seems to be a connection error between the plugin and the DB, check you have copied the ip correctly and make sure the server (MySqL) is online and accessible
     
  3. most likely :) *sighs* flog me now ahahahah sorry for being mistaken, wrong getting string process.
     
    • Like Like x 1