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 149543 - new NB 6.1 diagrams have no 6.1 badge
Summary: new NB 6.1 diagrams have no 6.1 badge
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-08 18:24 UTC by Peter Lam
Modified: 2009-05-25 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
reopen 6.1 diagram show no badge (33.01 KB, image/png)
2008-10-08 18:25 UTC, Peter Lam
Details
ide log file (33.58 KB, text/plain)
2008-10-08 18:45 UTC, Peter Lam
Details
project tree image (29.52 KB, image/png)
2008-10-14 21:18 UTC, George Vasick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-10-08 18:24:34 UTC
build 20081008

The new NB 6.1 diagrams are not indicated with the 6.1 badge when project is reopened in NB 6.5. Here's the scenario.

In NB 6.1, create a java-platform project
- create diagrams with elements
- save and close project
In NB 6.5 open the 6.1 project
- 6.1 diagrams are shown with badges, open and covert them 
- save and close project
- from filesystem, copy the original 6.1 diagram files from the project's backup directory to the project's directory
In NB 6.1, open the project again
- open the diagrams, add and name another element in each diagram
- close and save project
In NB 6.5 open the 6.1 project again
- expand the Diagrams node and notice that each diagram is now listed twice with the badge showing which are 6.1
diagrams. see attached screenshot showing this.
Comment 1 Peter Lam 2008-10-08 18:25:49 UTC
Created attachment 71393 [details]
reopen 6.1 diagram show no badge
Comment 2 Peter Lam 2008-10-08 18:40:21 UTC
After doing one more round of editing in NB 6.1 and close the project in 6.1, opening the project in 6.5 and then
exiting ide without converting diagrams. Restarting ide popped up the following exception. Not sure if this is related
but put it here first. After restarting ide, the 3rd set of unconverted 6.1 diagrams are showing with badges.

java.lang.NullPointerException
	at org.netbeans.modules.uml.project.ui.customizer.UMLImportsUiSupport.initializeProject(UMLImportsUiSupport.java:130)
	at org.netbeans.modules.uml.project.UMLProject$ProjectOpenedHookImpl.retreiveProject(UMLProject.java:526)
	at org.netbeans.modules.uml.project.UMLProject$ProjectOpenedHookImpl.verifyProjectIsInitialized(UMLProject.java:546)
	at org.netbeans.modules.uml.project.UMLProject$ProjectOpenedHookImpl.projectOpened(UMLProject.java:582)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
	at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:993)
	at org.netbeans.modules.project.ui.OpenProjectList.access$800(OpenProjectList.java:124)
	at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.loadOnBackground(OpenProjectList.java:348)
	at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.run(OpenProjectList.java:270)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 3 Peter Lam 2008-10-08 18:43:08 UTC
ops, going further after restarting ide that shows the 3rd set of unconverted 6.1 diagrams are showing with badges in
the Diagrams node. However, expanding the Model node is empty. Nothing happens when opening the 3rd set of diagrams with
badges. Maybe due to the exception during ide restarting.
Comment 4 Peter Lam 2008-10-08 18:44:47 UTC
One more exception when I closed the 6.1 project. See attached ide log for complete exception.

java.lang.NullPointerException
	at org.netbeans.modules.uml.project.ui.customizer.UMLImportsUiSupport.unInitializeProject(UMLImportsUiSupport.java:141)
	at org.netbeans.modules.uml.project.UMLProject$ProjectOpenedHookImpl.projectClosed(UMLProject.java:690)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectClosed(ProjectOpenedHook.java:84)
	at org.netbeans.modules.project.ui.OpenProjectList.notifyClosed(OpenProjectList.java:1015)
	at org.netbeans.modules.project.ui.OpenProjectList.close(OpenProjectList.java:706)
	at org.netbeans.modules.project.ui.actions.CloseProject.actionPerformed(CloseProject.java:73)
	at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:161)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
...
Comment 5 Peter Lam 2008-10-08 18:45:19 UTC
Created attachment 71395 [details]
ide log file
Comment 6 Sergey Petrov 2008-10-08 18:53:16 UTC
yea, project initialization exception may be separate issue, and all later exceptions are caused by bad project
initialization. but need to try.
Comment 7 George Vasick 2008-10-14 21:16:48 UTC
I only see one set of diagrams under the diagram node.  I do so both 6.1 and 6.5 diagrams under the model node.  The 6.1
diagrams are correctly badged.  See attachment below.
Comment 8 George Vasick 2008-10-14 21:18:12 UTC
Created attachment 71811 [details]
project tree image