开始执行查询的时候遇到同样错误 java.sql.SQLException: connection holder is null at com.alibaba.druid.pool.DruidPooledConnection.checkStateInternal(DruidPooledConnection.java:1112) at com.alibaba.druid.pool.DruidPooledConnection.checkState(DruidPooledConnection.java:1105) at com.alibaba.druid.pool.DruidPooledConnection.getHoldability(DruidPooledConnection.java:961) at com.dianping.zebra.single.jdbc.SingleConnection.getHoldability(SingleConnection.java:182) at com.dianping.zebra.group.jdbc.GroupPreparedStatement.createPreparedStatementInternal(GroupPreparedStatement.java:76) at com.dianping.zebra.group.jdbc.GroupPreparedStatement.executeQueryOnConnection(GroupPreparedStatement.java:144) at com.dianping.zebra.group.jdbc.GroupPreparedStatement.executeQuery(GroupPreparedStatement.java:140) at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeQuery(ParamLoggingPreparedStatement.java:375) at org.datanucleus.store.rdbms.SQLController.executeStatementQuery(SQLController.java:552)
4条答案
按热度按时间1hdlvixo1#
锁表后出现connection holder is null
hts6caw32#
开始执行查询的时候遇到同样错误
java.sql.SQLException: connection holder is null at com.alibaba.druid.pool.DruidPooledConnection.checkStateInternal(DruidPooledConnection.java:1112) at com.alibaba.druid.pool.DruidPooledConnection.checkState(DruidPooledConnection.java:1105) at com.alibaba.druid.pool.DruidPooledConnection.getHoldability(DruidPooledConnection.java:961) at com.dianping.zebra.single.jdbc.SingleConnection.getHoldability(SingleConnection.java:182) at com.dianping.zebra.group.jdbc.GroupPreparedStatement.createPreparedStatementInternal(GroupPreparedStatement.java:76) at com.dianping.zebra.group.jdbc.GroupPreparedStatement.executeQueryOnConnection(GroupPreparedStatement.java:144) at com.dianping.zebra.group.jdbc.GroupPreparedStatement.executeQuery(GroupPreparedStatement.java:140) at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeQuery(ParamLoggingPreparedStatement.java:375) at org.datanucleus.store.rdbms.SQLController.executeStatementQuery(SQLController.java:552)
w9apscun3#
解决了吗
z2acfund4#
removeAbandoned参数设置的啥?