J2EE中的DataTable js错误

时间:2013-11-29 06:50:29

标签: java jquery eclipse jquery-datatables tabletools

我在eclipse中使用struts开发J2EE Web应用程序,并使用网格视图插件(DATATABLES - 表工具)。但是eclipse总是把这个构建错误抛到下面.. 请任何人帮助我...

错误:

Internal validation error java.lang.ClassCastException: 
 org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding cannot be cast to 
 org.eclipse.wst.jsdt.internal.compiler.lookup.LocalVariableBinding at 
 org.eclipse.wst.jsdt.internal.compiler.ast.SingleNameReference.localVariableBinding(SingleNa
 meReference.java:226) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.Expression.checkNPE(Expression.java:320) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.analyseCode(MessageSend.java:67) 
 at 
 org.eclipse.wst.jsdt.internal.compiler.ast.SingleNameReference.analyseAssignment(SingleNa
 meReference.java:84) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.Assignment.analyseCode(Assignment.java:63) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration
 .java:91) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode(AbstractM
 ethodDeclaration.java:110) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.analyseCode(FunctionExpressio
 n.java:74) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.FieldReference.analyseAssignment(FieldReference.j
 ava:91) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.Assignment.analyseCode(Assignment.java:63) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration
 .java:91) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode(AbstractM
 ethodDeclaration.java:110) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.analyseCode(FunctionExpressio
 n.java:74) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.analyseCode(LocalDeclaration.java
 :73) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration
 .java:91) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode(AbstractM
 ethodDeclaration.java:110) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.analyseCode(FunctionExpressio
 n.java:74) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.analyseCode(MessageSend.java:86) 
 at 
 org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration
 .java:91) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode(AbstractM
 ethodDeclaration.java:110) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.analyseCode(FunctionExpressio
 n.java:74) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.Expression.analyseCode(Expression.java:184) at 
 org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.analyseCode(MessageSend.java:65) 
 at 
 org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode(Compilation
 UnitDeclaration.java:155) at 
 org.eclipse.wst.jsdt.internal.compiler.Compiler.process(Compiler.java:606) at 
 org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:356) at 
 org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.
 java:288) at 
 org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:
 86) at 
 org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.
 java:227) at 
 org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:
 58) at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:291) at 
 org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:199) at 
 org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) at 
 org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at 
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) at 
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) at 
 org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) at 
 org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at 
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) at 
 org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) at 
 org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) at 
 org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) at 
 org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) at 
 org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

1 个答案:

答案 0 :(得分:0)

数据表1.9.4导致问题的js。现在应该在WTP 3.5.1中解决此问题。检查7/18版本。或解决方法是从项目构建器列表中删除javascript验证器。