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 53804 - Exceptions when creating project reusing name of deleted project
Summary: Exceptions when creating project reusing name of deleted project
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-21 12:44 UTC by Milan Kubec
Modified: 2009-12-21 04:47 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack traces (13.68 KB, text/plain)
2005-01-21 12:45 UTC, Milan Kubec
Details
exc stack trace (13.47 KB, text/plain)
2005-07-08 13:56 UTC, Milan Kubec
Details
exc. stack trace (13.19 KB, text/plain)
2005-09-21 09:54 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-01-21 12:44:33 UTC
[dev-200501191900, JDK 1.5.0_02]

1) Create some j2se project with all values default
2) Close the project
3) Delete the project
4) Create the same project as in 1)
5) Close the project
6) Delete the project
7) Create the same project as in 1)
After hitting Finish IllegalArgumentException is
thrown. Seems reproducible.

Not sure which part of projects is involved
therefore filed here. Please reassign.
Comment 1 Milan Kubec 2005-01-21 12:45:01 UTC
Created attachment 19857 [details]
exc stack traces
Comment 2 Jesse Glick 2005-01-21 17:01:37 UTC

*** This issue has been marked as a duplicate of 42422 ***
Comment 3 Milan Kubec 2005-07-08 13:51:16 UTC
Don't agree with duplicate of issue #42422. Being able to delete the project
from UI doesn't unbind us from graceful handling of situation when user *closes
and then deletes* the project from disk outside of IDE and tries to create new
one with the same name. BTW I reproduced the exception on dev-200507061800.
Comment 4 Milan Kubec 2005-07-08 13:56:30 UTC
Created attachment 23038 [details]
exc stack trace
Comment 5 Jesse Glick 2005-07-12 05:18:05 UTC
It's not about whether or not there's a GUI action for deleting a project. The
point is that there is no infrastructure currently for safely removing a project
reference from memory. You must close the project and anything that might refer
to it, wait at least fifteen seconds, force a garbage collect, *then* delete it
(or more simply, shut down the IDE, delete, and restart). That infrastructure is
being worked on already. In 4.1 this is simply not supported without an IDE restart.
Comment 6 Tomas Zezula 2005-08-31 13:09:44 UTC
Use the Delete action on the project, IDE does not support external project
delete, but I can create a message saying that the IDE is not able to create a
new project rather than throwing an exception.
Is it OK for you?
Comment 7 Max Sauer 2005-09-21 09:53:41 UTC
This issue is still valid in 5.0 - but results in different eception:

Annotation: Occurred at: null:-1
org.xml.sax.SAXParseException: Premature end of file.
        at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
        at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
        at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
...
(stack trace attached)

[200509201800, solaris 10/sparc, JDK 1.5.0_05]
Comment 8 Max Sauer 2005-09-21 09:54:52 UTC
Created attachment 25018 [details]
exc. stack trace
Comment 9 Tomas Zezula 2005-09-21 13:22:16 UTC
Is the deleted project a library project of some other project?
Comment 10 Max Sauer 2005-09-21 14:19:41 UTC
No, a newly created JavaApplication.
Comment 11 Quality Engineering 2009-12-21 04:47:38 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team