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.
1) Create a web application with a servlet and a EJB application with a session bean. 2) Create UML projects by reverse engineering each of the above. 3) Import the bean class into the Web UML project. 4) Create a sequence diagram with both classes and save 5) Restart NetBeans The "Imported Elements" section of the Web UML tree is now empty. On opening the sequence diagram, the class box for the bean (top of diagram) is empty though the life line is named correctly. Moving the life line for the bean causes its header to become empty. Attempts to "re-import" the missing class fail silently.
Created attachment 37051 [details] NetBeans startup log
in order to understand the importing issue, please provide steps on how you did the importing of the bean class into the uml project.
I've attempted importing two different ways: 1) Drag the bean from the EJB-based UML project's model to the Web-based one and click "No" on the dialog that says, "Click Yes to move the elements into the destination project, No to import the elements". This usually fails to import anything (a different bug!), but I believe that was the way I originally got the results I posted. 2) More predictably, I can create a sequence diagram in the Web-based UML project and then drag the bean model item into the diagram from the other UML project. That causes the other project to show up under "Imported Elements" and behave reasonably until a NetBeans restart, at which point I get the errors that I described.
*** Issue 114310 has been marked as a duplicate of this issue. ***
We cannot reproduce, please make sure the original project is also loaded in IDE before attempting to expand 'Imported Elements' node, it's a requirement for imported elements to work properly.
Reopen the issue as we have a reliable reproducible case, thanks to Iwan, see issue 114310. basic steps: 1. create uml project 1 with an element say class1 (note, it does not have to be under a package) 2. create uml project 2 with a package, say pkg ( this is crucial) 3. create a class diagram under pkg 4. drag class1 from project 1 to diagram created in #3 5. verify that class1 should appear under project 2 -> "Imported Elements" 6. save all and exit IDE 7. restart IDE, expand project 2 -> "Imported Elements", class1 isn't there. The issue is that any elements imported into a sub package (as opposed to top level) are not properly loaded when IDE restarts. The good news is the saved model data appears to be correct, it's the flaw in retrieving imported elements and populating the tree that caused the trouble.
sounds like issue 116902 might be related to this.
implemented /corrected logic to resolve imported elements through external model data file. IDE:------------------------------------------------- IDE: [10/3/07 4:29 PM] Diffing "Classifier.java" started IDE: [10/3/07 4:29 PM] Diffing "Classifier.java" finished IDE:------------------------------------------------- IDE: [10/3/07 4:33 PM] Committing Files started Checking in support/umlsupport/URILocator.java; /cvs/uml/core/src/org/netbeans/modules/uml/core/support/umlsupport/URILocator.java,v <-- URILocator.java new revision: 1.4; previous revision: 1.3 done Checking in metamodel/structure/Project.java; /cvs/uml/core/src/org/netbeans/modules/uml/core/metamodel/structure/Project.java,v <-- Project.java new revision: 1.6; previous revision: 1.5 done Checking in metamodel/core/foundation/ExternalFileManager.java; /cvs/uml/core/src/org/netbeans/modules/uml/core/metamodel/core/foundation/ExternalFileManager.java,v <-- ExternalFileManager.java new revision: 1.4; previous revision: 1.3 done IDE: [10/3/07 4:34 PM] Committing Files finished IDE:------------------------------------------------- IDE: [10/3/07 4:35 PM] Committing Files started Checking in nodes/ImportedProjectChildren.java; /cvs/uml/projectui/src/org/netbeans/modules/uml/project/ui/nodes/ImportedProjectChildren.java,v <-- ImportedProjectChildren.java new revision: 1.6; previous revision: 1.5 done Checking in nodes/Bundle.properties; /cvs/uml/projectui/src/org/netbeans/modules/uml/project/ui/nodes/Bundle.properties,v <-- Bundle.properties new revision: 1.6; previous revision: 1.5 done Checking in nodes/ImportProjectRootNode.java; /cvs/uml/projectui/src/org/netbeans/modules/uml/project/ui/nodes/ImportProjectRootNode.java,v <-- ImportProjectRootNode.java new revision: 1.5; previous revision: 1.4 done Checking in customizer/UMLImportsUiSupport.java; /cvs/uml/projectui/src/org/netbeans/modules/uml/project/ui/customizer/UMLImportsUiSupport.java,v <-- UMLImportsUiSupport.java new revision: 1.6; previous revision: 1.5 done Checking in customizer/ImportElementListener.java; /cvs/uml/projectui/src/org/netbeans/modules/uml/project/ui/customizer/ImportElementListener.java,v <-- ImportElementListener.java new revision: 1.4; previous revision: 1.3 done IDE: [10/3/07 4:35 PM] Committing Files finished
verified in instrumented trunk build 200710050219. pmillssc, please verify with the latest daily build. If the problem still exists for you, please re-open this issue. Thanks.