This discussion is archived
4 Replies Latest reply: Mar 5, 2013 3:40 AM by gimbal2 RSS

Problem in using javascript file in Eclipse Indigo

985192 Newbie
Currently Being Moderated
I am adding a javascript file in my Eclipse Indigo web project.
On the first line of javascript it is giving me following error:

Internal validation error java.lang.NullPointerException at org.eclipse.wst.jsdt.core.infer.InferredType.resol veType(InferredType.java:309) at
org.eclipse.wst.jsdt.internal.compiler.ast.LocalDe claration.resolveVarType(LocalDeclaration.java:128 ) at
org.eclipse.wst.jsdt.internal.compiler.lookup.Comp ilationUnitScope$DeclarationVisitor.visit(Compilat ionUnitScope.java:83) at
org.eclipse.wst.jsdt.internal.compiler.ast.LocalDe claration.traverse(LocalDeclaration.java:305) at
org.eclipse.wst.jsdt.internal.compiler.ast.SwitchS tatement.traverse(SwitchStatement.java:210) at
org.eclipse.wst.jsdt.internal.compiler.ast.Compila tionUnitDeclaration.traverse(CompilationUnitDeclar ation.java:584) at
org.eclipse.wst.jsdt.internal.compiler.ast.Compila tionUnitDeclaration.traverse(CompilationUnitDeclar ation.java:545) at
org.eclipse.wst.jsdt.internal.compiler.lookup.Comp ilationUnitScope.buildTypeBindings(CompilationUnit Scope.java:392) at
org.eclipse.wst.jsdt.internal.compiler.lookup.Look upEnvironment.buildTypeBindings(LookupEnvironment. java:320) at
org.eclipse.wst.jsdt.internal.compiler.lookup.Look upEnvironment.buildTypeBindings(LookupEnvironment. java:316) at
org.eclipse.wst.jsdt.internal.compiler.Compiler.ac cept(Compiler.java:237) at
org.eclipse.wst.jsdt.internal.compiler.lookup.Look upEnvironment.addUnitsContainingBindings(LookupEnv ironment.java:179) at
org.eclipse.wst.jsdt.internal.compiler.lookup.Comp ilationUnitScope.buildTypeBindings(CompilationUnit Scope.java:374) at
org.eclipse.wst.jsdt.internal.compiler.lookup.Look upEnvironment.buildTypeBindings(LookupEnvironment. java:320) at
org.eclipse.wst.jsdt.internal.compiler.Compiler.in ternalBeginToCompile(Compiler.java:572) at
org.eclipse.wst.jsdt.internal.compiler.Compiler.be ginToCompile(Compiler.java:328) at org.eclipse.wst.jsdt.internal.compiler.Compiler.co mpile(Compiler.java:342)
at org.eclipse.wst.jsdt.internal.core.builder.Abstrac tImageBuilder.compile(AbstractImageBuilder.java:28 8) at
org.eclipse.wst.jsdt.internal.core.builder.BatchIm ageBuilder.compile(BatchImageBuilder.java:86) at
org.eclipse.wst.jsdt.internal.core.builder.Abstrac tImageBuilder.compile(AbstractImageBuilder.java:22 7) at
org.eclipse.wst.jsdt.internal.core.builder.BatchIm ageBuilder.build(BatchImageBuilder.java:58) at
org.eclipse.wst.jsdt.internal.core.builder.JavaBui lder.buildAll(JavaBuilder.java:291) at org.eclipse.wst.jsdt.internal.core.builder.JavaBui lder.build(JavaBuilder.java:199)
at org.eclipse.core.internal.events.BuildManager$2.ru n(BuildManager.java:728) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42) at
org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:199) at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:
*239) at org.eclipse.core.internal.events.BuildManager$1.ru n(BuildManager.java:292) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42) at*
org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:295) at
org.eclipse.core.internal.events.BuildManager.basi cBuildLoop(BuildManager.java:351) at org.eclipse.core.internal.events.BuildManager.buil d(BuildManager.java:
*374) at org.eclipse.core.internal.events.AutoBuildJob.doBu ild(AutoBuildJob.java:143) at org.eclipse.core.internal.events.AutoBuildJob.run( AutoBuildJob.java:241) at*
org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:54)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points