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 125154 - NullPointerException at org.netbeans.modules.web.wizards.PageIterator.createPanels
Summary: NullPointerException at org.netbeans.modules.web.wizards.PageIterator.createP...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Trey Spiva
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-12 05:53 UTC by yinghan
Modified: 2010-01-12 02:11 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 1187


Attachments
stacktrace (6.17 KB, text/plain)
2008-01-12 05:53 UTC, yinghan
Details
stacktrace (3.18 KB, text/plain)
2008-08-11 14:08 UTC, kslater
Details
stacktrace (6.45 KB, text/plain)
2008-10-17 22:06 UTC, bolsover
Details
stacktrace (6.43 KB, text/plain)
2009-07-21 14:06 UTC, kawazu428
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yinghan 2008-01-12 05:53:48 UTC
Build: NetBeans IDE Dev (Build 200801111200)
VM: Java HotSpot(TM) Client VM, 1.5.0_14-b03
OS: Windows XP, 5.1, x86

User Comments:
Comment 1 yinghan 2008-01-12 05:53:52 UTC
Created attachment 54987 [details]
stacktrace
Comment 2 Petr Hejl 2008-03-28 11:31:25 UTC
Seems like missing Sources in project lookup... I'm not sure how this could happen.

yinghan is there a reliable way to reproduce?
Comment 3 Peter Zavadsky 2008-07-29 10:21:56 UTC
1) There might be a null check whether the project provides Sources impl or if specific project type is always supposed
to have them, again check for null and provide nice log which project didn't provide it, but avoid NPE.
2) The javadoc to Project.getLookup() doesn't say that each project have to provide Sources impl, i.e. the client should
check for non-null.
3) Also the javadoc to Project.getLookup() says you should rather use ProjectUtils.getSources(project) then
project.getLookup().lookup(Sources.class).
Comment 4 kslater 2008-08-11 14:08:36 UTC
Build: NetBeans IDE Dev (Build 200808110201)
VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Linux, 2.6.24-19-generic, amd64

User Comments: 
trying to add a new HTML file to an existing HTML-only project from the Files tab.

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.web.wizards.PageIterator.createPanels(PageIterator.java:134)
        at org.netbeans.modules.web.wizards.PageIterator.initialize(PageIterator.java:306)
        at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:100)
        at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:76)
        at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:200)
        at org.openide.loaders.TemplateWizard.setTemplate(TemplateWizard.java:218)
Comment 5 kslater 2008-08-11 14:08:55 UTC
Created attachment 67005 [details]
stacktrace
Comment 6 bolsover 2008-10-17 22:06:32 UTC
Build: NetBeans IDE Dev (Build 200810171401)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows Vista, 6.0, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.web.wizards.PageIterator.createPanels(PageIterator.java:134)
        at org.netbeans.modules.web.wizards.PageIterator.initialize(PageIterator.java:306)
        at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:100)
        at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:76)
        at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:193)
        at org.openide.loaders.TemplateWizard.setTemplate(TemplateWizard.java:211)
Comment 7 bolsover 2008-10-17 22:06:43 UTC
Created attachment 72160 [details]
stacktrace
Comment 8 Trey Spiva 2008-11-18 22:56:40 UTC
Move to later
Comment 9 kawazu428 2009-07-21 14:06:25 UTC
Build: NetBeans IDE Dev (Build 200907161401)
VM: Java HotSpot(TM) Server VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux, 2.6.28-13-generic, i386

User Comments: 
tried to create new HTML file in Html project

Stacktrace: 
java.lang.NullPointerException<br/>
        at org.netbeans.modules.web.wizards.PageIterator.createPanels(PageIterator.java:132)<br/>
        at org.netbeans.modules.web.wizards.PageIterator.initialize(PageIterator.java:297)<br/>
        at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:100)<br/>
        at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:76)<br/>
        at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:193)<br/>
        at org.openide.loaders.TemplateWizard.setTemplate(TemplateWizard.java:211)<br/>
Comment 10 kawazu428 2009-07-21 14:06:36 UTC
Created attachment 85006 [details]
stacktrace
Comment 11 Quality Engineering 2009-11-02 11:16:54 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX