亲爱的Tomcat大师,
我在我的笔记本电脑中使用tomcat 7.0.47,在VM中,它最初运行良好...但有时它会关闭。
我检查了catalina.yyyy-MM-dd.log,我发现两件事有错:
有关Ormlite jdbc conn池的错误是:
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1588)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at com.mysql.jdbc.Connection.realClose(Connection.java:4060)
at com.mysql.jdbc.Connection.close(Connection.java:1398)
at com.j256.ormlite.jdbc.JdbcDatabaseConnection.close(JdbcDatabaseConnection.java:144)
at com.j256.ormlite.jdbc.JdbcPooledConnectionSource.closeConnection(JdbcPooledConnectionSource.java:330)
at com.j256.ormlite.jdbc.JdbcPooledConnectionSource.closeConnectionQuietly(JdbcPooledConnectionSource.java:341)
at com.j256.ormlite.jdbc.JdbcPooledConnectionSource$ConnectionTester.testConnections(JdbcPooledConnectionSource.java:494)
at com.j256.ormlite.jdbc.JdbcPooledConnectionSource$ConnectionTester.run(JdbcPooledConnectionSource.java:439)
虽然有关访问日志的错误如下:
WARNING: Exception while attempting to add an entry to the access log java.lang.NullPointerException
at org.apache.catalina.connector.CoyoteAdapter.log(CoyoteAdapter.java:512)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:191)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
似乎有某种内存泄漏或某种东西......但是Tomcat突然掉线了。
有人可以帮忙吗?
先谢谢。
答案 0 :(得分:1)
好的,坦率地说,我放弃了旧编码...... 我做的是解决这个问题:
但我仍然愿意接受任何建议。
由于 溴