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.
Build: NetBeans IDE Dev (Build 071030) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06 OS: Windows XP, 5.1, x86 User Comments: 1. Build IDE from fresh sources. 2. Start IDE. 3. Add GlassFish V2 to the IDE. 4. Create Java EE 5 web application with "Visual Web JSF" framework for GlassFish. Result: java.lang.NullPointerException arises.
Created attachment 51990 [details] stacktrace
Project is totally unusable. "Loading, please wait..." message doesn't disappear. So upgraded to P1.
Roman is this consistently reproducible? What did you have in the Page1.java file when this happened. It seems we are getting a null JavaSource (a Retouche object) instance for a Java file. I will try to reproduce.
I'm able to reproduce the bug with fresh build as well. The content of jsp page is below: <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf"> <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/> <f:view> <webuijsf:page binding="#{Page1.page1}" id="page1"> <webuijsf:html binding="#{Page1.html1}" id="html1"> <webuijsf:head binding="#{Page1.head1}" id="head1"> <webuijsf:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/> </webuijsf:head> <webuijsf:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid"> <webuijsf:form binding="#{Page1.form1}" id="form1"> </webuijsf:form> </webuijsf:body> </webuijsf:html> </webuijsf:page> </f:view> </jsp:root>
Build: NetBeans IDE Dev (Build 20071030121315) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b02 OS: Windows XP, 5.1, x86 User Comments: It started to happen in build #4203 (30-Oct-2007 09:33:43) and it breaks UI validation tests on deadlock.netbeans.org. To reproduce: - open new project wizard - choose Web|Web Application - go to Frameworks panel - check Visual Web JavaServer Faces - finish the wizard and you get the exception. In editor is shown "Loading, please wait..." forever.
Created attachment 52007 [details] stacktrace
Yes. I can reproduce. Deva can you have a look at this.
Build: NetBeans IDE Dev (Build 20071030121315) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b02 OS: Windows Vista, 6.0, x86 User Comments: Received this error creating a Visual web EE5 project with glassfish.
Created attachment 52011 [details] stacktrace
FWIW, I was *not* able to reproduce the problem using yesterday's build under the following config: Product Version: NetBeans IDE Dev (Build 200710291200) Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb)
Java Source is null because of the the following test in: JavaSource org.netbeans.api.java.source.JavaSource.forFileObject(FileObject fileObject) throws IllegalArgumentException : : if (od.getLookup().lookup(CloneableEditorSupport.class) == null) { return null; }
1.95 (jlahoda 30-Oct-07): DataObject od = DataObject.find(fileObject); 1.95 (jlahoda 30-Oct-07): 1.95 (jlahoda 30-Oct-07): if (od.getLookup().lookup(CloneableEditorSupport.class) == null) { 1.95 (jlahoda 30-Oct-07): return null; 1.95 (jlahoda 30-Oct-07): }
The fix that Jan made was for issue # 115104 I sent Jan a query.115104 :
I have slightly relaxed the test in JS, so this problem should be gone now. Sorry for the problems. BTW: it seems to me that the getCookie and getLookup() are not consistent for JsfJavaDataObject, ie. d.getCookie(EditCookie.class) != d.getLookup().lookup(EditCookie.class), IMO. Checking in JavaSource.java; /cvs/java/source/src/org/netbeans/api/java/source/JavaSource.java,v <-- JavaSource.java new revision: 1.96; previous revision: 1.95 done
About Jan's comment: "BTW: it seems to me that the getCookie and getLookup() are not consistent for JsfJavaDataObject, ie. d.getCookie(EditCookie.class) != d.getLookup().lookup(EditCookie.class), IMO." Can you plerase have a look at that Quy?
*** Issue 120540 has been marked as a duplicate of this issue. ***
I looked into the lookup()/getCookie() mismatch, and it's working from my end. Both getCookie(EditCookie.class) and getLookup().lookup(EditCookie.class) return the same value.
Ahhh, OK, I understand how it works now. Sorry for disturbing you.
Product Version: NetBeans IDE Dev (Build 071031) Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 System: Linux version 2.6.17-12-generic running on i386; UTF-8; en_US (nb) Userdir: /usr/src/nbsrc/nbbuild/testuserdir
Build: NetBeans IDE Dev (Build 200710301200) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05 OS: Windows XP, 5.1, x86 User Comments: I just created a new VWP project. The exception occured as the Page1 VWP editor window was initializing.
Created attachment 52117 [details] stacktrace
Build: NetBeans IDE Dev (Build 200710301200) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05 OS: SunOS, 5.10, sparc User Comments: created a new Java EE 5 web project with framework Visual Web javaServer faces
Created attachment 52157 [details] stacktrace
Build: NetBeans IDE Dev (Build 200710301200) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05 OS: Windows XP, 5.1, x86 User Comments: created a new visual web page for a web project that had pure JSF pages before
Created attachment 52221 [details] stacktrace
Build: NetBeans IDE Dev (Build 200710301200) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05 OS: Windows XP, 5.1, x86 User Comments: created a new web project with visual web framework
Created attachment 52222 [details] stacktrace
I downloaded the new 6.0.1 version of netbean and i have still this problem. "loading, please wait".how can i fix this
Please specify exact steps. Attach the project that is causing the problem.
To resolve this issue, I reinstalled the new version of JDK and than installed the 6.1 netbean version. Now it works.
Verified with build 080320.