windchill 中methodcontext.freeConnection() 和wtconnection.releaseAll() 有啥区别

it2022-05-09  19

后台查看日志发现两种错误, 错误1: ERROR : wt.pom.connection wonly.wu - POMHandler.freeConnection(): connection active.

错误2: wt.pom.statementCache wcadmin - free() Mon 6/24/19 09:03:42: TP-Processor5: java.sql.SQLRecoverableException: Closed Statement

目前还没找出原因,待持续更新

从代码层面看,错误1猜测是某个业务模块应用connection 做查询或者更新时,connection 已经被关闭了 错误2:Closed Statement 在用结果集前提前调用了statement.close();

不知道是否跟如下代码有关系: wtconnection.releaseAll(); methodcontext.freeConnection();

今天早上Team中大牛说报错原因已找到 具体原因为: 6.23的IP切换导致了前台应用服务器和DB服务器不在一个网段, 通信需要经过防火墙,按照防火墙的机制,会杀掉长时间不活动的连接,这就包括了我们连接池的连接


最新回复(0)