vanZeben/Mail — Issue #6: Not working b1317 - Please Update
Author: meiamone
Created: 2011-10-18 05:33:32+00:00
State: open

00:29:58 [INFO] [Mail] Using: Permissions.
00:29:58 [INFO] SQLException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
00:29:58 [INFO] SQLState: 08S01
00:29:58 [INFO] VendorError: 0
00:29:58 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
00:29:58 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
00:29:58 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
00:29:58 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
00:29:58 [SEVERE] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
00:29:58 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
00:29:58 [SEVERE] at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
00:29:58 [SEVERE] at com.mysql.jdbc.MysqlIO.(MysqlIO.java:343)
00:29:58 [SEVERE] at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)
00:29:58 [SEVERE] at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
00:29:58 [SEVERE] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
00:29:58 [SEVERE] at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:794)
00:29:58 [SEVERE] at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
00:29:58 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
00:29:58 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
00:29:58 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
00:29:58 [SEVERE] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
00:29:58 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
00:29:58 [SEVERE] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
00:29:58 [SEVERE] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
00:29:58 [SEVERE] at java.sql.DriverManager.getConnection(DriverManager.java:582)
00:29:58 [SEVERE] at java.sql.DriverManager.getConnection(DriverManager.java:207)
00:29:58 [SEVERE] at com.imdeity.mail.MySQLConnection.(MySQLConnection.java:28)
00:29:58 [SEVERE] at com.imdeity.mail.Mail.setupDatabase(Mail.java:63)
00:29:58 [SEVERE] at com.imdeity.mail.Mail.onEnable(Mail.java:38)
00:29:58 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:170)
00:29:58 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
00:29:58 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
00:29:58 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
00:29:58 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
00:29:58 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
00:29:58 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
00:29:58 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
00:29:58 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
00:29:58 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
00:29:58 [SEVERE] Caused by: java.net.ConnectException: Connection refused
00:29:58 [SEVERE] at java.net.PlainSocketImpl.socketConnect(Native Method)
00:29:58 [SEVERE] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
00:29:58 [SEVERE] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
00:29:58 [SEVERE] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
00:29:58 [SEVERE] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
00:29:58 [SEVERE] at java.net.Socket.connect(Socket.java:529)
00:29:58 [SEVERE] at java.net.Socket.connect(Socket.java:478)
00:29:58 [SEVERE] at java.net.Socket.(Socket.java:375)
00:29:58 [SEVERE] at java.net.Socket.(Socket.java:218)
00:29:58 [SEVERE] at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)
00:29:58 [SEVERE] at com.mysql.jdbc.MysqlIO.(MysqlIO.java:292)
00:29:58 [
SEVERE] ... 27 more
00:29:58 [SEVERE] Error occurred while enabling Mail v0.6 (Is it up to date?): [Mail] Failed to create connection to Mysql database
com.avaje.ebeaninternal.server.lib.sql.DataSourceException: [Mail] Failed to create connection to Mysql database
at com.imdeity.mail.MySQLConnection.(MySQLConnection.java:32)
at com.imdeity.mail.Mail.setupDatabase(Mail.java:63)
at com.imdeity.mail.Mail.onEnable(Mail.java:38)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:170)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

00:25:02 [SEVERE] Could not pass event PLAYER_JOIN to Mail
java.lang.NullPointerException
at com.imdeity.mail.MailSQL.getUnreadCount(MailSQL.java:17)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:260)
at com.imdeity.mail.MailPlayerListener.onPlayerJoin(MailPlayerListener.java:16)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:129)
at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:121)
at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:39)
at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
00:25:02 [INFO] New max size: 484
00:25:02 [INFO] New max size: 784
00:25:16 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'mail' in plugin Mail v0.6
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
Caused by: java.lang.NullPointerException
at com.imdeity.mail.MailSQL.getAllMail(MailSQL.java:70)
at com.imdeity.mail.MailCommand.checkMail(MailCommand.java:69)
at com.imdeity.mail.MailCommand.parseCommand(MailCommand.java:46)
at com.imdeity.mail.MailCommand.onCommand(MailCommand.java:37)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)