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.

Bug 225228 - [73cat] ClassCastException: org.netbeans.modules.html.editor.xhtml.XhtmlElLanguage$XhtmlELParser$FakeResult cannot be cast to org.netbeans.modules.html.editor.api.gsf.HtmlParserResult
Summary: [73cat] ClassCastException: org.netbeans.modules.html.editor.xhtml.XhtmlElLan...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 225289 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-23 10:50 UTC by misterm
Modified: 2013-01-28 14:58 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 197816


Attachments
stacktrace (905 bytes, text/plain)
2013-01-23 10:50 UTC, misterm
Details
stacktrace (905 bytes, text/plain)
2013-01-23 10:52 UTC, misterm
Details
stacktrace (905 bytes, text/plain)
2013-01-23 10:58 UTC, misterm
Details
stacktrace (905 bytes, text/plain)
2013-01-24 13:28 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2013-01-23 10:50:18 UTC
Build: NetBeans IDE Dev (Build 20130117-1c2fba4f4903)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.html.editor.xhtml.XhtmlElLanguage$XhtmlELParser$FakeResult cannot be cast to org.netbeans.modules.html.editor.api.gsf.HtmlParserResult
   at org.netbeans.modules.css.visual.HtmlEditorSourceTask.run(HtmlEditorSourceTask.java:72)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
   at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:737)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
Comment 1 misterm 2013-01-23 10:50:19 UTC
Created attachment 130519 [details]
stacktrace
Comment 2 misterm 2013-01-23 10:52:42 UTC
Created attachment 130520 [details]
stacktrace
Comment 3 misterm 2013-01-23 10:58:41 UTC
Created attachment 130521 [details]
stacktrace
Comment 4 misterm 2013-01-23 17:01:38 UTC
This issue makes it nearly impossible to edit a XHTML file, raising priority.
Comment 5 Maksim Khramov 2013-01-24 13:28:42 UTC
Created attachment 130582 [details]
stacktrace
Comment 6 Marian Mirilovic 2013-01-24 15:27:50 UTC
161 dups. in 3 days
Comment 7 Marek Fukala 2013-01-24 17:59:00 UTC
Reproducible on latest sources.
Comment 8 Marek Fukala 2013-01-24 18:49:59 UTC
Reproducible on latest sources, seems to be caused by some recent changes (I'm not saying regressions) in the infrastructure - parsing.api?

fixed in web-main#7c46efc0ac57

Can you Vlado check if the problem also applies on the 7.3 fcs branch?
Comment 9 Vladimir Riha 2013-01-24 20:50:16 UTC
Reproducible by a single keystroke in continuous builds before Marek's fix and I can't reproduce it in RC1 from January 23. Considering this and fact that 1st report is from January 17, so after code freeze, I'd vote for removing HR_FIX_CANDIDATE keyword and don't transplant it to release73.

Reproduced in:
Product Version: NetBeans IDE Dev (Build web-main-9744-on-20130124)

Works in:
Product Version: NetBeans IDE 7.3 RC1 (Build 201301232200)


Java: 1.7.0_11; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Comment 10 Quality Engineering 2013-01-25 03:01:50 UTC
Integrated into 'main-golden', will be available in build *201301250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7c46efc0ac57
User: Marek Fukala <mfukala@netbeans.org>
Log: #225228 - [73cat] ClassCastException: org.netbeans.modules.html.editor.xhtml.XhtmlElLanguage$XhtmlELParser$FakeResult cannot be cast to org.netbeans.modules.html.editor.api.gsf.HtmlParserResult
Comment 11 Vladimir Riha 2013-01-25 08:41:27 UTC
Unable to reproduce, verified

Product Version: NetBeans IDE Dev (Build web-main-9749-on-20130125)
Java: 1.7.0_11; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Comment 12 Marian Mirilovic 2013-01-28 14:58:33 UTC
*** Bug 225289 has been marked as a duplicate of this bug. ***