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.
[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.
Created attachment 19857 [details] exc stack traces
*** This issue has been marked as a duplicate of 42422 ***
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.
Created attachment 23038 [details] exc stack trace
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.
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?
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]
Created attachment 25018 [details] exc. stack trace
Is the deleted project a library project of some other project?
No, a newly created JavaApplication.
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