我再给帖子加精华的时候,第一次添加时没有错误
2006-4-10  16:10:15  org.apache.struts.legacy.GenericDataSource  getConnection 
  信息:        Check  for  timeout,  activeCount=2,  useCount=1
  2006-4-10  16:10:15  org.apache.struts.legacy.GenericDataSource  getConnection 
  信息:        Sleep  until  next  te
在添加时就出现上面的信息:循环下面的信息!!!
2006-4-10  16:10:15  org.apache.struts.legacy.GenericDataSource  getConnection 
  信息:        Check  for  timeout,  activeCount=2,  useCount=2 
  2006-4-10  16:10:15  org.apache.struts.legacy.GenericDataSource  getConnection 
  信息:        Sleep  until  next  test 希望帮忙解决~~~

解决方案 »

  1.   

    连接数加1了?
    useCount是统计什么值的?
      

  2.   

    连接数加1
    useCount是统计每次给帖子加精华时
    所产生的useCount
      

  3.   

    topic_type_table
    topic_id:1001 topic_type : topic 帖子
    topic_id:1002 topic_type : bulletin 公告
    topic_id:1003 topic_type : collection 精华贴topic_detail_table
    字段:topic_type_id(帖子) 修改成topic_id:1003(精华贴)第一次添加精华时log信息没有错误!
    2006-4-10  16:10:15  org.apache.struts.legacy.GenericDataSource  getConnection
      信息:        Check  for  timeout,  activeCount=2,  useCount=1
      2006-4-10  16:10:15  org.apache.struts.legacy.GenericDataSource  getConnection
      信息:        Sleep  until  next  test对帖子进行第二次添加时信息:循环下面的信息!!!一直执行中
    2006-4-10  16:10:15  org.apache.struts.legacy.GenericDataSource  getConnection
      信息:        Check  for  timeout,  activeCount=2,  useCount=2
      2006-4-10  16:10:15  org.apache.struts.legacy.GenericDataSource  getConnection
      信息:        Sleep  until  next  test