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/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

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: 7670
Registered: July 2009
Senior Member
Hi

Sorry this appears to be sub-issue b) from https://bugs.eclipse.org/bugs/show_bug.cgi?id=533585 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.

Regards

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: Tue Sep 24 12:19:04 GMT 2024

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

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

Back to the top