web 環境項目(intellj部署的tomcat) 重啟時報 Exception in thread "HouseKeeper" java.lang.NullPointerException

來源:互聯網
上載者:User

標籤:

Exception in thread "HouseKeeper" java.lang.NullPointerException 
at org.logicalcobwebs.proxool.HouseKeeperController.getHouseKeeperToRun(HouseKeeperController.java:52) 
at org.logicalcobwebs.proxool.HouseKeeperThread.run(HouseKeeperThread.java:33)

上邊網上查了一大推問題,有說proxool 的jar包跟tomcat版本不相容,有的說解決辦法在 servert 的destroy 方法中關閉proxool串連池。。。

我最終發現我出現上面的問題是因為 我昨晚 把intellj 的tomact 回合組態檔案中 把下邊2個紅框勾上了:

為啥勾了上邊2個紅框的日誌也會報錯呢,原來是 我的遊戲web 和 我的跨服 web 用的是同一個 tomcat,估計2個web都啟動時在 寫日誌這邊可能會 有衝突,衝突後才出現了上邊的那個問題。解決辦法是 把2個web的運行檔案中上邊2個紅框都去掉,然後 把起著的2個web 都先關掉,再全部重啟,記住不先關掉可能沒用,保險起見直接全部關掉後把intellj 重啟一下。

web 環境項目(intellj部署的tomcat) 重啟時報 Exception in thread "HouseKeeper" java.lang.NullPointerException

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.