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 157205 - ClassCastException: org.netbeans.modules.java.source.parsing.JavacParserResult cannot be cast to org.netbeans.modules.csl.spi.ParserResult
Summary: ClassCastException: org.netbeans.modules.java.source.parsing.JavacParserResul...
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2009-01-21 11:19 UTC by Jindrich Sedek
Modified: 2009-03-19 13:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 145407


Attachments
stacktrace (2.38 KB, text/plain)
2009-01-21 11:19 UTC, Jindrich Sedek
Details
simple sample application (19.09 KB, application/x-compressed)
2009-01-21 11:22 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2009-01-21 11:19:02 UTC
Build: NetBeans IDE Dev (Build Parsing_API-141-on-090120)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: SunOS, 5.11, x86

User Comments:
jsedek: Open attached project ->CCE is thrown few seconds after project opening

second way to reproduce is to copy few (all) jsp files from Web Pages to Web Pages (clone them)

jsedek: Open attached project ->CCE is thrown few seconds after project opening

second way to reproduce is to copy few (all) jsp files from Web Pages to Web Pages (clone them)



Stacktrace: 
org.netbeans.modules.parsing.spi.ParseException
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:193)
        at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:96)
        at org.netbeans.modules.csl.hints.GsfHintsProvider.run(GsfHintsProvider.java:293)
        at org.netbeans.modules.csl.hints.GsfHintsProvider.run(GsfHintsProvider.java:96)
        at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:690)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
Comment 1 Jindrich Sedek 2009-01-21 11:19:13 UTC
Created attachment 76077 [details]
stacktrace
Comment 2 Jindrich Sedek 2009-01-21 11:22:29 UTC
Created attachment 76078 [details]
simple sample application
Comment 3 Vitezslav Stejskal 2009-02-20 12:02:30 UTC
This seems no longer reproducible.
Comment 4 Jindrich Sedek 2009-03-03 09:16:14 UTC
v.
Comment 5 Jindrich Sedek 2009-03-03 11:06:38 UTC
I'm still able randomly reproduce this problem. Mainly during the JSP or tag file editations.


The stacktrace is the same.
http://statistics.netbeans.org/exceptions/exception.do?id=169974
Comment 6 Marek Fukala 2009-03-05 12:01:39 UTC
This problem can be caused by  #159626 - Transitive virtual sources broken. I have encountered it when the VS was broken.
Comment 7 Vitezslav Stejskal 2009-03-16 11:36:50 UTC
Removing the status whiteboard markers, because csl.api & co is now in trunk.
Comment 8 Vitezslav Stejskal 2009-03-17 13:35:23 UTC
Marek fixed this in http://hg.netbeans.org/main-silver/rev/09518aafed84. Also see issue #159895.
Comment 9 Jindrich Sedek 2009-03-19 13:40:02 UTC
v.