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

Summary: ClassCastException: org.netbeans.modules.java.source.parsing.JavacParserResult cannot be cast to org.netbeans.modules.csl.spi.ParserResult
Product: editor Reporter: Jindrich Sedek <jsedek>
Component: CSL (API & infrastructure)Assignee: Vitezslav Stejskal <vstejskal>
Status: VERIFIED FIXED    
Severity: blocker CC: jjancura, pjiricka
Priority: P2 Keywords: RANDOM
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=145407
Issue Type: DEFECT Exception Reporter: 145407
Attachments: stacktrace
simple sample application

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.