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.
Trying to open a web page throws a NullPointerException If this error occurs once, i am unable to open any other page for the project
Created attachment 44595 [details] IDE Log File
I was able to get rid of the error by deleting the file that seemed to cause the issue, its a "Visual Web JSP" file which i edited to use framesets.
Created attachment 44596 [details] JSP Page causing the error
The NPE is in insync (see the attached log). Passing there.
The NPE from Insync seems to be coming as a result of mismatch between the JSF page and the backing bean Java file. Can you please attache the .java file that corresponds to the JSF page or even better the project itself. Reopen the issue after you supply that information.
Additional note: When you manually replaced the <ui:body .../> tag with the <frameset .../> from the JSP page, did you also remove the corresponding getters and setters in the backing bean .java file for all the tags that were removed. If not, that can cause the NPE. Currently this cleanup is not supported by the tool :(
Sorry for the late feedback. yes, i commented the code for both the form and body tags. Its not just that the page was not working, the major problem is that all pages in that project stopped opening in visual designer , even new ones. If some error is caused due to jsp/code mismatch, the error should be localized to the file itself.
Created attachment 44873 [details] Code file corresponding to the JSP causing error
Visually designed JSF pages are not supported. Converting this to enhancement. We may support it in future release. A solution for you is to use a simple jsp page with a frameset in it. e.g. <%-- Document : Frames Created on : Author : --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <frameset rows="74,457" NORESIZE="true" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0"> <frame name="header" src="faces/Header.jsp" scroll="no"/> <frameset cols="179,821" NORESIZE="true" FRAMEBORDER="10" FRAMESPACING="0" BORDER="0"> <frame name="menu" src="faces/TreeMenu.jsp" scroll="no" valign="top" /> <frame name="workbench" valign="top"/> </frameset> </frameset> </html>
*** Issue 106209 has been marked as a duplicate of this issue. ***