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 159895

Summary: java CC in JSP's doesn't work: 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: Marek Fukala <mfukala>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=147333
Issue Type: DEFECT Exception Reporter: 147333
Attachments: stacktrace

Description Jindrich Sedek 2009-03-09 11:14:41 UTC
Build: NetBeans IDE Dev (Build Parsing_API-209-on-090308)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02
OS: SunOS, 5.11, x86

User Comments:
jsedek: Create new Web application
create new scriptlet in JSP page
invoke code completion in scriptlet at possition of "|" in next sample:

<% | %>

CCE is thrown



Stacktrace: 
org.netbeans.modules.parsing.spi.ParseException
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:189)
        at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:96)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.query(GsfCompletionProvider.java:309)
        at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 1 Jindrich Sedek 2009-03-09 11:16:23 UTC
Created attachment 77896 [details]
stacktrace
Comment 2 Marek Fukala 2009-03-09 11:59:30 UTC
fixed

changeset:   118785:09518aafed84
tag:         tip
user:        Marek Fukala <mfukala@netbeans.org>
date:        Mon Mar 09 11:58:25 2009 +0100
summary:     #159895 - java CC in JSP's doesn't work: ClassCastException:
org.netbeans.modules.java.source.parsing.JavacParserResult cannot be cast to org.netbeans.modules.csl.spi.ParserResult
Comment 3 Jindrich Sedek 2009-03-09 17:26:07 UTC
verified.
NetBeans IDE Dev (Build Parsing_API-211-on-090309)
Comment 4 Quality Engineering 2009-03-17 08:45:28 UTC
Integrated into 'main-golden', will be available in build *200903170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/72341be9ddf8
User: Marek Fukala <mfukala@netbeans.org>
Log: #159895 - java CC in JSP's doesn't work: ClassCastException: org.netbeans.modules.java.source.parsing.JavacParserResult cannot be cast to org.netbeans.modules.csl.spi.ParserResult