jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Belrose <kafe...@gmail.com>
Subject Infinite loop in Jackrabbit after database disconnection.
Date Fri, 27 Aug 2010 10:59:27 GMT
Hi all,

I am building a RESTful Web Service using JackRabbit 2.1.1 backing to
a MySQL database (via connection pools). My web service layer is
directly talking to a JackRabbit core running within the application
server ( I am not using RMI or WebDAV). The REST web service provides
CRUD operations such as create a node, rename it, delete it, etc...
Each CRUD operation is executed within its own short-lived session.
For performance reasons, I am using RepositoryImpl instead of
TransientRepository in order to increase throughput.

I am currently testing the behaviour of JackRabbit when it loses
connection to the database. Here is what I do.

While the database is running, I create 10 nodes directly under the
repository root. Each node creation operation is done within a
dedicated short-lived session. All works fine. Then I stop the
database and try to create a node under the repository root node.
JackRabbit gets stuck into an infinite loop of exceptions.

Any clues as to why this is happening? (See exception trace at the end
of this message).

The same behaviour occurs when I use a TransientRepository with a
long-running read-only session to prevent the repository from starting
up / shutting down at each invocation.

Many thanks in advance.

Guillaume.

2010-08-27 11:27:40,890 ERROR [Thread-18]
[org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager]
- Failed to persist ChangeLog (stacktrace on DEBUG log level),
blockOnConnectionLoss = false
org.apache.jackrabbit.core.state.ItemStateException: 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.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.store(BundleDbPersistenceManager.java:484)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:752)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: 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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.startBatch(ConnectionHelper.java:208)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.store(BundleDbPersistenceManager.java:477)
	... 48 more
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 67 more
2010-08-27 11:27:42,000 ERROR [Thread-18]
[org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager]
- Failed to persist ChangeLog (stacktrace on DEBUG log level),
blockOnConnectionLoss = false
org.apache.jackrabbit.core.state.ItemStateException: 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.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.store(BundleDbPersistenceManager.java:484)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:752)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: 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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.startBatch(ConnectionHelper.java:208)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.store(BundleDbPersistenceManager.java:477)
	... 48 more
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 67 more
2010-08-27 11:27:43,000 ERROR [Thread-18]
[org.apache.jackrabbit.core.util.db.ConnectionHelper] - Failed to
execute SQL (stacktrace on DEBUG log level)
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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:344)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:65)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:332)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:450)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1072)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:459)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState(SharedItemStateManager.java:1738)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:301)
	at org.apache.jackrabbit.core.CachingHierarchyManager.stateDiscarded(CachingHierarchyManager.java:352)
	at org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateDiscarded(StateChangeDispatcher.java:131)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.stateDiscarded(SharedItemStateManager.java:432)
	at org.apache.jackrabbit.core.state.ItemState.notifyStateDiscarded(ItemState.java:226)
	at org.apache.jackrabbit.core.state.ItemState.discard(ItemState.java:370)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.cancel(SharedItemStateManager.java:832)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:760)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 83 more
2010-08-27 11:27:44,109 ERROR [Thread-18]
[org.apache.jackrabbit.core.util.db.ConnectionHelper] - Failed to
execute SQL (stacktrace on DEBUG log level)
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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:344)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:65)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:332)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:450)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1072)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:459)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState(SharedItemStateManager.java:1738)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:301)
	at org.apache.jackrabbit.core.CachingHierarchyManager.stateDiscarded(CachingHierarchyManager.java:352)
	at org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateDiscarded(StateChangeDispatcher.java:131)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.stateDiscarded(SharedItemStateManager.java:432)
	at org.apache.jackrabbit.core.state.ItemState.notifyStateDiscarded(ItemState.java:226)
	at org.apache.jackrabbit.core.state.ItemState.discard(ItemState.java:370)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.cancel(SharedItemStateManager.java:832)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:760)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 83 more
2010-08-27 11:27:44,171 ERROR [Thread-18]
[org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager]
- failed to read bundle: afc72363-0545-4164-98c7-cf99487349b0:
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.
2010-08-27 11:27:45,109 ERROR [Thread-18]
[org.apache.jackrabbit.core.util.db.ConnectionHelper] - Failed to
execute SQL (stacktrace on DEBUG log level)
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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:344)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:65)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:332)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:450)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1072)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:459)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState(SharedItemStateManager.java:1738)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:301)
	at org.apache.jackrabbit.core.version.VersionItemStateProvider.hasItemState(VersionItemStateProvider.java:140)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:310)
	at org.apache.jackrabbit.core.CachingHierarchyManager.stateDiscarded(CachingHierarchyManager.java:352)
	at org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateDiscarded(StateChangeDispatcher.java:131)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.stateDiscarded(SharedItemStateManager.java:432)
	at org.apache.jackrabbit.core.state.ItemState.notifyStateDiscarded(ItemState.java:226)
	at org.apache.jackrabbit.core.state.ItemState.discard(ItemState.java:370)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.cancel(SharedItemStateManager.java:832)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:760)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 85 more
2010-08-27 11:27:46,218 ERROR [Thread-18]
[org.apache.jackrabbit.core.util.db.ConnectionHelper] - Failed to
execute SQL (stacktrace on DEBUG log level)
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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:344)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:65)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:332)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:450)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1072)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:459)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState(SharedItemStateManager.java:1738)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:301)
	at org.apache.jackrabbit.core.version.VersionItemStateProvider.hasItemState(VersionItemStateProvider.java:140)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:310)
	at org.apache.jackrabbit.core.CachingHierarchyManager.stateDiscarded(CachingHierarchyManager.java:352)
	at org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateDiscarded(StateChangeDispatcher.java:131)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.stateDiscarded(SharedItemStateManager.java:432)
	at org.apache.jackrabbit.core.state.ItemState.notifyStateDiscarded(ItemState.java:226)
	at org.apache.jackrabbit.core.state.ItemState.discard(ItemState.java:370)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.cancel(SharedItemStateManager.java:832)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:760)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 85 more
2010-08-27 11:27:46,218 ERROR [Thread-18]
[org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager]
- failed to read bundle: afc72363-0545-4164-98c7-cf99487349b0:
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.
2010-08-27 11:27:47,234 ERROR [Thread-18]
[org.apache.jackrabbit.core.util.db.ConnectionHelper] - Failed to
execute SQL (stacktrace on DEBUG log level)
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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:344)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:65)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:332)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:450)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1072)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:459)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState(SharedItemStateManager.java:1738)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:301)
	at org.apache.jackrabbit.core.CachingHierarchyManager.stateDiscarded(CachingHierarchyManager.java:352)
	at org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateDiscarded(StateChangeDispatcher.java:131)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.stateDiscarded(SharedItemStateManager.java:432)
	at org.apache.jackrabbit.core.state.ItemState.notifyStateDiscarded(ItemState.java:226)
	at org.apache.jackrabbit.core.state.ItemState.discard(ItemState.java:370)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.cancel(SharedItemStateManager.java:832)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:760)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 83 more
2010-08-27 11:27:48,234 ERROR [Thread-18]
[org.apache.jackrabbit.core.util.db.ConnectionHelper] - Failed to
execute SQL (stacktrace on DEBUG log level)
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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:344)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:65)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:332)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:450)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1072)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:459)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState(SharedItemStateManager.java:1738)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:301)
	at org.apache.jackrabbit.core.CachingHierarchyManager.stateDiscarded(CachingHierarchyManager.java:352)
	at org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateDiscarded(StateChangeDispatcher.java:131)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.stateDiscarded(SharedItemStateManager.java:432)
	at org.apache.jackrabbit.core.state.ItemState.notifyStateDiscarded(ItemState.java:226)
	at org.apache.jackrabbit.core.state.ItemState.discard(ItemState.java:370)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.cancel(SharedItemStateManager.java:832)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:760)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 83 more
2010-08-27 11:27:48,234 ERROR [Thread-18]
[org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager]
- failed to read bundle: afc72363-0545-4164-98c7-cf99487349b0:
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.
2010-08-27 11:27:49,234 ERROR [Thread-18]
[org.apache.jackrabbit.core.util.db.ConnectionHelper] - Failed to
execute SQL (stacktrace on DEBUG log level)
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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:344)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:65)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:332)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:450)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1072)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:459)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState(SharedItemStateManager.java:1738)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:301)
	at org.apache.jackrabbit.core.version.VersionItemStateProvider.hasItemState(VersionItemStateProvider.java:140)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:310)
	at org.apache.jackrabbit.core.CachingHierarchyManager.stateDiscarded(CachingHierarchyManager.java:352)
	at org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateDiscarded(StateChangeDispatcher.java:131)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.stateDiscarded(SharedItemStateManager.java:432)
	at org.apache.jackrabbit.core.state.ItemState.notifyStateDiscarded(ItemState.java:226)
	at org.apache.jackrabbit.core.state.ItemState.discard(ItemState.java:370)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.cancel(SharedItemStateManager.java:832)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:760)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 85 more
2010-08-27 11:27:50,343 ERROR [Thread-18]
[org.apache.jackrabbit.core.util.db.ConnectionHelper] - Failed to
execute SQL (stacktrace on DEBUG log level)
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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:344)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:65)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:332)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:450)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1072)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:459)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState(SharedItemStateManager.java:1738)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:301)
	at org.apache.jackrabbit.core.version.VersionItemStateProvider.hasItemState(VersionItemStateProvider.java:140)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:310)
	at org.apache.jackrabbit.core.CachingHierarchyManager.stateDiscarded(CachingHierarchyManager.java:352)
	at org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateDiscarded(StateChangeDispatcher.java:131)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.stateDiscarded(SharedItemStateManager.java:432)
	at org.apache.jackrabbit.core.state.ItemState.notifyStateDiscarded(ItemState.java:226)
	at org.apache.jackrabbit.core.state.ItemState.discard(ItemState.java:370)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.cancel(SharedItemStateManager.java:832)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:760)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 85 more
2010-08-27 11:27:50,343 ERROR [Thread-18]
[org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager]
- failed to read bundle: afc72363-0545-4164-98c7-cf99487349b0:
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.
2010-08-27 11:27:51,359 ERROR [Thread-18]
[org.apache.jackrabbit.core.util.db.ConnectionHelper] - Failed to
execute SQL (stacktrace on DEBUG log level)
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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:344)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:65)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:332)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:450)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1072)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:459)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState(SharedItemStateManager.java:1738)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:301)
	at org.apache.jackrabbit.core.CachingHierarchyManager.stateDiscarded(CachingHierarchyManager.java:352)
	at org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateDiscarded(StateChangeDispatcher.java:131)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.stateDiscarded(SharedItemStateManager.java:432)
	at org.apache.jackrabbit.core.state.ItemState.notifyStateDiscarded(ItemState.java:226)
	at org.apache.jackrabbit.core.state.ItemState.discard(ItemState.java:370)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.cancel(SharedItemStateManager.java:832)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:760)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 83 more
2010-08-27 11:27:52,453 ERROR [Thread-18]
[org.apache.jackrabbit.core.util.db.ConnectionHelper] - Failed to
execute SQL (stacktrace on DEBUG log level)
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(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:384)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:344)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:65)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:332)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:450)
	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:328)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1072)
	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1029)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:651)
	at org.apache.jackrabbit.core.persistence.pool.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:459)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState(SharedItemStateManager.java:1738)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedItemStateManager.java:301)
	at org.apache.jackrabbit.core.CachingHierarchyManager.stateDiscarded(CachingHierarchyManager.java:352)
	at org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateDiscarded(StateChangeDispatcher.java:131)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.stateDiscarded(SharedItemStateManager.java:432)
	at org.apache.jackrabbit.core.state.ItemState.notifyStateDiscarded(ItemState.java:226)
	at org.apache.jackrabbit.core.state.ItemState.discard(ItemState.java:370)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.cancel(SharedItemStateManager.java:832)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:760)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1485)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
	at com.quantel.folderservice.FolderService.doInSession(FolderService.java:736)
	at com.quantel.folderservice.FolderService.doInReadWriteSessionWithRetries(FolderService.java:764)
	at com.quantel.folderservice.FolderService.createFolder(FolderService.java:278)
	at com.quantel.folderservice.FolderCollectionRestlet.handlePOST(FolderCollectionRestlet.java:86)
	at com.quantel.folderservice.FolderCollectionRestlet.handle(FolderCollectionRestlet.java:39)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
	at org.restlet.Application.handle(Application.java:341)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Router.handle(Router.java:504)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
	at org.restlet.Filter.handle(Filter.java:195)
	at org.restlet.Filter.doHandle(Filter.java:150)
	at org.restlet.Filter.handle(Filter.java:195)
	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
	at org.restlet.Component.handle(Component.java:673)
	at org.restlet.Server.handle(Server.java:331)
	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
	at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHandler.java:75)
	at simple.http.Dispatcher.run(Dispatcher.java:83)
	at simple.util.process.Daemon.execute(Daemon.java:121)
	at simple.util.process.Daemon.run(Daemon.java:106)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 83 more

Mime
View raw message