powered by Jive Software

Openfire service shutsdown by itself

Hi,

I am having an issue where at roughly the same time everyday the openfire service shuts itself down. Looking at the log it seems to be a problem connecting to the database but i’m not sure why.

The error log can be found below (sorry I don’t know how to add it as a spoiler).

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:151)

at org.jivesoftware.database.DbConnectionManager.getTransactionConnection(DbConnec tionManager.java:164)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.purgeItems(PubSubPers istenceManager.java:1870)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.shutdown(PubSubPersis tenceManager.java:1945)

at org.jivesoftware.openfire.pubsub.PubSubEngine.shutdown(PubSubEngine.java:1741)

at org.jivesoftware.openfire.pubsub.PubSubModule.stop(PubSubModule.java:467)

at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:968)

at org.jivesoftware.openfire.XMPPServer.access$800(XMPPServer.java:129)

at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:914 )

2014.06.27 08:24:24 org.jivesoftware.util.log.util.CommonsLogFactory - Prototype

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.

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:534)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)

at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1127)

at com.mysql.jdbc.MysqlIO.(MysqlIO.java:356)

at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2502)

at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2539)

at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2321)

at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:832)

at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:534)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)

at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)

at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)

at java.sql.DriverManager.getConnection(DriverManager.java:615)

at java.sql.DriverManager.getConnection(DriverManager.java:167)

at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConn ectionBuilder.java:39)

at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)

at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102)

at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44)

Caused by: java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java: 193)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)

at java.net.Socket.connect(Socket.java:546)

at java.net.Socket.connect(Socket.java:495)

at java.net.Socket.(Socket.java:392)

at java.net.Socket.(Socket.java:235)

at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)

at com.mysql.jdbc.MysqlIO.(MysqlIO.java:306)

… 18 more

2014.06.27 08:24:26 org.jivesoftware.openfire.pubsub.PubSubPersistenceManager - ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:151)

at org.jivesoftware.database.DbConnectionManager.getTransactionConnection(DbConnec tionManager.java:164)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.purgeItems(PubSubPers istenceManager.java:1870)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.shutdown(PubSubPersis tenceManager.java:1945)

at org.jivesoftware.openfire.pubsub.PubSubEngine.shutdown(PubSubEngine.java:1741)

at org.jivesoftware.openfire.pep.PEPServiceManager.stop(PEPServiceManager.java:208 )

at org.jivesoftware.openfire.pep.IQPEPHandler.stop(IQPEPHandler.java:201)

at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:968)

at org.jivesoftware.openfire.XMPPServer.access$800(XMPPServer.java:129)

at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:914 )

2014.06.27 08:24:29 org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to error while processing message: <stream:stream to=“jabber.constructivecrit.org” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0”>

java.lang.IllegalStateException: Server not initialized

at org.jivesoftware.openfire.SessionManager.createClientSession(SessionManager.jav a:334)

at org.jivesoftware.openfire.SessionManager.createClientSession(SessionManager.jav a:322)

at org.jivesoftware.openfire.session.LocalClientSession.createSession(LocalClientS ession.java:278)

at org.jivesoftware.openfire.net.ClientStanzaHandler.createSession(ClientStanzaHan dler.java:83)

at org.jivesoftware.openfire.net.StanzaHandler.createSession(StanzaHandler.java:61 7)

at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:126)

at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandl er.java:181)

at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived (AbstractIoFilterChain.java:570)

at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

at org.apache.mina.common.IoFilterAdapter.messageReceived(IoFilterAdapter.java:80)

at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimplePr otocolDecoderOutput.java:58)

at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:185)

at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java :239)

at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Execut orFilter.java:283)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)

at java.lang.Thread.run(Thread.java:701)

2014.06.27 08:24:29 org.jivesoftware.openfire.pubsub.PubSubPersistenceManager - ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:151)

at org.jivesoftware.database.DbConnectionManager.getTransactionConnection(DbConnec tionManager.java:164)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.purgeItems(PubSubPers istenceManager.java:1870)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.shutdown(PubSubPersis tenceManager.java:1945)

at org.jivesoftware.openfire.pubsub.PubSubEngine.shutdown(PubSubEngine.java:1741)

at org.jivesoftware.openfire.pep.PEPServiceManager.stop(PEPServiceManager.java:208 )

at org.jivesoftware.openfire.pep.IQPEPHandler.stop(IQPEPHandler.java:201)

at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:968)

at org.jivesoftware.openfire.XMPPServer.access$800(XMPPServer.java:129)

at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:914 )

2014.06.27 08:24:32 org.jivesoftware.openfire.pubsub.PubSubPersistenceManager - ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:151)

at org.jivesoftware.database.DbConnectionManager.getTransactionConnection(DbConnec tionManager.java:164)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.purgeItems(PubSubPers istenceManager.java:1870)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.shutdown(PubSubPersis tenceManager.java:1945)

at org.jivesoftware.openfire.pubsub.PubSubEngine.shutdown(PubSubEngine.java:1741)

at org.jivesoftware.openfire.pep.PEPServiceManager.stop(PEPServiceManager.java:208 )

at org.jivesoftware.openfire.pep.IQPEPHandler.stop(IQPEPHandler.java:201)

at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:968)

at org.jivesoftware.openfire.XMPPServer.access$800(XMPPServer.java:129)

at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:914 )

2014.06.27 08:24:34 org.jivesoftware.openfire.reporting.stats.RrdSqlBackend - Error while accessing information in database: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

2014.06.27 08:24:34 org.jivesoftware.openfire.reporting.stats.StatsEngine - Error sampling for statistic muc_outgoing

java.io.FileNotFoundException: Could not open muc_traffic [non existent]

at org.jrobin.core.RrdDb.(Unknown Source)

at org.jrobin.core.RrdDb.(Unknown Source)

at org.jivesoftware.openfire.reporting.stats.StatsEngine$SampleTask.run(StatsEngin e.java:362)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:701)

2014.06.27 08:24:34 org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to error while processing message: <stream:stream to=‘jabber.constructivecrit.org’ xmlns=‘jabber:client’ xmlns:stream=‘http://etherx.jabber.org/streams’ version=‘1.0’>

java.lang.IllegalStateException: Server not initialized

at org.jivesoftware.openfire.SessionManager.createClientSession(SessionManager.jav a:334)

at org.jivesoftware.openfire.SessionManager.createClientSession(SessionManager.jav a:322)

at org.jivesoftware.openfire.session.LocalClientSession.createSession(LocalClientS ession.java:278)

at org.jivesoftware.openfire.net.ClientStanzaHandler.createSession(ClientStanzaHan dler.java:83)

at org.jivesoftware.openfire.net.StanzaHandler.createSession(StanzaHandler.java:61 7)

at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:126)

at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandl er.java:181)

at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived (AbstractIoFilterChain.java:570)

at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

at org.apache.mina.common.IoFilterAdapter.messageReceived(IoFilterAdapter.java:80)

at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimplePr otocolDecoderOutput.java:58)

at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:185)

at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java :239)

at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Execut orFilter.java:283)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)

at java.lang.Thread.run(Thread.java:701)

2014.06.27 08:24:35 org.jivesoftware.openfire.pubsub.PubSubPersistenceManager - ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:151)

at org.jivesoftware.database.DbConnectionManager.getTransactionConnection(DbConnec tionManager.java:164)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.purgeItems(PubSubPers istenceManager.java:1870)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.shutdown(PubSubPersis tenceManager.java:1945)

at org.jivesoftware.openfire.pubsub.PubSubEngine.shutdown(PubSubEngine.java:1741)

at org.jivesoftware.openfire.pep.PEPServiceManager.stop(PEPServiceManager.java:208 )

at org.jivesoftware.openfire.pep.IQPEPHandler.stop(IQPEPHandler.java:201)

at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:968)

at org.jivesoftware.openfire.XMPPServer.access$800(XMPPServer.java:129)

at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:914 )

2014.06.27 08:24:37 org.jivesoftware.openfire.reporting.stats.RrdSqlBackend - Error while accessing information in database: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

2014.06.27 08:24:37 org.jivesoftware.openfire.reporting.stats.StatsEngine - Error sampling for statistic server_sessions

java.io.FileNotFoundException: Could not open server_sessions [non existent]

at org.jrobin.core.RrdDb.(Unknown Source)

at org.jrobin.core.RrdDb.(Unknown Source)

at org.jivesoftware.openfire.reporting.stats.StatsEngine$SampleTask.run(StatsEngin e.java:362)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:701)

2014.06.27 08:24:38 org.jivesoftware.openfire.pubsub.PubSubPersistenceManager - ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:151)

at org.jivesoftware.database.DbConnectionManager.getTransactionConnection(DbConnec tionManager.java:164)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.purgeItems(PubSubPers istenceManager.java:1870)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.shutdown(PubSubPersis tenceManager.java:1945)

at org.jivesoftware.openfire.pubsub.PubSubEngine.shutdown(PubSubEngine.java:1741)

at org.jivesoftware.openfire.pep.PEPServiceManager.stop(PEPServiceManager.java:208 )

at org.jivesoftware.openfire.pep.IQPEPHandler.stop(IQPEPHandler.java:201)

at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:968)

at org.jivesoftware.openfire.XMPPServer.access$800(XMPPServer.java:129)

at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:914 )

2014.06.27 08:24:39 org.jivesoftware.openfire.reporting.stats.RrdSqlBackend - Error while accessing information in database: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

2014.06.27 08:24:39 org.jivesoftware.openfire.reporting.stats.StatsEngine - Error sampling for statistic muc_rooms

java.io.FileNotFoundException: Could not open muc_rooms [non existent]

at org.jrobin.core.RrdDb.(Unknown Source)

at org.jrobin.core.RrdDb.(Unknown Source)

at org.jivesoftware.openfire.reporting.stats.StatsEngine$SampleTask.run(StatsEngin e.java:362)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:701)

2014.06.27 08:24:40 org.jivesoftware.openfire.pubsub.PubSubPersistenceManager - ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:151)

at org.jivesoftware.database.DbConnectionManager.getTransactionConnection(DbConnec tionManager.java:164)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.purgeItems(PubSubPers istenceManager.java:1870)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.shutdown(PubSubPersis tenceManager.java:1945)

at org.jivesoftware.openfire.pubsub.PubSubEngine.shutdown(PubSubEngine.java:1741)

at org.jivesoftware.openfire.pep.PEPServiceManager.stop(PEPServiceManager.java:208 )

at org.jivesoftware.openfire.pep.IQPEPHandler.stop(IQPEPHandler.java:201)

at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:968)

at org.jivesoftware.openfire.XMPPServer.access$800(XMPPServer.java:129)

at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:914 )

2014.06.27 08:24:42 org.jivesoftware.openfire.reporting.stats.RrdSqlBackend - Error while accessing information in database: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

2014.06.27 08:24:42 org.jivesoftware.openfire.reporting.stats.StatsEngine - Error sampling for statistic conversations

java.io.FileNotFoundException: Could not open conversations [non existent]

at org.jrobin.core.RrdDb.(Unknown Source)

at org.jrobin.core.RrdDb.(Unknown Source)

at org.jivesoftware.openfire.reporting.stats.StatsEngine$SampleTask.run(StatsEngin e.java:362)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:701)

2014.06.27 08:24:43 org.jivesoftware.openfire.pubsub.PubSubPersistenceManager - ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:151)

at org.jivesoftware.database.DbConnectionManager.getTransactionConnection(DbConnec tionManager.java:164)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.purgeItems(PubSubPers istenceManager.java:1870)

at org.jivesoftware.openfire.pubsub.PubSubPersistenceManager.shutdown(PubSubPersis tenceManager.java:1945)

at org.jivesoftware.openfire.pubsub.PubSubEngine.shutdown(PubSubEngine.java:1741)

at org.jivesoftware.openfire.pep.PEPServiceManager.stop(PEPServiceManager.java:208 )

at org.jivesoftware.openfire.pep.IQPEPHandler.stop(IQPEPHandler.java:201)

at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:968)

at org.jivesoftware.openfire.XMPPServer.access$800(XMPPServer.java:129)

at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:914 )

2014.06.27 08:24:45 org.jivesoftware.openfire.reporting.stats.RrdSqlBackend - Error while accessing information in database: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: 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.

2014.06.27 08:24:45 org.jivesoftware.openfire.reporting.stats.StatsEngine - Error sampling for statistic muc_users

java.io.FileNotFoundException: Could not open muc_users [non existent]

at org.jrobin.core.RrdDb.(Unknown Source)

at org.jrobin.core.RrdDb.(Unknown Source)

at org.jivesoftware.openfire.reporting.stats.StatsEngine$SampleTask.run(StatsEngin e.java:362)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:701)