下面是错误代码,希望可以帮我解决下type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception java.lang.NullPointerException
com.witbridge.ebook.action.CustomerAction.login(CustomerAction.java:23)
com.witbridge.ebook.servlet.Login.login(Login.java:36)
com.witbridge.ebook.servlet.Login.doPost(Login.java:28)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.witbridge.ebook.util.EncodingFilter.doFilter(EncodingFilter.java:23)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.30 logs.

解决方案 »

  1.   

    java.lang.NullPointerException   空指针异常
    com.witbridge.ebook.action.CustomerAction.login(CustomerAction.java:23)
    在CustomerAction.java 的23行 出现了空指针异常、
    说明 你引用的数据内容是空的、
    好好查查上下文来进行修改
      

  2.   

    空指针,CustomerAction.java:23出现异常,获取的数据为空,有可能是你将空值又通过转型出现的错误。debug运行测试下。
      

  3.   


    先用Debug模式运行一下,或者非空判断一下;