作者:
aegisty (桃型潛水艇)
2018-09-07 15:26:04嚴重: Servlet.service() for servlet [jsp] in context with path [] threw
exception [java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at org.apache.jsp.index_jsp._jspService(index_jsp.java:112)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
請問這個報錯是什麼意思?
如果 jsp 檔 null 時,也會出現這個報錯嗎?
上網查是jar檔衝突,但根本沒新增jar檔,應該不可能,還有可能有其他原因嗎?
雖然出現 exception,但網頁還是可以運行,這樣at的第一行 index.jsp 那邊編譯會過嗎?