首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java相关 >

Syntax error on tokens, delete these tokens

2013-09-11 
运行main.jsp后出现这个页面一样的程序,在不同的电脑上面,一个能运行出界面,而另一个则不能type Exception

运行main.jsp后出现这个页面
一样的程序,在不同的电脑上面,一个能运行出界面,而另一个则不能
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Unresolved compilation problems: 
The type main_jsp must implement the inherited abstract method HttpJspBase.getIncludes()
The method proprietaryEvaluate(String, Class<String>, PageContext, null, boolean) is undefined for the type PageContextImpl
The method proprietaryEvaluate(String, Class<String>, PageContext, null, boolean) is undefined for the type PageContextImpl
The method proprietaryEvaluate(String, Class<String>, PageContext, null, boolean) is undefined for the type PageContextImpl
Syntax error on tokens, delete these tokens
String literal is not properly closed by a double-quote
String literal is not properly closed by a double-quote
String literal is not properly closed by a double-quote
Syntax error, insert ")" to complete Expression
Syntax error on token "Invalid Character", delete this token
Syntax error, insert "enum Identifier" to complete EnumHeader
Syntax error, insert "EnumBody" to complete EnumDeclaration

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.luceneheritrixbook.searchengine.filter.SetResponseFilter.doFilter(SetResponseFilter.java:21)

root cause

java.lang.Error: Unresolved compilation problems: 
The type main_jsp must implement the inherited abstract method HttpJspBase.getIncludes()
The method proprietaryEvaluate(String, Class<String>, PageContext, null, boolean) is undefined for the type PageContextImpl
The method proprietaryEvaluate(String, Class<String>, PageContext, null, boolean) is undefined for the type PageContextImpl
The method proprietaryEvaluate(String, Class<String>, PageContext, null, boolean) is undefined for the type PageContextImpl
Syntax error on tokens, delete these tokens
String literal is not properly closed by a double-quote
String literal is not properly closed by a double-quote
String literal is not properly closed by a double-quote
Syntax error, insert ")" to complete Expression
Syntax error on token "Invalid Character", delete this token
Syntax error, insert "enum Identifier" to complete EnumHeader
Syntax error, insert "EnumBody" to complete EnumDeclaration

org.apache.jsp.page.main_jsp.<init>(main_jsp.java:9)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:321)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.luceneheritrixbook.searchengine.filter.SetResponseFilter.doFilter(SetResponseFilter.java:21)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.33 logs.
Apache Tomcat/5.5.33

[解决办法]
两个电脑的运行环境的分别是什么?
[解决办法]
操作系统哪?
------解决方案--------------------


编译有错,楼主在好好看下jsp页面
[解决办法]
把JSP的逻辑部分先放在Java类里面运行一下,看看能不能通过。如果不能通过说明语法有问题;如果通过了只能说明两个机子的环境不一样,换个环境试试
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html

热点排行