<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Dev Zone
    偏執(zhí)狂才能生存,人生/事業(yè)的路上需要再堅持一下
    但是又怎么說得清堅持的結果,道得盡堅持的含義
    現(xiàn)狀:XAPool1.4有一個bug,當設置preparedStmtCacheSize=0的時候,關閉連接會拋出NullPointerException
     
    原因:StandardConnectionHandle在Close的時候調用了preparedStatementCache.cleanupAll(),沒有進行判斷;而當preparedStmtCacheSize設置為0的時候,StandardConnectionHandle在setupPreparedStatementCache中把preparedStatementCache設置為null,以下setupPreparedStatementCache是方法中的源代碼片斷:
     
     protected void setupPreparedStatementCache() {
      log.debug(
    "StandardConnectionHandle:setupPreparedStatementCache start");
      
    if (preparedStmtCacheSize == 0) {
       log.debug(
        
    "StandardConnectionHandle:setupPreparedStatementCache return with 0");
       preparedStatementCache 
    = null;
       
    return;
      }
     
    解決辦法:修改setupPreparedStatementCache,如下:
      if (preparedStmtCacheSize == 0) {
       log.debug(
        
    "StandardConnectionHandle:setupPreparedStatementCache return with 0");
    //   preparedStatementCache = null;
       preparedStatementCache = new PreparedStatementCache(0);
       
    return;
      }
    posted on 2005-05-17 22:05 dev 閱讀(249) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導航:
     
     
    主站蜘蛛池模板: 免费黄色小视频网站| 2022久久国产精品免费热麻豆| 成熟女人特级毛片www免费| 精品亚洲成AV人在线观看| 亚洲偷自拍拍综合网| 成人性做爰aaa片免费看| 一级特黄录像视频免费| 99热这里只有精品免费播放| 久久国产亚洲电影天堂| 免费播放一区二区三区| 久久水蜜桃亚洲av无码精品麻豆| 久久精品无码精品免费专区| 777亚洲精品乱码久久久久久 | 亚洲人成未满十八禁网站| 91在线品视觉盛宴免费| 亚洲欧洲日产国码久在线| 四虎免费永久在线播放| 特级毛片爽www免费版| 国精无码欧精品亚洲一区| 免费无遮挡无码永久视频 | 亚洲春色在线观看| 搡女人免费视频大全| 老司机午夜性生免费福利| 亚洲色无码一区二区三区| 久久久高清日本道免费观看| 亚洲午夜电影一区二区三区| 麻豆国产VA免费精品高清在线| 免费看又黄又爽又猛的视频软件| 国产l精品国产亚洲区在线观看| 亚洲网站在线免费观看| 国产成人亚洲综合a∨| 亚洲欧洲免费视频| 国产成人在线免费观看| 精品免费tv久久久久久久| 亚洲一区AV无码少妇电影| 久久久久久亚洲精品不卡| 亚洲大片免费观看| 四虎一区二区成人免费影院网址 | 亚洲一区二区三区丝袜| 亚洲人成色7777在线观看不卡 | 亚洲开心婷婷中文字幕|