Ok, for my vote system, hiscores, and donation system. Whenever i type something such as ::voted, or :onated, or re-log to save hiscores it will crash the server if my website is down that the server is connected to. Does anyone know how to fix this so that if the website is down, and i type the command, it will not disconnect the server?
This is the error i get on the run.bat when this error happens:
Code:
The last packet successfully received from the server was 1,324,336,532,044 mill
iseconds ago. The last packet sent successfully to the server was 0 millisecond
s ago.
[12/19/11 3:15 PM]: at sun.reflect.GeneratedConstructorAccessor9.newInstance
(Unknown Source)
[12/19/11 3:15 PM]: at sun.reflect.DelegatingConstructorAccessorImpl.newInst
ance(Unknown Source)
[12/19/11 3:15 PM]: at java.lang.reflect.Constructor.newInstance(Unknown Sou
rce)
[12/19/11 3:15 PM]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
[12/19/11 3:15 PM]: at com.mysql.jdbc.SQLError.createCommunicationsException
(SQLError.java:1074)
[12/19/11 3:15 PM]: at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:341)
[12/19/11 3:15 PM]: at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionI
mpl.java:2137)
[12/19/11 3:15 PM]: ... 25 more
[12/19/11 3:15 PM]: Caused by: java.net.ConnectException: Connection timed out:
connect
[12/19/11 3:15 PM]: at java.net.PlainSocketImpl.socketConnect(Native Method)
[12/19/11 3:15 PM]: at java.net.PlainSocketImpl.doConnect(Unknown Source)
[12/19/11 3:15 PM]: at java.net.PlainSocketImpl.connectToAddress(Unknown Sou
rce)
[12/19/11 3:15 PM]: at java.net.PlainSocketImpl.connect(Unknown Source)
[12/19/11 3:15 PM]: at java.net.SocksSocketImpl.connect(Unknown Source)
[12/19/11 3:15 PM]: at java.net.Socket.connect(Unknown Source)
[12/19/11 3:15 PM]: at java.net.Socket.connect(Unknown Source)
[12/19/11 3:15 PM]: at java.net.Socket.<init>(Unknown Source)
[12/19/11 3:15 PM]: at java.net.Socket.<init>(Unknown Source)
[12/19/11 3:15 PM]: at com.mysql.jdbc.StandardSocketFactory.connect(Standard
SocketFactory.java:253)
[12/19/11 3:15 PM]: at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:290)
[12/19/11 3:15 PM]: ... 26 more
Thanks.