Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319958 - [validation] NullPointerException when eclipse trying to start javascript validation
Summary: [validation] NullPointerException when eclipse trying to start javascript val...
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.2.3   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: needinfo
: 338844 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-15 05:16 EDT by y_xcop CLA
Modified: 2011-03-04 10:13 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description y_xcop CLA 2010-07-15 05:16:02 EDT
Build Identifier: 20100617-1415

!ENTRY org.eclipse.core.resources 4 75 2010-07-15 17:02:00.363
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.wst.jsdt.core 4 75 2010-07-15 17:02:00.363
!MESSAGE Errors running builder 'JavaScript Validator' on project 'ePMM'.
!STACK 0
java.lang.NullPointerException
	at org.eclipse.wst.jsdt.core.infer.InferredType.resolveType(InferredType.java:306)
	at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveVarType(LocalDeclaration.java:117)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope$DeclarationVisitor.visit(CompilationUnitScope.java:79)
	at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.traverse(LocalDeclaration.java:314)
	at org.eclipse.wst.jsdt.internal.compiler.ast.SwitchStatement.traverse(SwitchStatement.java:227)
	at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:584)
	at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:545)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:361)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:244)
	at org.eclipse.wst.jsdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:555)
	at org.eclipse.wst.jsdt.internal.compiler.Compiler.beginToCompile(Compiler.java:319)
	at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:333)
	at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:286)
	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:225)
	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:629)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Reproducible: Always

Steps to Reproduce:
1.
Comment 1 y_xcop CLA 2010-07-15 05:18:17 EDT
running on eclipse 3.6
Comment 2 Chris Jaun CLA 2010-07-15 10:00:54 EDT
(In reply to comment #0)

> Reproducible: Always
> 
> Steps to Reproduce:
> 1.


Need more information than that to investigate. :-)

Chris
Comment 3 y_xcop CLA 2010-07-18 21:34:15 EDT
Sorry for delay :)

I think I found the root cause of exception

cuz one of our js have bad encoding

but it's ok on eclipse 3.5, weird~
Comment 4 Chris Jaun CLA 2010-07-19 09:56:31 EDT
Do you think there is a fix required in JSDT?
Comment 5 y_xcop CLA 2010-07-19 21:20:46 EDT
No, thx 4 yr time.
Comment 6 Michael Rennie CLA 2011-03-04 10:13:38 EST
*** Bug 338844 has been marked as a duplicate of this bug. ***