uk.ac.cam.caret.jnama.web.RendererException: Unanticipated exception at uk.ac.cam.caret.jnama.web.Request.process(Request.java:147) at uk.ac.cam.caret.jnama.web.WebServlet.process(WebServlet.java:44) at uk.ac.cam.caret.jnama.web.WebServlet.doGet(WebServlet.java:27) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) Caused by: uk.ac.cam.caret.archive.DataLayerFailure: Could not close connection at uk.ac.cam.caret.archiveimpl.impl.sql.SQLConnection.(SQLConnection.java:20) at uk.ac.cam.caret.archiveimpl.impl.sql.SQLMain.getConnection(SQLMain.java:55) at uk.ac.cam.caret.archiveimpl.impl.ArchiveImpl.get_connection(ArchiveImpl.java:61) at uk.ac.cam.caret.archiveimpl.impl.pure.PureTrueCard.checkExists(PureTrueCard.java:16) at uk.ac.cam.caret.archiveimpl.impl.ArchiveImpl.fromIdentity(ArchiveImpl.java:79) at uk.ac.cam.caret.jnama.web.processor.CardProcessor.getSchemaName(CardProcessor.java:46) at uk.ac.cam.caret.jnama.web.processor.CardProcessor.process(CardProcessor.java:234) at uk.ac.cam.caret.jnama.web.Request.process(Request.java:132) ... 19 more Caused by: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.ConnectException MESSAGE: Connection refused STACKTRACE: java.net.ConnectException: Connection refused 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:367) at java.net.Socket.connect(Socket.java:524) at java.net.Socket.connect(Socket.java:474) at java.net.Socket.(Socket.java:371) at java.net.Socket.(Socket.java:213) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:267) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739) at com.mysql.jdbc.Connection.(Connection.java:1553) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:193) at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:46) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95) at uk.ac.cam.caret.archiveimpl.impl.sql.SQLConnection.(SQLConnection.java:17) at uk.ac.cam.caret.archiveimpl.impl.sql.SQLMain.getConnection(SQLMain.java:55) at uk.ac.cam.caret.archiveimpl.impl.ArchiveImpl.get_connection(ArchiveImpl.java:61) at uk.ac.cam.caret.archiveimpl.impl.pure.PureTrueCard.checkExists(PureTrueCard.java:16) at uk.ac.cam.caret.archiveimpl.impl.ArchiveImpl.fromIdentity(ArchiveImpl.java:79) at uk.ac.cam.caret.jnama.web.processor.CardProcessor.getSchemaName(CardProcessor.java:46) at uk.ac.cam.caret.jnama.web.processor.CardProcessor.process(CardProcessor.java:234) at uk.ac.cam.caret.jnama.web.Request.process(Request.java:132) at uk.ac.cam.caret.jnama.web.WebServlet.process(WebServlet.java:44) at uk.ac.cam.caret.jnama.web.WebServlet.doGet(WebServlet.java:27) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION ** Last packet sent to the server was 1 ms ago. at com.mysql.jdbc.Connection.createNewIO(Connection.java:2814) at com.mysql.jdbc.Connection.(Connection.java:1553) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:193) at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:46) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95) at uk.ac.cam.caret.archiveimpl.impl.sql.SQLConnection.(SQLConnection.java:17) ... 26 more