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 70490 - NBM project display name can be null
Summary: NBM project display name can be null
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 72648
  Show dependency tree
 
Reported: 2005-12-16 04:05 UTC by cshbbrain
Modified: 2006-01-30 00:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cshbbrain 2005-12-16 04:05:59 UTC
I have used the netBeans 5.0 Beta 2 sometimes.Today I code in netBeans IDE 
for my application based on the newest netBeans Platform,When I run my 
application,my application message me "some class not found",but the class my 
application messaged exists.After that I close my netBeans IDE and restart the 
IDE,my netBeans IDE message some messgaes,please see the information below, and 
I can't see the exploer window and editor window and so on. the information is:
"java.lang.NullPointerException
	at sun.text.UCharacterIterator.<init>(UCharacterIterator.java:46)
	at sun.text.UCharacterIterator.getInstance(UCharacterIterator.java:71)
	at sun.text.Normalizer.setText(Normalizer.java:1045)
	at java.text.CollationElementIterator.setText
(CollationElementIterator.java:479)
	at java.text.RuleBasedCollator.compare(RuleBasedCollator.java:406)
	at java.text.Collator.compare(Collator.java:297)
	at 
org.netbeans.modules.project.ui.OpenProjectList$ProjectByDisplayNameComparator.c
ompare(OpenProjectList.java:960)
	at java.util.Arrays.mergeSort(Arrays.java:1284)
	at java.util.Arrays.mergeSort(Arrays.java:1295)
	at java.util.Arrays.mergeSort(Arrays.java:1296)
	at java.util.Arrays.sort(Arrays.java:1223)
	at java.util.Collections.sort(Collections.java:159)
	at 
org.netbeans.modules.project.ui.ProjectsRootNode$ProjectChildren.getKeys
(ProjectsRootNode.java:299)
	at 
org.netbeans.modules.project.ui.ProjectsRootNode$ProjectChildren.propertyChange
(ProjectsRootNode.java:268)
	at java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:333)
	at java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:270)
	at org.netbeans.modules.project.ui.OpenProjectList$3.run
(OpenProjectList.java:269)
	at org.openide.util.Mutex$1.run(Mutex.java:1162)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at java.awt.Component.show(Component.java:1300)
	at java.awt.Component.setVisible(Component.java:1253)
	at org.netbeans.modules.project.ui.OpenProjectList.open
(OpenProjectList.java:206)
	at org.netbeans.modules.project.ui.actions.OpenProject.actionPerformed
(OpenProject.java:86)
	at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:234)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
"

I don't know why,I haven't met error like this.So I delete the user dir in my 
disk,and restart the IDE,my IDE also message the same information. And I cose 
teh message window,and open my project on my disk,my IDE also message the same 
information. At last, I uninstall my IDE from my computer,and reinstall it. 
When I open my new-installed IDE,and open a project(BTW,my application is based 
on netBeans Platform,and my JDK is 5.0),the IDE also message me the same 
information.I really don't know why!Please help me!Thanks so much! 
16 DEC 2005 Jason S.H.Chen
Comment 1 Jan Lahoda 2005-12-16 15:55:39 UTC
What types of projects do you have opened in the projects tab? This seems that
(at least) one of them returns "null" from ProjectInformation.getDisplayName().
Do you have your own project type?
Comment 2 cshbbrain 2005-12-17 09:28:02 UTC
I open a Module Suite Project,it's Category is NetBeans Plug-in Modules,include 
Module Suite Project,Library Wrapper Module Project and Mudule Project. I 
create the project use netBeans 5.0 before,and I can open it before. Now I open 
every Module Suite Project,the same thing will occur.Please help me,thanks very 
much!
Comment 3 Jesse Glick 2005-12-17 17:35:25 UTC
Need a log file, and preferably some sort of steps to reproduce, preferably in a
dev build.

I will patch OpenProjectList.ProjectByDisplayNameComparator to supply better
diagnostics.
Comment 4 Jesse Glick 2005-12-17 17:46:18 UTC
I found two possible bugs in apisupport that could cause this:

- somehow corrupt project.xml (perhaps due to use of obsolete buggy JDK?)

- OpenIDE-Module-Localizing-Bundle defined in manifest.mf, and that .properties
present, but (for some reason) without OpenIDE-Module-Name defined in it

I will try to fix both for a future release. Cannot know which was the problem
for reporter.
Comment 5 cshbbrain 2005-12-20 03:07:00 UTC
Now I have uninstalled the netBeans 5.0 Beta 2,and installed netBeans 5.0 Beta 
1 that I have downloaded before.Now I can open the same projects that opened by 
netBeans 5.0 Beta 2 occurring errors.Everything is ok!I'm sorry that I can't 
provide the log file,because I have Uninstalled netBeans 5.0 Beta 2.
Comment 6 Jesse Glick 2005-12-20 17:23:25 UTC
Well fixing what I can, maybe it will help the next person:

committed   * Up-To-Date  1.133      
apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java
committed   * Up-To-Date  1.47       
projects/projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java
Comment 7 Jesse Glick 2006-01-30 00:12:00 UTC
Just improving summary.