Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Error UML to Java Example(Error UML to Java Example)
Error UML to Java Example [message #1802157] Sat, 02 February 2019 08:08 Go to next message
Farooque Azam is currently offline Farooque AzamFriend
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/, 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(
at org.eclipse.acceleo.engine.generation.AcceleoEngine.addProperties(
at org.eclipse.acceleo.engine.service.AcceleoService.addPropertiesFile(
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.doGenerate(
at org.eclipse.acceleo.examples.uml2java.main.Uml2java.doGenerate(
at org.eclipse.acceleo.examples.uml2java.main.Uml2java.main(
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

Re: Error UML to Java Example [message #1802160 is a reply to message #1802157] Sat, 02 February 2019 09:39 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7635
Registered: July 2009
Senior Member

Sorry this appears to be sub-issue b) from which I reported on 2018-04-14 in good time for a fix in Photon (2018-06). There has been no Bugzilla comment or fix in 2018-09 or 2018-12.

Since 2018-04-14 there have been quite a few commits to keep releng ticking over and three files have fixes, but sadly nothing that contributes to documentation/examples.


Ed Willink
Previous Topic:Changes in metamodel is not recognized by Acceleo?
Next Topic:Is it possible to generate Java code from a resource only loaded in memory?
Goto Forum:

Current Time: Fri Dec 01 20:09:31 GMT 2023

Powered by FUDForum. Page generated in 0.02051 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top