This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 200903230201) VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284 OS: Mac OS X, 10.5.6, i386 User Comments: spaquet: Just editing the java class associated with my VisualJSF page; Actually I was working on the "Submit" button. Stacktrace: java.lang.ClassCastException: org.netbeans.modules.web.core.syntax.gsf.JspGSFParser$JspFakeParserResult at org.netbeans.modules.html.editor.HtmlCaretAwareSourceTask.run(HtmlCaretAwareSourceTask.java:60) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:681) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
Created attachment 78741 [details] stacktrace
Cannot reproduce, but looks like a parsing.api bug. The HtmlCaretAwareSourceTask<HtmlParserResult> is registered for text/html mimetype only. The JspGSFParser is registered via CSL to text/x-jsp and text/x-tag mimetypes. So I do not understand why the TaskProcessor tries to call the run method on the HhtmlCaretAwareSourceTask with the JspFakeParserResult instance.
spaquet, can you reproduce this? Or was it a random failure? An isolated test case that would lead this exception would be invaluable. Thanks
Build: NetBeans IDE Dev (Build 200903311400) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02 OS: Windows XP, 5.1, x86 User Comments: opened jsp files Stacktrace: java.lang.ClassCastException: org.netbeans.modules.web.core.syntax.gsf.JspGSFParser$JspFakeParserResult cannot be cast to org.netbeans.modules.html.editor.gsf.HtmlParserResult at org.netbeans.modules.html.editor.HtmlCaretAwareSourceTask.run(HtmlCaretAwareSourceTask.java:61) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:681) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
Created attachment 79271 [details] stacktrace
Build: NetBeans IDE Dev (Build 090406) VM: Java HotSpot(TM) Client VM, 1.5.0_16-b02, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b02 OS: Linux, 2.6.24-23-generic, i386 User Comments: Stacktrace: java.lang.ClassCastException: org.netbeans.modules.php.editor.parser.PHPParseResult at org.netbeans.modules.html.editor.HtmlCaretAwareSourceTask.run(HtmlCaretAwareSourceTask.java:61) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:681) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
Created attachment 79716 [details] stacktrace
*** This issue has been marked as a duplicate of 161033 ***