信息: Reloading this Context has started 
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)

解决方案 »

  1.   

    java.lang.NullPointerException 空指针异常
      

  2.   

     java.lang.NullPointerException 
    你的HouseKeeper线程的程序出错了,看看哪里在null的时候被强制使用了
      

  3.   

    This is because Proxool is not being shutdown properly. If the JVM stops then Proxool recognises that and shuts down gracefully, but if you redeploy Proxool into some environments (for example, a servlet container) then Proxool needs to be explicitly told so by calling ProxoolFacade.shutdown(). If you have a servlet container then you could put it in the servlet's destroy() method. Alternatively, use the ServletConfigurator to both configure and shutdown Proxool
      

  4.   

    看看你的HouseKeeper是不是没有new就使用的
      

  5.   

    我用的是tomcat5与proxool-0.8.jar
    后来我改用proxool-0.9.jar就不会报这个错了,可能是版本的不兼容吧~
      

  6.   

    6楼确实正解,下面是解决方法。ps:摘自他处。
    Exception in thread "HouseKeeper" java.lang.NullPointerException2011-04-26 08:52虽然这个错误不影响项目,但是项目中的 class 类一改动 就无法自动启动起来了。因为这个错误导致的。很是麻烦!解决方法:(次方法也是来源于网络中,我只是再次分享。或者把零散的整合在一起说了)首先建立一个servlet类:package cn.ydc.framework.util;import java.io.IOException;import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;import org.logicalcobwebs.proxool.ProxoolFacade;
    /*
     * 此类用来处理 在class类进行修改的时候 保存了之后服务自动重新启动 报:
     *  Exception in thread "HouseKeeper" java.lang.NullPointerException
     *  错误原因为:
     *  This is because Proxool is not being shutdown properly. 
     *  If the JVM stops then Proxool recognises that and shuts down gracefully, 
     *  but if you redeploy Proxool into some environments (for example, a servlet container) 
     *  then Proxool needs to be explicitly told so by calling ProxoolFacade.shutdown(). 
     *  If you have a servlet container then you could put it in the servlet's destroy() method. 
     *  Alternatively, use the ServletConfigurator to both configure and shutdown Proxool 
     */
    public class HouseKeeperServlet extends HttpServlet  {
      
     /**
      * 
      */
     private static final long serialVersionUID = 4829418704873725291L; public void destroy() {
      //此处添加处理 
      ProxoolFacade.shutdown();
     } public void doPost(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException {
      doGet(request, response);
     } public void doGet(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException { }}web.xml  中加入:<!-- for resolving HouseKeeper bug-->
      <servlet> 
        <servlet-name>loadServlet</servlet-name> 
        <servlet-class>cn.ydc.framework.util.HouseKeeperServlet</servlet-class> 
        <load-on-startup>1</load-on-startup> 
      </servlet> 
      

  7.   

    我的也报这个错
    Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connectionException in thread "HouseKeeper" java.lang.NullPointerException
      

  8.   

    哥啊,你这是因为高版本的spring用的不是close方法了,是destory方法