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 216901 - ClassCastException: org.netbeans.modules.javascript2.editor.parser.JsParserResult cannot be cast to org.netbeans.modules.html.editor.api.gsf.HtmlParserResult
Summary: ClassCastException: org.netbeans.modules.javascript2.editor.parser.JsParserRe...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Navigator (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-15 08:04 UTC by Martin Entlicher
Modified: 2012-10-01 11:56 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191553


Attachments
stacktrace (3.28 KB, text/plain)
2012-08-15 08:04 UTC, Martin Entlicher
Details
stacktrace (3.28 KB, text/plain)
2012-08-15 08:45 UTC, Vladimir Riha
Details
stacktrace (3.28 KB, text/plain)
2012-08-15 09:15 UTC, Vladimir Riha
Details
stacktrace (6.37 KB, text/plain)
2012-08-17 07:15 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2012-08-15 08:04:28 UTC
Build: NetBeans IDE Dev (Build 20120814-5697f2175c6c)
VM: Java HotSpot(TM) Client VM, 23.0-b16, Java(TM) SE Runtime Environment, 1.7.0_04-ea-b13
OS: Linux

Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.javascript2.editor.parser.JsParserResult cannot be cast to org.netbeans.modules.html.editor.api.gsf.HtmlParserResult
   at org.netbeans.modules.html.navigator.HtmlNavigatorPanelUI$6.run(HtmlNavigatorPanelUI.java:393)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:583)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:150)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:134)
   at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:200)
   at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:197)
Comment 1 Martin Entlicher 2012-08-15 08:04:29 UTC
Created attachment 123130 [details]
stacktrace
Comment 2 Vladimir Riha 2012-08-15 08:45:48 UTC
Created attachment 123134 [details]
stacktrace

opened js file in editor
Comment 3 Vladimir Riha 2012-08-15 09:15:48 UTC
Created attachment 123139 [details]
stacktrace

opening css file
Comment 4 John Jullion-ceccarelli 2012-08-16 22:37:58 UTC
Blocks the demo
Comment 5 Exceptions Reporter 2012-08-16 22:39:48 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=191553
Comment 6 Vladimir Riha 2012-08-17 07:15:48 UTC
Created attachment 123227 [details]
stacktrace

editing property from Rule Editor
Comment 7 Petr Jiricka 2012-08-17 09:07:23 UTC
Does it happen also when you don't use the HTML View in the navigator? If not, then the workaround could be not to ever switch to the Navigator HTML View.
Comment 8 Vladimir Riha 2012-08-17 09:20:08 UTC
As for plain JS and CSS files:
The worarkound would actually be to close the Navigator window as such because javascript and css files don't have HTML View but "simple" Navigator. If it is opened, exception is thrown. Closing it helps...

I'm not sure if the reports from CSS files (comment #3 and comment #6) should be here. If so:
- I had Navigator in Outline view
- selected some element in DOM Tree, then some of it's property in CSS Styles
- tried to edit the property in Rule Editor
=> exception from comment #6
Comment 9 Jan Becicka 2012-08-21 12:48:50 UTC
Changeset: 65e94c2c0dd4
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2012-08-21 14:36
Message:   
Issue #216901 - ClassCastException: org.netbeans.modules.javascript2.editor.parser.JsParserResult cannot be cast to org.netbeans.modules.html.editor.api.gsf.HtmlParserResult
Comment 10 Quality Engineering 2012-09-03 13:05:37 UTC
Integrated into 'main-golden', will be available in build *201209031048* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/65e94c2c0dd4
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #216901 - ClassCastException: org.netbeans.modules.javascript2.editor.parser.JsParserResult cannot be cast to org.netbeans.modules.html.editor.api.gsf.HtmlParserResult