0

我正在使用 Eclipse 中的 struts 开发 J2EE Web 应用程序,并且我使用网格视图插件(数据表 - 表工具)。但是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)
4

1 回答 1

0

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

于 2016-09-12T11:09:00.927 回答