我收到以下错误,因为System.out.println(sendURL.substring(0, sendURL.lastIndexOf("/")));
sendURL 行不为空,它具有价值。任何人都请帮我解决这个问题。提前致谢!
信息
描述 服务器遇到一个内部错误 () 阻止它完成这个请求。
例外
org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/authenticate.jsp at line 47
44: config = getServletConfig();
45: String localStoreurl=application.getInitParameter("localstorefile");
46: String domain=application.getInitParameter("domain");
47: System.out.println(sendURL.substring(0, sendURL.lastIndexOf("/")));
48: %>
49: <html xmlns="http://www.w3.org/1999/xhtml">
50: <head>
Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:519)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:428)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause java.lang.NullPointerException
org.apache.jsp.jsp.authenticate_jsp._jspService(authenticate_jsp.java:103)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.30 logs.
Apache Tomcat/6.0.30