|Code Generation - Unresolved Reference in GenerateJava.emtl [message #1807657]
||Wed, 05 June 2019 17:28
| Sven Peldszus
Registered: February 2017
currently there are quite a lot of topic regarding problems with the MoDisco Code generation and I've also one.
My problem seems to be related to the one described in the following thread: https://www.eclipse.org/forums/index.php/t/274933/
However, as already someone else added a new problem to this thread, which doesn't seem to be related to the problem I have, I decided to open a new topic.
I am currently trying to generate Java source code from a MoDisco model and I am pretty sure it worked one or two years ago. But now I get an Exception when Accelo is initialized:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '/0/write.5'. (jar:file:[..]/eclipse/plugins/org.eclipse.gmt.modisco.java.generation_188.8.131.52805182005.jar!/org/eclipse/gmt/modisco/java/generation/files/GenerateJava.emtl, 69, 75)
at at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
I am working on an Eclipse 2019-03 and I am executing the code generation in a plug-in context using the following code:
GenerateJavaExtended generateJavaExtended = new GenerateJavaExtended(model, outFile.getLocation().toFile(), Collections.emptyList());
generateJavaExtended.doGenerate(new BasicMonitor.EclipseSubProgress(monitor, 1));
For me it looks like the "GenerateJava.emtl" file provided by the "org.eclipse.gmt.modisco.java.generation" plugin is broken, but I am wondering because no one else seems to have this issue.
Thanks for your help.
Powered by FUDForum
. Page generated in 0.01690 seconds