Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Servlet/JSP/JSF/JavaFX Script
打印话题 寄给朋友 订阅主题 |
作者 | 这段程序哪里错了?('try' without 'catch' or 'finally') |
yangxg_a
发贴: 17 |
于 2005-11-27 13:59
下面这段程序哪里错了啊?
错误提示是: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 5 in the jsp file: /Example2_3.jsp Generated servlet error: E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Example2_005f3_jsp.java:31: 'try' without 'catch' or 'finally' try{ ^ An error occurred at line: 5 in the jsp file: /Example2_3.jsp Generated servlet error: E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Example2_005f3_jsp.java:45: 'catch' without 'try' catch(IOException ee){} ^ Generated servlet error: E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Example2_005f3_jsp.java:49: 'class' or 'interface' expected private static java.util.Vector _jspx_dependants; ^ Generated servlet error: E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Example2_005f3_jsp.java:51: 'class' or 'interface' expected public java.util.List getDependants() { ^ Generated servlet error: E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Example2_005f3_jsp.java:111: 'class' or 'interface' expected } ^ Generated servlet error: E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Example2_005f3_jsp.java:112: 'class' or 'interface' expected ^ Generated servlet error: E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Example2_005f3_jsp.java:8: org.apache.jsp.Example2_005f3_jsp should be declared abstract; it does not define getDependants() in org.apache.jsp.Example2_005f3_jsp public final class Example2_005f3_jsp extends org.apache.jasper.runtime.HttpJspBase ^ An error occurred at line: 5 in the jsp file: /Example2_3.jsp Generated servlet error: E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Example2_005f3_jsp.java:22: cannot resolve symbol symbol : variable out location: class org.apache.jsp.Example2_005f3_jsp DataOutputStream dataOut=new DataOutputStream(out); ^ An error occurred at line: 5 in the jsp file: /Example2_3.jsp Generated servlet error: E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Example2_005f3_jsp.java:24: cannot resolve symbol symbol : variable out location: class org.apache.jsp.Example2_005f3_jsp out.close(); ^ An error occurred at line: 5 in the jsp file: /Example2_3.jsp Generated servlet error: E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Example2_005f3_jsp.java:32: cannot resolve symbol symbol : class FileInputstream location: class org.apache.jsp.Example2_005f3_jsp FileInputStream in=new FileInputstream("count.txt"); ^ 10 errors org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
why edited on 2005-11-27 23:54
关于 异常 。。。。 谢谢指教 |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
2926 | 这段程序哪里错了?('try' without 'catch' or 'finally') | yangxg_a | 5352 | 2005-11-27 13:59 |
2209 | Re:这段程序哪里错了? | yangxg_a | 10 | 2005-11-27 16:04 |
2123 | Re:这段程序哪里错了? | why | 82 | 2005-11-28 00:04 |
2278 | Re:这段程序哪里错了? | yangxg_a | 139 | 2005-11-28 09:53 |
2185 | Re:这段程序哪里错了? | yangxg_a | 23 | 2005-11-27 18:55 |
2085 | Re:这段程序哪里错了? | why | 729 | 2005-11-27 23:56 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |