jfinal加入ehcache插件后,报错

本人dddd牛仔 发布于 2013/01/09 14:30
阅读 1K+
收藏 0

严重: The web application [/Blog] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] but has failed to stop it. This is very likely to create a memory leak.
2013-1-9 14:26:52 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/Blog] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@4df93ace]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2013-1-9 14:26:52 org.apache.coyote.AbstractProtocol start

 

java.lang.IllegalStateException

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:980)
at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1406)
at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1378)
at com.mchange.v2.resourcepool.BasicResourcePool.cullExpired(BasicResourcePool.java:1462)
at com.mchange.v2.resourcepool.BasicResourcePool.access$1900(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:1937)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Exception in thread "Timer-0" java.lang.NoClassDefFoundError: com/mchange/v2/resourcepool/BasicResourcePool$1DestroyResourceTask
at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:980)
at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1406)
at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1378)
at com.mchange.v2.resourcepool.BasicResourcePool.cullExpired(BasicResourcePool.java:1462)
at com.mchange.v2.resourcepool.BasicResourcePool.access$1900(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:1937)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.ClassNotFoundException: com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 8 more

加载中
0
JFinal
JFinal
是 c3p0 报的错,注意一下 C3p0Plugin 的配置,以及数据库配置
0
本人dddd牛仔
本人dddd牛仔

引用来自“JFinal”的答案

是 c3p0 报的错,注意一下 C3p0Plugin 的配置,以及数据库配置
这个错误是我在设置overflowToDisk为True的时候报错,如果将它设置为false的话,就不会出错了。
本人dddd牛仔
本人dddd牛仔
回复 @JFinal : 哦哦,谢了
JFinal
JFinal
回复 @本人dddd牛仔 : Model当然可以,里面有 delete()方法 :)
本人dddd牛仔
本人dddd牛仔
回复 @JFinal : 解决了。。。。是Tomcat的内存太小的缘故,顺便问一下,jfinal的删除操作一定要是Db,Model删除不行吗?
JFinal
JFinal
回复 @本人dddd牛仔 : 直接跑 jfinal demo 吧
本人dddd牛仔
本人dddd牛仔
回复 @JFinal : 测试项目,不存在吃内存的情况吧。配置我就是按照demo来的。
下一页
返回顶部
顶部