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 123906 - exception thrown when creating web project
Summary: exception thrown when creating web project
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-12 19:51 UTC by gimbal
Modified: 2009-11-02 11:03 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 gimbal 2007-12-12 19:51:54 UTC
To reproduce:

1. create a project, for example "temp". The project type does not seem to matter, it was witnessed with the creation of
a regular java project and a web project.
2. close the project and delete it from disk manually
3. create a new project with the same name "temp" in the same location.

the result will be an IllegalArgumentException being thrown inside the IDE. To work arround this the IDE needs to be
closed and restarted after deleting the project directory manually, then the project can be recreated. Exception stacktrace:

java.lang.IllegalArgumentException: Already a project in MasterFileObject@8fac46[C:/source/temp]
	at org.netbeans.spi.project.support.ant.ProjectGenerator$1.run(ProjectGenerator.java:101)
	at org.netbeans.spi.project.support.ant.ProjectGenerator$1.run(ProjectGenerator.java:99)
	at org.openide.util.Mutex.writeAccess(Mutex.java:379)
	at org.netbeans.spi.project.support.ant.ProjectGenerator.createProject0(ProjectGenerator.java:98)
	at org.netbeans.spi.project.support.ant.ProjectGenerator.createProject(ProjectGenerator.java:93)
	at org.netbeans.modules.web.project.api.WebProjectUtilities.setupProject(WebProjectUtilities.java:603)
	at org.netbeans.modules.web.project.api.WebProjectUtilities.createProjectImpl(WebProjectUtilities.java:195)
	at org.netbeans.modules.web.project.api.WebProjectUtilities.access$000(WebProjectUtilities.java:104)
	at org.netbeans.modules.web.project.api.WebProjectUtilities$1.run(WebProjectUtilities.java:171)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:499)
	at org.netbeans.modules.web.project.api.WebProjectUtilities.createProject(WebProjectUtilities.java:169)
	at
org.netbeans.modules.web.project.ui.wizards.NewWebProjectWizardIterator.instantiate(NewWebProjectWizardIterator.java:147)
	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 Milos Kleint 2008-01-02 10:47:09 UTC
well, possibly a duplicate of existing issue ( I can't find it right now). Please delete thhe project using the IDE's
own UI ("Delete project" action) rather than manual delete on command line. The manual delete should also work after
some time spent in the IDE and a few GC cycles. unlikely to be fixed, as there are more important cases to optimize for.
Comment 2 Milos Kleint 2008-11-19 14:30:55 UTC
unlikely to be fixed in 7.0 or next version.

the create/delete/create project cycle in one location is both hard to fix and unlikely scenario in day-to-day use.
Comment 3 Quality Engineering 2009-11-02 11:03:43 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX