vanZeben/Mail — Issue #5: Errors
Author: McLovn73
Created: 2011-10-10 09:36:13+00:00
State: open

i drag and drop the mail.jar into my plugins folder and apon server start i get a huge error, please fix.
2011-10-10 20:28:32 [INFO] [Mail] Using: Permissions.
2011-10-10 20:28:33 [INFO] CButD: CraftBukkit is up to Date
2011-10-10 20:28:33 [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.
2011-10-10 20:28:33 [INFO] SQLState: 08S01
2011-10-10 20:28:33 [INFO] VendorError: 0
2011-10-10 20:28:33 [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.
2011-10-10 20:28:33 [SEVERE]	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2011-10-10 20:28:33 [SEVERE]	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.lang.reflect.Constructor.newInstance(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.MysqlIO.(MysqlIO.java:343)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:794)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
2011-10-10 20:28:33 [SEVERE]	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2011-10-10 20:28:33 [SEVERE]	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.lang.reflect.Constructor.newInstance(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
2011-10-10 20:28:33 [SEVERE]	at java.sql.DriverManager.getConnection(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.sql.DriverManager.getConnection(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at com.imdeity.mail.MySQLConnection.(MySQLConnection.java:28)
2011-10-10 20:28:33 [SEVERE]	at com.imdeity.mail.Mail.setupDatabase(Mail.java:63)
2011-10-10 20:28:33 [SEVERE]	at com.imdeity.mail.Mail.onEnable(Mail.java:38)
2011-10-10 20:28:33 [SEVERE]	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
2011-10-10 20:28:33 [SEVERE]	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:941)
2011-10-10 20:28:33 [SEVERE]	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
2011-10-10 20:28:33 [SEVERE]	at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
2011-10-10 20:28:33 [SEVERE]	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
2011-10-10 20:28:33 [SEVERE]	at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
2011-10-10 20:28:33 [SEVERE]	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
2011-10-10 20:28:33 [SEVERE]	at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
2011-10-10 20:28:33 [SEVERE]	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
2011-10-10 20:28:33 [SEVERE]	at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
2011-10-10 20:28:33 [SEVERE] Caused by: java.net.ConnectException: Connection refused: connect
2011-10-10 20:28:33 [SEVERE]	at java.net.DualStackPlainSocketImpl.connect0(Native Method)
2011-10-10 20:28:33 [SEVERE]	at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.net.PlainSocketImpl.connect(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.net.SocksSocketImpl.connect(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.net.Socket.connect(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.net.Socket.connect(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.net.Socket.(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at java.net.Socket.(Unknown Source)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)
2011-10-10 20:28:33 [SEVERE]	at com.mysql.jdbc.MysqlIO.(MysqlIO.java:292)
2011-10-10 20:28:33 [SEVERE]	... 27 more
2011-10-10 20:28:33 [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:126)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:941)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
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)