Connection con=login.CreateConn();这句话取出的connection可能是null

解决方案 »

  1.   

    qin.DBConnQ
    没看到
    package qin
      

  2.   

    Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.exception java.lang.NullPointerException
     at org.apache.jsp.Jsp1$jsp._jspService(Jsp1$jsp.java:99)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      

  3.   

    没错,根据错误信息看,应该是connection为null值了。
    在Statement stmt=con.createStatement();之前加上一个判断吧