Use Symbols with caution when defining enumeration items using eclipseuml

Source: Internet
Author: User

Today, I encountered a very depressing problem when I used eclipseuml to draw and save a class chart. For the sake of safety, I drew and saved it for a morning. I once closed the editor, the prompt "impossible to load the dimo-xxx" is displayed. ". I am sweating all at once. A morning's work! Check the errorlog of eclipse. The exception information is as follows:

Java. Lang. nullpointerexception
At com. omondo. UML. OBF. CBA. setinput (sourcefile: 1153 )
At com. omondo. UML. OBF. CBA. INIT (sourcefile: 1109 )
At com. omondo. UML. EMF. classdiagrameditor. INIT (sourcefile: 1013 )
At org. Eclipse. UI. Internal. editormanager. createsite (editormanager. Java: 784 )
At org. Eclipse. UI. Internal. editorreference. createparelper (editorreference. Java: 585 )
At org. Eclipse. UI. Internal. editorreference. createpart (editorreference. Java: 374 )
At org. Eclipse. UI. Internal. workbenchpartreference. getpart (workbenchpartreference. Java: 552 )
At org. Eclipse. UI. Internal. partpane. setvisible (partpane. Java: 285 )
At org. Eclipse. UI. Internal. Presentations. presentablepart. setvisible (presentablepart. Java: 140 )
At org. Eclipse. UI. Internal. Presentations. util. presentablepartfolder. Select (presentablepartfolder. Java: 264 )
At org. Eclipse. UI. Internal. Presentations. util. lefttorighttaborder. Select (lefttorighttaborder. Java: 65 )
At org. Eclipse. UI. Internal. Presentations. util. tabbedstackpresentation. selectpart (tabbedstackpresentation. Java: 394 )
At org. Eclipse. UI. Internal. partstack. refreshpresentationselection (partstack. Java: 1140 )
At org. Eclipse. UI. Internal. partstack. setselection (partstack. Java: 1093 )

No information related to the class chart can be found. Try to modify the. mcm and. ecore files, and the results will not work several times. I had to restore the class chart to re-draw it when I thought of a backup last night (fortunately. After saving the painting, I tried to close the editor and open it again. The prompt "impossible to load the dimo-xxx. MCM" was displayed "!!

I am not going to be able to solve this problem. In the final way, I want to save and back up while drawing and looking at what operations caused this problem. Finally, I found the root cause. I defined an enumeration named operator, which contains four enumeration items: "+", "-", "*", and, the "/" number will cause. the primary.

We recommend that you always take care of your models as you do for your own eyes. Regular backup is necessary. Currently, free graphical editors are not very stable.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.