当前位置:编程学习 > JAVA >>

急急急!!!! jsp空指针异常

Myeclipse Console信息:

2012-10-20 15:38:32 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.index_jsp._jspInit(index_jsp.java:22)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.thtf.ezone.ajaxupload.filter.EncodingFilter.doFilter(EncodingFilter.java:30)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
 一下是jsp代码:
<%@ page contentType="text/html;charset=gbk" language="java"%>
<html>
<head>
<title>Simple upload page</title>
<script src='resources/js/upload.js'> </script>
<script src='dwr/inte易做图ce/UploadMonitor.js'> </script>
<script src='dwr/engine.js'> </script>
<script src='dwr/util.js'> </script>

<link rel="stylesheet" href="resources/css/upload.css" type="text/css"></link>
</head>
<body>

<form action="upload" enctype="multipart/form-data" method="post"
onsubmit="startProgress()">
<p>
<h1>
ezONE 文件上传
</h1>

<input type="text" value="D:\" id="uppath" name="uppath"
 />
<p>
<input class="default" type="file" id="file1" name="file1" />

<input type="submit" value="开始" id="uploadbutton" />

<br />
<div id="progressBar" style="display: none;">

<div id="theMeter">
<div id="progressBarText"></div>

<div id="progressBarBox">
<div id="progressBarBoxContent"></div>
</div>
</div>
</div>
<br>

</form>
</body>
</html>



求大神指教啊 
--------------------编程问答-------------------- 找到JSP编译后的SERVLET文件的22行  --------------------编程问答-------------------- 除
补充:Java ,  Web 开发
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,