Hi,
I have used RC5, Tomcat5.1, MySQL4 to set up the JForum. I am getting com.mysql.jdbc.CommunicationsException after 1/2 days of server startup. Once
tomcat is restartred it works fine. And problem occurs afre 1/2 day. PF the stack trace.
What could be the problem?
Regards
------------------------------------------------------------------------
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.io.IOException
MESSAGE: An established connection was aborted by the software in your host machine
STACKTRACE:
java.io.IOException: An established connection was aborted by the software in your host machine
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
at sun.nio.ch.IOUtil.read(IOUtil.java:200)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
at com.mysql.jdbc.MysqlIO.readChannelFully(MysqlIO.java:2851)
at com.mysql.jdbc.MysqlIO.reuseAndReadViaChannel(MysqlIO.java:2917)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2280)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2496)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1443)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1533)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2270)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2202)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1777)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1622)
at net.jforum.drivers.generic.UserModel.selectById(UserModel.java:74)
at net.jforum.repository.SecurityRepository.load(SecurityRepository.java:89)
at net.jforum.repository.SecurityRepository.load(SecurityRepository.java:105)
at net.jforum.JForum.service(JForum.java:230)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
at java.lang.Thread.run(Thread.java:534)
** END NESTED EXCEPTION **
[originally posted on jforum.net by alpesh]