JSE8: UML modeling: xmi.content vanished - model empty
Dear fellow users of Sun Java Studio Enterprise 8,
does anybody know how the following problem can be solved?
We were using the UML modeling features of Studio Enterprise 8 during the last three weeks. We have built a large class model (to large to be viewed in readable size on screen) with approximately 100 - 130 classes.
Yesterday evening the elements (the classes) vanished from the model, while the diagrams were still there.
The only thing we managed to save: We exported the diagram of our largest package as an image.
After restarting the Studio Enterprise 8. The model elements are still missing and the diagrams are as white as a new sheet of paper.
Today I found the reason.
The fileprojectname.etd has an<xmi.content> tag which should look like:
<XMI.content>
<UML:Project xmi.id="DCE.4DFCDEFB-3003-25C2-82D8-86B80EEE0FE0" mode="Implementation" defaultLanguage="Java" projVersion="6.1.4.837" name="project_name"/>
<UML:Element.ownedElement>
<UML:Class xmi.id="DCE.31A83F15-DD39-5D33-0A64-3F0FC85F1B80" name="element_name" owner="DCE.3C3E618B-9CEE-832E-69DE-6C425C30AD0A">
<UML:Element.presentation>
</UML:Element.presentation>
<UML:Element.ownedElement>
<UML:Operation xmi.id="DCE.29EBA057-151F-C131-1C5F-D37B99A0CA80" name="operation_name" isConstructor="true" owner="DCE.31A83F15-DD39-5D33-0A64-3F0FC85F1B80"/>
</UML:Element.ownedElement>
</UML:Class>
</UML:Element.ownedElement>
... more elements ...
</UML:Project>
</XMI.content>
Instead theUML:Project tag is empty. The<xmi.content> tag in our projectname.etd looks now like this:
<XMI.content>
<UML:Project xmi.id="DCE.4DFCDEFB-3003-25C2-82D8-86B80EEE0FE0" mode="Implementation" defaultLanguage="Java" projVersion="6.1.4.837" name="project_name"/>
</XMI.content>
All other files like diagram_name_1148975434695.etld and diagram_name_1148975434695.etlp seem to be intact.
If you know how to restore the content of theprojectname.etd file from the .etldand .etlpfiles, we would appreciate to read your answer here.
Thank you for your time!
[2800 byte] By [
rekoj] at [2007-11-26 7:48:24]

# 1
Hi,
Sorry for what happened. This never happened in our testing environments, and we are very interested in knowing the exact steps to reproduce the problem.
The Good news is that, since you are in an implementation type project, you did not loose any information. Our UML tool has live-roundtrip capability, which enables creation of java sources based on your model. That is, when you create classes in your class diagram, and your uml project is associated with a java project, the source files are automatically generated for you.
You can always get back your diagrams by reverse engineering your java sources, and doing a CDFS (Create Diagram From Selected) elements.
And again, we are interested in knowing the root cause, and your help in describing the exact steps to reproduce the issue is greatly appreciated.
Thanks
Jyothi.
# 2
As Jyothi said, we have not experienced this problem and to recover your diagram is to reverse engineer your sources. Then, create diagram from your classes again and your relationships for the classes should be correctly created automatically on the diagram.
Just curious, which platform are you on?
# 3
Dear Petersl, dear Jyothi and dear fellow users of Sun Java Studio Enterprise 8,
unfortunatly we are not able to generate the diagrams from source code since we didn't generate any source code in the first place.
We were just trying to recall the last steps before the data vanished. This is what we think we did:
We intended to rename the UML project. Since we couldn't do this we created a whole new project grabbed the packages from the model tree in our old project and dragged and dropped them onto the model tree in the new project.
When we were asked to decide wether to import or to move the packages, we decided for import. But we didn't like our packages in the imported elements tree. So we moved them back without being prompted.
Then we moved them to the new model (instead of importing them). Everything worked fine.
Here I have to correct myself: The model elements didn't vanish while the Studio Enterprise was running - they were still there until we finished the program.
We exported the image of our largest diagram, saved (we are absolutly sure we did) and shut the Studio Enterprise down.
When we started Sun Java Studio Enterprise the next day the modell content had gone.
(We are working on MS Windows XP Professional SP2 w/o admin rights. Our usr home direktory is on the network - we get an exception each time we start the Java Studio Enterprise 8 because some logfiles can't be deleted from the user home directory. We also had problems with the installation of Java Studio Enterprise 8: the paths were to long for the network installation software. So we had to install it locally on each workstation by means of temporary administrator privileges.
We use Java Studio Enterprise 8 and we had run an update before the incident.)
I hope this will help you.
Thank you for your time!
PS: What are those Duke Dollars good for? Can you buy something with them?
Message was edited by:
rekoj
rekoj at 2007-7-6 20:03:47 >

# 4
Hi Rekoj, Thanks for providing editional detail. Moving elements to new project is fine. I just wanted to clarify again even though you said you didn't generate any source code in the first place, because you might have the sources that you were not away of. So, the question is: did you associate your first UML project with a java project since your project was indicated as an implementation type. If you did associate your UML project with a java project before you create any model element, the sources and relationships you created on your diagram got generated automatically by the UML tool's roundtrip feature.
# 5
Dear Petersl,unfortunatly we didn't associate the UML project with a java project.However, we have almost remodelled everything. This time we write source code and use round trip engineering to achieve our UML diagrams.Thank you for your help!
rekoj at 2007-7-6 20:03:47 >

# 6
Sorry to hear that you have to start over. That's a very strange thing that had happened to you. Hope everything will work well now.
# 7
I have recently experienced a similar problem wherein I just created a language-independent UML model without associating it with any Java project and after a few days later (this could have included the force shutdown of the machine while SUN Studio is still running) the Class & Use Case diagrams are empty.
Altough I do notice that the ClassDiagram_XXXXXX.etld, ClassDiagram_XXXXXX.etlp, UseCaseDiagram_XXXXXX.etld, UseCaseDiagram_XXXXXX.etlp have lots of content in them but the project.etd just has :
<?xml version="1.0" encoding="UTF-8"?>
<!-- <!DOCTYPE XMI SYSTEM "/home/sandeepk/.jstudio/Ent81/.uml/config/UML_2.0EMBT.dtd"> -->
<XMI xmlns:UML="omg.org/UML/1.4" xmi.version="2.0">
<XMI.header>
<XMI.metamodel xmi.name="UML" xmi.version="1.4"/>
<XMI.documentation>
<XMI.exporter> Embarcadero's Describe </XMI.exporter>
<XMI.exporterVersion> 6.0 </XMI.exporterVersion>
</XMI.documentation>
</XMI.header>
<XMI.content>
<UML:Project xmi.id="DCE.1A246328-D041-8583-E1CB-08CE2D528460" mode="Design"
defaultLanguage="Java" projVersion="6.1.4.837" name="NewProject"/>
</XMI.content>
</XMI>
Is there a way I can recover the Class & Use case diagrams for the available etld & etlp files?
Thanks in advance.
# 8
Your project.etd seems to suggest that you created a Java platform UML project ( mode="Design", defaultLanguage="Java").
It is unfortunate that metadata information cannot be reconstructed from those two diagram layout/presentation files you have. See http://www.netbeans.org/servlets/ReadMsg?list=nbentpack&msgNo=154
# 9
It's unfortunate that I cannot recreate the project.etd file from the other descriptors.
I landed up recreating the Class and Use Case diagrams from scratch (gave me a fresh outlook on the design)
I did realise that the project.etd file doesn't get updated unless you close the project! So if you had updated your diagrams with a lot of changes and had also saved them, none of the changes will be available next time if your computer crashed or your JVM exited since those diagram changes never make it to the project file!
Shouldn't the project file also be updated everytime we save the diagrams?