Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7675107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:53:13+00:00 2026-05-31T16:53:13+00:00

I have created a simple state machine model in Enterprise Architect and exported it

  • 0

I have created a simple state machine model in Enterprise Architect and exported it to a file, which I want to read into a standalone Java/Scala program based on Eclipse’s MDT UML2 implementation.

I managed to get this partially working, but still have two remaining problems:

  1. The exported XMI file from EA contains more than just the <uml:Model></...> part, in which case I only get AnyTypeImpl objects after parsing. For now, I’ve manually changed the file and reduced it the UML model tag only, though it would be nice to be able to use the XMI file out of the (EA export) box somehow.

  2. I get an IllegalValueException for different attributes, like isOrthogonal="true". The stack trace for it looks something like this:

    org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.IllegalValueException: Value ‘true’ is not legal. (file:src/test/resources/test.uml, 7, 111)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)

This is the code (in Scala, but it’s pretty much the same as in Java at this point) I am using in order to load the model file right now:

val resSet = new ResourceSetImpl
resSet.getPackageRegistry.put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE)
resSet.getResourceFactoryRegistry.getExtensionToFactoryMap.put("*", UMLResource.Factory.INSTANCE)
resSet.getResource(URI.createURI("file:myfile.uml"), true)

I do not believe anything is wrong with the model file at this point (orthogonal states in state machines are quite straightforward normal stuff after all), so I guess I have not managed to set up MDT/UML2 correctly here. Googling has brought up the point of having to register the corresponding factory, which seems to have worked, as otherwise I would get a more straightforward error about the missing factory. But now that the factory is registered I am unsure what’s missing and the error message is not very helpful to me here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:53:14+00:00Added an answer on May 31, 2026 at 4:53 pm

    To check if a model file having a *.uml extension is valid with UML2 you only need to download the UML Editor. It is not an UML tool but only a plug-in which allows you to manipulate the UML model within a tree editor. If you click on an element in the tree you have menus. The UML editor is adding a graphical view and manipulation of the model but this plugin is working directly at the model/metamodel level.

    If the .uml can be loaded then you have passed the first test. You file is compatible with UML2. Click on the project name and select Check model option. You will know if your model is 100% correct.

    Hope this help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to manually create Friendly URLs? (PHP) So I have created simple php file
I have created a simple wcf service which used the WCF Service Library template.
I have created a simple Asp.Net custom control which automatically combines all the correct
i have created a simple public ref class in the vc++ project, which is
I have a User model, which has a state. The state can be either
I have a simple web application (non sharepoint) in which i want to add
I have created a simple grid which shows different images with an edit option.
I have created a simple Java application which has a JFrame and few JButtons.
I have created a simple login page for asp.net which takes in user name
Could someone help me on this, I have created simple web services using axis2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.