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.
Product Version: NetBeans IDE Dev (Build 200803051205) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Description: ============= start IDE with clear userdir (tested on javase distribution) 1. create some project 2. then delete it 3. create JDA with db connection During creation, XML parser throws exception and no persistence libraries are add to project Another usecase: do 1-2 steps again and create JDA without db connection 3. use some binding in frame for purpose to generate beansbinding library () library is not added to project as well StackTrace: =========== WARNING [org.netbeans.api.java.source.JavaSource]: JavaSource.runUserActionTask called in AWT event thread by: org.netbeans.api.java.source.SourceUtils.isMainClass(SourceUtils.java:862) INFO: Premature end of file. Occurred at: file:/C:/Documents%20and%20Settings/Admin/My%20Documents/NetBeansProjects/DesktopApplication7/nbproject/project.xml:1 Occurred at: file:/C:/Documents%20and%20Settings/Admin/My%20Documents/NetBeansProjects/DesktopApplication7/nbproject/project.xml:1 Caused: org.xml.sax.SAXParseException: Premature end of file. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
Created attachment 57878 [details] 129405
I understand that this occurs frequently during testing, but it is not a regular use-case of our users => loweing priority to P3.
The problem seems to be outside GUI builder (no frame of attached stack trace is from form module) => reassigning to projects/libraries for evaluation. It seems that when project in the same directory is created-deleted-created in one IDE session then it sometimes fails to add a library to a classpath.
Project libs
Consequences of this issue are more wider. Editor doesn't show compilation errors in project's classes which has arisen as a result of this issue. Users could have a problem how to solve it and I don't suppose that deleting of project is such a rare event. Therefore I think that priority P2 correspond with issue severity.
it did work for me when I tried. Is the project created+deleted of same name (same folder) as the one created in the next step? -> P3 is more appropriate, since the issue doesn't arise without steps 1+2... BTW: did this happen in automated testing or manual?
moving opened issues from TM <= 6.1 to TM=Dev
fixed. please note that the issue was in the swingapp wizard that didn't call ProjectManager.clearNonProjectCache() after creating the project metadata. Subsequent calls to Projectmanager returned the cached "not a project" value when called on the previously deleted, then recreated folder. http://hg.netbeans.org/main/rev/e150f0d43ac6
Integrated into 'main-golden', available in build *200808260201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/e150f0d43ac6 User: Milos Kleint <mkleint@netbeans.org> Log: #129405 clear the project cache after creating the necessary project metadata in the wizard.
verified on Product Version: NetBeans IDE Dev (Build 20080905031732) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)