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 132319 - NPE and no possibility to create project
Summary: NPE and no possibility to create project
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks: 131609
  Show dependency tree
 
Reported: 2008-04-08 13:33 UTC by Victoria Zhukovskaya
Modified: 2008-04-09 13:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victoria Zhukovskaya 2008-04-08 13:33:30 UTC
Build 080408
NPE when create php project
Scenario has the same steps as for issues - 132189 and 131023. But here is different folders C:\New Folder and C:\New
Folder (2).

Steps:
1. Create PHP Project - invoke from main menu File -> New Project...
2. Choose project PHP Application, press Next >
3. Don't edit default values on Name and Location view of New PHP Project wizard. See  Sources have location <user
project folder>\web
4. Press Next >
5. Set check box into true on Server Configuration view and select f.e. C:\New Folder
6. Press back and set the same location (C:\New Folder (2)) for Sources.
7. Press Finish

Throws NPE.
I guess if we disable step 3 of project wizard after selecting of Project Sources folder we can not using path wich is
specified on step 3.

additional steps:
1. close Exception window.
2. Return value of Project sources to <Project Folder>\web/

See  warning - "Project Folder already exist and is not empty"

There is disabled Next and finiish buttons.
And we have no posibility to create php project after steps as stated above.
Here is broken logic. I'm shure the issue is P1.


java.lang.NullPointerException
	at
org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.configureSources(NewPhpProjectWizardIterator.java:239)
	at
org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.createProject(NewPhpProjectWizardIterator.java:213)
	at
org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.instantiate(NewPhpProjectWizardIterator.java:124)
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1023)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:595)
	at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:416)
	at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:253)
	at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:165)
	at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1384)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1341)
	at org.openide.WizardDescriptor.access$1600(WizardDescriptor.java:119)
	at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1908)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Jaroslav Pospisil 2008-04-09 10:48:09 UTC
Can't reproduce with latest PHP build from Hudson and described steps:

Product Version: NetBeans IDE Dev (Build 080409)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)
Userdir: H:\Testing\Userdir\PHP01

Comment 2 Tomas Mysik 2008-04-09 10:55:33 UTC
Hi Victoria, I wasn't able to reproduce this issue so I asked Jarda for help because he uses Windows (see his 
comment). Could you please try to reproduce with the latest build from deadlock?
(In the NewPhpProjectWizardIterator.java file on the line 239 there cannot be any NPE so just to be sure that 
everything is OK. Feel free to reopen this issue and attach stacktrace, thanks.
Comment 3 Tomas Mysik 2008-04-09 11:05:05 UTC
I just added assertion to help to find where NPE could be.

changeset:   77166:2b439447c813
user:        Tomas Mysik <tmysik@netbeans.org>
date:        Wed Apr 09 12:00:13 2008 +0200
summary:     Added assert (issue #132319)
Comment 4 Tomas Mysik 2008-04-09 11:19:18 UTC
Reopening to have this issue as a reminder. Marking as INCOMPLETE because we are not able to reproduce. Could you 
please try to reproduce using http://deadlock.netbeans.org/hudson/job/PHP-build/1955/ or newer? Thanks.
(Yesterday evening I added some code to NewPhpProjectWizardIterator related to Index File so the line numbers don't 
match.)

Thanks.
Comment 5 Tomas Mysik 2008-04-09 11:34:33 UTC
Still reproducible by reporter, I will investigate more.

SEVERE [org.openide.util.RequestProcessor]
java.lang.AssertionError
        at 
org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.configureSources(NewPhpProjectWizardIterator.java:240)
        at 
org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.createProject(NewPhpProjectWizardIterator.java:213)
        at 
org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.instantiate(NewPhpProjectWizardIterator.java:124)
        at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1023)
        at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:595)
        at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:416)
        at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:253)
        at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:165)
        at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1384)
        at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1341)
        at org.openide.WizardDescriptor.access$1600(WizardDescriptor.java:119)
        at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1908)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
Comment 6 Tomas Mysik 2008-04-09 11:51:30 UTC
Fixed I hope. Please verify.

changeset:   77201:bd8c686b4a77
user:        Tomas Mysik <tmysik@netbeans.org>
date:        Wed Apr 09 12:44:36 2008 +0200
summary:     #132319: NPE and no possibility to create project
Comment 7 Victoria Zhukovskaya 2008-04-09 13:49:56 UTC
verified in Build #1959 Apr 9, 2008