myeclipse里tomcat报错,求指导啊!
报错如下:严重: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.index_jsp._jspService(index_jsp.java:79)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.ec.survey.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
这是为什么捏 --------------------编程问答-------------------- 到 work 目录下 找文件index_jsp.java 看第79行为什么报空指针异常了, 看是不是用到的对象没有初始化。 --------------------编程问答-------------------- 程序的问题,关tomcat什么事啊 --------------------编程问答-------------------- NullPointerException
空指针 index_jsp那里为null了 --------------------编程问答-------------------- 空指针。。。 --------------------编程问答-------------------- 囧,是不是我数据库连的有问题。
程序读不到数据库里的东西吗 --------------------编程问答--------------------
79行的 代码是:var focus_width=250;这个…… --------------------编程问答-------------------- 页面标签调用了空内容吧 --------------------编程问答-------------------- 你截图这段错误信息只能告诉你是空指针异常 。 至于是哪里的问题 这样是看不出来的 。 还有你这个是项目报错 。 不是TOMCAT报错。 --------------------编程问答--------------------
++
补充:Java , Web 开发