| Summary: | NPE running JavaScript validation | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | olandere | ||||||||||
| Component: | General | Assignee: | Project Inbox <jsdt.javascript-inbox> | ||||||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||||||
| Severity: | major | ||||||||||||
| Priority: | P3 | CC: | andrew.p.cottrell, cmjaun, mamacdon, sg3235, silep | ||||||||||
| Version: | unspecified | ||||||||||||
| Target Milestone: | 3.2.3 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
olandere
Same problem with Javascript Builder when build last project of TinyMCE. The problem in the file <tinymce>/classes/firebug-lite.js JDK: 1.5 OS: Windows XPx64 Eclipse: Helios (only !) Please supply a sample JS file to re-produce this problem. Created attachment 174372 [details]
Bug in the JavaScript builder
Comment on attachment 174372 [details]
Bug in the JavaScript builder
This file.
I am unable to reproduce this problem. Can you provide some additional information on your project setup? Created attachment 174967 [details]
The test project with the error
The test project with the error here.
OS: WinXPx64.
I used last version of eclipse for Windows 64 Bit.
Created attachment 174969 [details]
The error message
Thanks for the additional info. I cannot reproduce this problem in wtp 3.2.1 with the included files and project. Seems to be happening to me as well. I haven't figured out what file is causing the problem, but I just downloaded the current version of dojo. I get the same error with the stack trace ending up on the same line of the same class. I noticed the version of the JDK was the same, so I upgraded that with no change. The difference I have is I can't disable the Javascript facet, so I just keep getting the error. eclipse.buildId=M20100909-0800 java.version=1.6.0_20 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.sourceStart(SourceTypeBinding.java:1242) at org.eclipse.wst.jsdt.internal.compiler.problem.ProblemReporter.incompatibleReturnType(ProblemReporter.java:1705) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodVerifier.reportIncompatibleReturnTypeError(MethodVerifier.java:510) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodVerifier.checkAgainstInheritedMethods(MethodVerifier.java:138) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodVerifier.checkMethods(MethodVerifier.java:267) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodVerifier.verify(MethodVerifier.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.verifyMethods(SourceTypeBinding.java:1340) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.verifyMethods(CompilationUnitScope.java:1129) at org.eclipse.wst.jsdt.internal.compiler.Compiler.process(Compiler.java:584) at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:347) 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) Created attachment 181712 [details]
The file which causes the problems.
The Problem is not a Problem of Eclipse itself, as it seems.
Ran into the same problem and did some research. If you use the current Dojo Version (1.5, and maybe some of the versions before) there is a resource file which seems to cause the error.
Please check for the "dojox/gfx/resources/svg2gfx.xsl" file. Deleting this file (or making the xsl valid) solves the problem.
I attached the file for testing purposes if anyone is interested in.
Kind Regards
Jan Peters
Thanks for the work around. I had seen that there was an error in the file, but didn't associate the error with the NPE. I don't know if the XSL is really valid or not, but even if it isn't, an NPE isn't really an acceptable reaction. |