- Ioc depose tigger by GC!!!
Common Reason for that is YOUR code call 'new NutIoc(...)', and then get some beans(most is Dao) from it and abandon it!!!
If using nutz.mvc, call Mvcs.ctx().getDefaultIoc() to get ioc container.
Not nutz.mvc? use like this: public static Ioc ioc; - org.nutz.ioc.impl.NutIoc@880103818 is closing. startup date [17-12-29 11:20:27.077]
- {dataSource-3} closed
- org.nutz.ioc.impl.NutIoc@880103818 is deposed. startup date [17-12-29 11:20:27.077]
- Ioc depose tigger by GC!!!
Common Reason for that is YOUR code call 'new NutIoc(...)', and then get some beans(most is Dao) from it and abandon it!!!
If using nutz.mvc, call Mvcs.ctx().getDefaultIoc() to get ioc container.
Not nutz.mvc? use like this: public static Ioc ioc; - org.nutz.ioc.impl.NutIoc@1863719590 is closing. startup date [17-12-29 11:20:27.075]
- {dataSource-4} closed
- org.nutz.ioc.impl.NutIoc@1863719590 is deposed. startup date [17-12-29 11:20:27.075]
- Ioc depose tigger by GC!!!
Common Reason for that is YOUR code call 'new NutIoc(...)', and then get some beans(most is Dao) from it and abandon it!!!
If using nutz.mvc, call Mvcs.ctx().getDefaultIoc() to get ioc container.
Not nutz.mvc? use like this: public static Ioc ioc; - org.nutz.ioc.impl.NutIoc@1079702091 is closing. startup date [17-12-29 11:20:27.075]
- {dataSource-2} closed
- org.nutz.ioc.impl.NutIoc@1079702091 is deposed. startup date [17-12-29 11:20:27.075]
- Ioc depose tigger by GC!!!
Common Reason for that is YOUR code call 'new NutIoc(...)', and then get some beans(most is Dao) from it and abandon it!!!
If using nutz.mvc, call Mvcs.ctx().getDefaultIoc() to get ioc container.
Not nutz.mvc? use like this: public static Ioc ioc; - org.nutz.ioc.impl.NutIoc@745347091 is closing. startup date [17-12-29 11:20:27.071]
- {dataSource-1} closed
- org.nutz.ioc.impl.NutIoc@745347091 is deposed. startup date [17-12-29 11:20:27.071]
com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed at Fri Dec 29 11:21:21 CST 2017
at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1057)
at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:960)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:940)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:930)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:102)
问答
com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed
标签:
无
添加回复
该帖子已被锁定,不能回复.