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 129405 - Not all libraries are added to JDA projects
Summary: Not all libraries are added to JDA projects
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-03-06 14:35 UTC by Jana Maleckova
Modified: 2008-09-05 14:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
129405 (6.48 KB, text/plain)
2008-03-06 14:37 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2008-03-06 14:35:56 UTC
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)
Comment 1 Jana Maleckova 2008-03-06 14:37:16 UTC
Created attachment 57878 [details]
129405
Comment 2 Jan Stola 2008-03-06 14:44:39 UTC
I understand that this occurs frequently during testing, but it is not a regular use-case of our users => loweing 
priority to P3.
Comment 3 Jan Stola 2008-03-06 14:50:32 UTC
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.
Comment 4 Tomas Zezula 2008-03-06 14:55:53 UTC
Project libs
Comment 5 Jana Maleckova 2008-03-06 15:53:09 UTC
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.
Comment 6 Milos Kleint 2008-03-07 09:25:32 UTC
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?
Comment 7 Lukas Hasik 2008-04-10 21:41:57 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 8 Milos Kleint 2008-08-25 17:04:29 UTC
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
Comment 9 Quality Engineering 2008-08-26 06:09:20 UTC
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.
Comment 10 Jana Maleckova 2008-09-05 14:57:46 UTC
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)