JFinal使用druid之后不能load change的问题

车开源 发布于 2013/11/25 10:58
阅读 541
收藏 0

@JFinal 你好,想跟你请教个问题:

使用C3P0可以正常Loading changes,改用druid之后就这样了,求解!

日志如下:

Loading changes ......

2013-11-25 10:55:55
[WARN]-[Thread: JFinal-Scanner]-[com.alibaba.druid.pool.DruidDataSource.close()]: close connection error
java.sql.SQLRecoverableException: IO 错误: Software caused connection abort: recv failed
    at oracle.jdbc.driver.T4CConnection.logoff(T4CConnection.java:556)
    at oracle.jdbc.driver.PhysicalConnection.close(PhysicalConnection.java:3984)
    at com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:167)
    at com.alibaba.druid.filter.FilterAdapter.connection_close(FilterAdapter.java:775)
    at com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:163)
    at com.alibaba.druid.filter.stat.StatFilter.connection_close(StatFilter.java:254)
    at com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:163)
    at com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl.close(ConnectionProxyImpl.java:115)
    at com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1263)
    at com.jfinal.plugin.druid.DruidPlugin.stop(DruidPlugin.java:165)
    at com.jfinal.core.JFinal.stopPlugins(JFinal.java:141)
    at com.jfinal.core.JFinalFilter.destroy(JFinalFilter.java:87)
    at org.eclipse.jetty.servlet.FilterHolder.destroyInstance(FilterHolder.java:153)
    at org.eclipse.jetty.servlet.FilterHolder.doStop(FilterHolder.java:131)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
    at org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:204)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
    at org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:395)
    at org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:463)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
    at org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:136)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
    at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:805)
    at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:160)
    at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:516)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
    at com.jfinal.server.JettyServer$1.onChange(JettyServer.java:103)
    at com.jfinal.server.Scanner.compare(Scanner.java:87)
    at com.jfinal.server.Scanner.working(Scanner.java:56)
    at com.jfinal.server.Scanner.access$0(Scanner.java:54)
    at com.jfinal.server.Scanner$1.run(Scanner.java:93)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
Caused by: java.net.SocketException: Software caused connection abort: recv failed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at oracle.net.ns.Packet.receive(Packet.java:300)
    at oracle.net.ns.DataPacket.receive(DataPacket.java:106)
    at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:315)
    at oracle.net.ns.NetInputStream.read(NetInputStream.java:260)
    at oracle.net.ns.NetInputStream.read(NetInputStream.java:185)
    at oracle.net.ns.NetInputStream.read(NetInputStream.java:102)
    at oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(T4CSocketInputStreamWrapper.java:124)
    at oracle.jdbc.driver.T4CSocketInputStreamWrapper.read(T4CSocketInputStreamWrapper.java:80)
    at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1137)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:290)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
    at oracle.jdbc.driver.T4C7Ocommoncall.doOLOGOFF(T4C7Ocommoncall.java:61)
    at oracle.jdbc.driver.T4CConnection.logoff(T4CConnection.java:543)
    ... 35 more

加载中
0
JFinal
JFinal
可能是连接配置有问题,解决此问题后记得回来分享下
0
giianhui
giianhui

楼主解决了该问题吗,我现在也遇到这个问题,异常如下:

2014-06-21 12:31:34,951 [JFinal-Scanner] WARN  [com.alibaba.druid.pool.DruidDataSource] - close connection error
java.sql.SQLRecoverableException: IO 错误: Socket read timed out
at oracle.jdbc.driver.T4CConnection.logoff(T4CConnection.java:556)
at oracle.jdbc.driver.PhysicalConnection.close(PhysicalConnection.java:3984)
at com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:169)
at com.alibaba.druid.filter.FilterAdapter.connection_close(FilterAdapter.java:776)
at com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:165)
at com.alibaba.druid.filter.stat.StatFilter.connection_close(StatFilter.java:254)
at com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:165)
at com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl.close(ConnectionProxyImpl.java:115)
at com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1263)
at com.jfinal.plugin.druid.DruidPlugin.stop(DruidPlugin.java:179)
at com.jfinal.core.JFinal.stopPlugins(JFinal.java:135)
at com.jfinal.core.JFinalFilter.destroy(JFinalFilter.java:87)
at org.eclipse.jetty.servlet.FilterHolder.destroyInstance(FilterHolder.java:153)
at org.eclipse.jetty.servlet.FilterHolder.doStop(FilterHolder.java:131)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:204)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
at org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:395)
at org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:463)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
at org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:136)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:805)
at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:160)
at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:516)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at com.jfinal.server.JettyServer$1.onChange(JettyServer.java:103)
at com.jfinal.server.Scanner.compare(Scanner.java:87)
at com.jfinal.server.Scanner.working(Scanner.java:56)
at com.jfinal.server.Scanner.access$0(Scanner.java:54)
at com.jfinal.server.Scanner$1.run(Scanner.java:93)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: oracle.net.ns.NetException: Socket read timed out
at oracle.net.ns.Packet.receive(Packet.java:339)
at oracle.net.ns.DataPacket.receive(DataPacket.java:106)
at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:315)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:260)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:185)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:102)
at oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(T4CSocketInputStreamWrapper.java:124)
at oracle.jdbc.driver.T4CSocketInputStreamWrapper.read(T4CSocketInputStreamWrapper.java:80)
at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1137)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:290)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
at oracle.jdbc.driver.T4C7Ocommoncall.doOLOGOFF(T4C7Ocommoncall.java:61)
at oracle.jdbc.driver.T4CConnection.logoff(T4CConnection.java:543)
... 35 more
2014-06-21 12:31:53,852 [JFinal-Scanner] WARN  [com.alibaba.druid.pool.DruidDataSource] - close connection error
java.sql.SQLRecoverableException: IO 错误: Socket read timed out
at oracle.jdbc.driver.T4CConnection.logoff(T4CConnection.java:556)
at oracle.jdbc.driver.PhysicalConnection.close(PhysicalConnection.java:3984)
at com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:169)
at com.alibaba.druid.filter.FilterAdapter.connection_close(FilterAdapter.java:776)
at com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:165)
at com.alibaba.druid.filter.stat.StatFilter.connection_close(StatFilter.java:254)
at com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:165)
at com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl.close(ConnectionProxyImpl.java:115)
at com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1263)
at com.jfinal.plugin.druid.DruidPlugin.stop(DruidPlugin.java:179)
at com.jfinal.core.JFinal.stopPlugins(JFinal.java:135)
at com.jfinal.core.JFinalFilter.destroy(JFinalFilter.java:87)
at org.eclipse.jetty.servlet.FilterHolder.destroyInstance(FilterHolder.java:153)
at org.eclipse.jetty.servlet.FilterHolder.doStop(FilterHolder.java:131)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:204)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
at org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:395)
at org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:463)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
at org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:136)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:805)
at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:160)
at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:516)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at com.jfinal.server.JettyServer$1.onChange(JettyServer.java:103)
at com.jfinal.server.Scanner.compare(Scanner.java:87)
at com.jfinal.server.Scanner.working(Scanner.java:56)
at com.jfinal.server.Scanner.access$0(Scanner.java:54)
at com.jfinal.server.Scanner$1.run(Scanner.java:93)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: oracle.net.ns.NetException: Socket read timed out
at oracle.net.ns.Packet.receive(Packet.java:339)
at oracle.net.ns.DataPacket.receive(DataPacket.java:106)
at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:315)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:260)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:185)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:102)
at oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(T4CSocketInputStreamWrapper.java:124)
at oracle.jdbc.driver.T4CSocketInputStreamWrapper.read(T4CSocketInputStreamWrapper.java:80)
at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1137)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:290)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
at oracle.jdbc.driver.T4C7Ocommoncall.doOLOGOFF(T4C7Ocommoncall.java:61)
at oracle.jdbc.driver.T4CConnection.logoff(T4CConnection.java:543)
... 35 more

返回顶部
顶部