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 69001 - [50cat] Projects created under Beta2 loose project name and access to source on IDE restart
Summary: [50cat] Projects created under Beta2 loose project name and access to source ...
Status: RESOLVED DUPLICATE of bug 66563
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 5.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords: REGRESSION
: 69042 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-20 14:19 UTC by stroudcuster
Modified: 2005-11-22 09:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ProjNameTest2 project.xml file (567 bytes, text/xml)
2005-11-20 14:20 UTC, stroudcuster
Details
ProjNameTest3 project.xml file (832 bytes, text/xml)
2005-11-20 14:21 UTC, stroudcuster
Details
Web App project.xml (1.03 KB, text/xml)
2005-11-20 15:06 UTC, stroudcuster
Details
Entrprise App project.xml (2.79 KB, text/xml)
2005-11-20 15:07 UTC, stroudcuster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stroudcuster 2005-11-20 14:19:54 UTC
[ BUILD # : Beta 2 ]
[ JDK VERSION : 1.5.0_05 ]

I am able to reliably reproduce this bug:
1. Create a Java Application Project.
2. A tab is created under Projects for the new project.
3. Close the IDE.
4. Restart the IDE.
5. The project name is displayed as ??? and there are no tabs for source or test under the project.

This does not occur with projects created with QBuild 200510311820.

The problem may be related to a namespace issue in project.xml

In project.xml files created under the QBuild, the data element has the namespace http://www.netbeans.org/ns/j2se-project/3, while projects created under Beta2 have the namespace http://www.netbeans.org/ns/project/1.  Each element under the data element also has this namespace, indicating that ../1 is not the default namespace at that point.

I have attached two project.xml files.  ProjNameTest2 was created under the QBuild and ProjNameTest3 was created under Beta2.
Comment 1 stroudcuster 2005-11-20 14:20:49 UTC
Created attachment 27068 [details]
ProjNameTest2 project.xml file
Comment 2 stroudcuster 2005-11-20 14:21:28 UTC
Created attachment 27069 [details]
ProjNameTest3 project.xml file
Comment 3 stroudcuster 2005-11-20 15:01:56 UTC
Further testing shows that this issue also occurs with Library, Web, and
Enterprise projects.  On restart after creating the Enterprise project, the
following exception was issued:
java.lang.NullPointerException
	at
org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties$PathParser.createWarIncludesMap(EarProjectProperties.java:1284)
	at
org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties$PathParser.decode(EarProjectProperties.java:1193)
	at
org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties$PropertyInfo.update(EarProjectProperties.java:1052)
	at
org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties$PropertyInfo.<init>(EarProjectProperties.java:1045)
	at
org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties.read(EarProjectProperties.java:728)
	at
org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties.<init>(EarProjectProperties.java:242)
	at
org.netbeans.modules.j2ee.earproject.EarProject$ProjectOpenedHookImpl.projectOpened(EarProject.java:358)
	at
org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:50)
	at
org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:518)
	at
org.netbeans.modules.project.ui.OpenProjectList.getDefault(OpenProjectList.java:143)
	at
org.netbeans.modules.project.ui.OpenProjectsTrampolineImpl.getOpenProjectsAPI(OpenProjectsTrampolineImpl.java:39)
	at org.netbeans.api.project.ui.OpenProjects.getOpenProjects(OpenProjects.java:68)
	at
org.netbeans.modules.editor.bookmarks.EditorBookmarksModule.restored(EditorBookmarksModule.java:81)
	at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:360)
	at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:276)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:898)
	at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:377)
	at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:311)
	at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:244)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:206)
	at org.netbeans.core.startup.Main.start(Main.java:377)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:90)
[catch] at java.lang.Thread.run(Thread.java:595)
Comment 4 stroudcuster 2005-11-20 15:06:19 UTC
Created attachment 27070 [details]
Web App project.xml
Comment 5 stroudcuster 2005-11-20 15:07:08 UTC
Created attachment 27071 [details]
Entrprise App project.xml
Comment 6 Jan Chalupa 2005-11-20 17:28:21 UTC
Another dup of issue #68872?
Comment 7 Jan Lahoda 2005-11-21 12:23:47 UTC
Seems like a potential duplicate of issue #66563.

Could you please:
1. Double check that you run NetBeans beta2 and the QBuild 200510311820 on the
very same JDK.
2. Double check that you do not have a Xalan on the bootclasspath (in
jdk/jre/endorsed or jdk/jre/ext, etc) (see issue #66563 for more information).
3. Attach your messages.log to this bug.

Thanks.
Comment 8 Jan Lahoda 2005-11-21 15:08:48 UTC
*** Issue 69042 has been marked as a duplicate of this issue. ***
Comment 9 Jan Lahoda 2005-11-22 09:29:21 UTC
Offline message from the reporter: the problem was caused by a xalan on the IDE
classpath. Closing as duplicate of issue #66563.

*** This issue has been marked as a duplicate of 66563 ***