Error UML to Java Example [message #1802157] |
Sat, 02 February 2019 08:08 |
Farooque Azam Messages: 4 Registered: January 2019 |
Junior Member |
|
|
Environment: Eclipse 2018 12 (Modeling Tools) - Java 10 - Windows 10
After installing the example,
- While opening uml2java.mtl file in editor it shows numerous errors
- When I try to run it with provided 'model.uml' file with Runner=Java Application, it gives following Error in console: -
java.util.MissingResourceException: Can't find bundle for base name platform:/plugin/org.eclipse.acceleo.examples.uml2java/org/eclipse/acceleo/examples/uml2java/properties/default.properties, locale en_US
at java.base/java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.base/java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.base/java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.base/java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.base/java.util.ResourceBundle.getBundle(Unknown Source)
at org.eclipse.acceleo.engine.internal.environment.AcceleoPropertiesLookup.addProperties(AcceleoPropertiesLookup.java:93)
at org.eclipse.acceleo.engine.generation.AcceleoEngine.addProperties(AcceleoEngine.java:97)
at org.eclipse.acceleo.engine.service.AcceleoService.addPropertiesFile(AcceleoService.java:245)
at org.eclipse.acceleo.engine.service.properties.AbstractAcceleoPropertiesLoaderService.initializeService(AbstractAcceleoPropertiesLoaderService.java:54)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:205)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:172)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.doGenerate(AbstractAcceleoGenerator.java:159)
at org.eclipse.acceleo.examples.uml2java.main.Uml2java.doGenerate(Uml2java.java:205)
at org.eclipse.acceleo.examples.uml2java.main.Uml2java.main(Uml2java.java:163)
The generation failed to generate any file because there are no model elements that matches at least the type of the first parameter of one of your main templates.
The problem may be caused by a problem with the registration of your metamodel, please see the method named "registerPackages" in the Java launcher of your generator. It could also come from a missing [comment @main/]
in the template used as the entry point of the generation.
[Updated on: Sat, 02 February 2019 08:13] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02803 seconds