Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Helios JSDT bug?
Helios JSDT bug? [message #543013] Mon, 28 June 2010 08:23 Go to next message
vlad.balan Missing name is currently offline vlad.balan Missing nameFriend
Messages: 45
Registered: June 2010
Member
Hello,

i just installed helios for java ee developpers and testing the javascript features. But i'm running into en Eclipse error.

I jave 2 javascript projects, test-js and test-js2. The first has the second in its include path, projects tab.

when i'm referencing in one of test-js functions a function from test-js2, the content assist sees it ok but right after ending the line and saving i'm getting:

Errors occurred during the build.
Errors running builder 'JavaScript Validator' on project 'test-js'.
org.eclipse.wst.jsdt.internal.core.CompilationUnit cannot be cast to org.eclipse.wst.jsdt.internal.core.builder.SourceFile


Example:

in test-js/someFile.js

function testForm(){

alert("hello");
//play();
}

and in test-js2/anotherFile.js

function play(){}


If i comment the play() line : //play() the error goes away.
If i uncomment, it's back.



Here's some copy/paste from eclipse log windows:

**********************************************************
Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
**********************************************************
java.lang.ClassCastException: org.eclipse.wst.jsdt.internal.core.CompilationUnit cannot be cast to org.eclipse.wst.jsdt.internal.core.builder.SourceFile
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuil der.acceptResult(AbstractImageBuilder.java:122)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Comp iler.java:353)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuil der.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.AbstractImageBuil der.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.build All(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(BuildMan ager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop (BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBu ildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJ ob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)



and

**********************************************************
Errors running builder 'JavaScript Validator' on project 'test-js'.
**********************************************************
java.lang.ClassCastException: org.eclipse.wst.jsdt.internal.core.CompilationUnit cannot be cast to org.eclipse.wst.jsdt.internal.core.builder.SourceFile
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuil der.acceptResult(AbstractImageBuilder.java:122)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Comp iler.java:353)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuil der.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.AbstractImageBuil der.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.build All(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(BuildMan ager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop (BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBu ildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJ ob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

[Updated on: Mon, 28 June 2010 08:39]

Report message to a moderator

Re: Helios JSDT bug? [message #543054 is a reply to message #543013] Mon, 28 June 2010 09:36 Go to previous messageGo to next message
Mauro Molinari is currently offline Mauro MolinariFriend
Messages: 281
Registered: July 2009
Senior Member
Il 28/06/2010 10.23, vlad.balan ha scritto:
> i just installed helios for java ee developpers and testing the
> javascript features. But i'm running into en Eclipse error.

You should do a search on http://bugs.eclipse.org and, if you don't find
anything related, you may open a new bug report, better by attaching a
ZIP with your projects reproducing the problem.

Mauro.
Re: Helios JSDT bug? [message #543055 is a reply to message #543054] Mon, 28 June 2010 10:11 Go to previous messageGo to next message
vlad.balan Missing name is currently offline vlad.balan Missing nameFriend
Messages: 45
Registered: June 2010
Member
it's really easy for someone else to test and i want to know if i'm doing something wrong before submitting a bug.
Re: Helios JSDT bug? [message #633005 is a reply to message #543055] Fri, 15 October 2010 03:01 Go to previous messageGo to next message
V.B. is currently offline V.B.Friend
Messages: 1
Registered: July 2009
Junior Member
Any information on this problem? I installed Helios and have a JS project with same behavior and exception. Disabling client javascript validators have no effect.

Any way to brute force turn off this annoying error?
Re: Helios JSDT bug? [message #633015 is a reply to message #633005] Fri, 15 October 2010 06:27 Go to previous message
vlad.balan Missing name is currently offline vlad.balan Missing nameFriend
Messages: 45
Registered: June 2010
Member
This is the corresponding issue i had opened:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=318203

You can follow there the correction of that bug.
It's still work in progress.
Previous Topic:XML editor, any refactor support?
Next Topic:Command used to stop tomcat
Goto Forum:
  


Current Time: Fri Dec 19 04:50:45 GMT 2014

Powered by FUDForum. Page generated in 0.03286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software