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.
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.
Created attachment 71393 [details] reopen 6.1 diagram show no badge
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)
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.
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) ...
Created attachment 71395 [details] ide log file
yea, project initialization exception may be separate issue, and all later exceptions are caused by bad project initialization. but need to try.
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.
Created attachment 71811 [details] project tree image