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 60620

Summary: [cc] Exception thrown in import="|"%>
Product: javaee Reporter: Jiri Kovalsky <jkovalsky>
Component: JSPAssignee: Marek Fukala <mfukala>
Status: VERIFIED FIXED    
Severity: blocker Keywords: JDK_SPECIFIC
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 61140    
Attachments: NPE thrown when running IDE on JDK 1.5.0_03.
NPE thrown when running IDE on JDK 1.6.0.

Description Jiri Kovalsky 2005-06-29 14:44:19 UTC
Development build #200506281800 of NetBeans 4.2
Windows XP, JDK 1.5.0_03 build #06 or JDK 1.6.0 EA build #42

Description:
============
Code completion does not work when CTRL+Space is pressed when Java packages
should be suggested. Please note that JDK 1.5 and 1.6 throw different exceptions.

Steps to reproduce:
===================
1. Create new sample web application project.
2. Type <%@page import "|"%> in index.jsp and press CTRL+Space.
3. NPE will be thrown in case of JDK 1.5.0_03 and CCE in case of JDK 1.6.0.
Comment 1 Jiri Kovalsky 2005-06-29 14:45:13 UTC
Created attachment 22952 [details]
NPE thrown when running IDE on JDK 1.5.0_03.
Comment 2 Jiri Kovalsky 2005-06-29 14:45:33 UTC
Created attachment 22953 [details]
NPE thrown when running IDE on JDK 1.6.0.
Comment 3 Jiri Kovalsky 2005-06-29 14:47:37 UTC
This issue is JDK specific.
Comment 4 Jiri Kovalsky 2005-07-13 10:23:52 UTC
*** Issue 60911 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Kovalsky 2005-07-20 14:26:12 UTC
Please note that similar exception is thrown when code completion is invoked in
this case:

<jsp:useBean class="|

This is very annoying, increasing priority.
Comment 6 zikmund 2005-07-20 15:41:20 UTC
It is Q-build stopper. Please fix it ASAP. Thanks.
Comment 7 Marek Fukala 2005-07-25 12:47:40 UTC
fixed in trunk. Jirko, can you please verify it asap so I can commit it to the
q-build branch as well?

Checking in AttrSupports.java;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/completion/AttrSupports.java,v
 <--  AttrSupports.java
new revision: 1.3; previous revision: 1.2
done
Checking in JspCompletionQuery.java;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/completion/JspCompletionQuery.java,v
 <--  JspCompletionQuery.java
new revision: 1.5; previous revision: 1.4
done
Comment 8 Jiri Kovalsky 2005-07-25 13:35:47 UTC
I am gonna verify this in the first available continuous trunk build.
Comment 9 Jiri Kovalsky 2005-07-25 15:02:57 UTC
It's working properly now. I agree with merging the fix to Q-build branch.
Verified in continuous development build #20050725-1205.
Comment 10 Marek Fukala 2005-07-25 15:39:00 UTC
fixed in QBE200507191800 branch 

Checking in AttrSupports.java;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/completion/AttrSupports.java,v
 <--  AttrSupports.java
new revision: 1.2.6.1; previous revision: 1.2
done
Checking in JspCompletionQuery.java;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/completion/JspCompletionQuery.java,v
 <--  JspCompletionQuery.java
new revision: 1.4.4.1; previous revision: 1.4
done