-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contextmapper generator crash when generating plantuml for contextmap with an imported bounded context file. #364
Comments
Thanks for reporting it @rerunner! We will try to reproduce and investigate... Best regards, |
The crash can be fixed with I have a branch prepared which
I started the branch for the last topic and discovered that this issue is connected. Problem is, my branch started on a merge of pull request #366 and touches not only this issue. |
I'm currently enjoying holidays without computer besides my phone, I can try what @astmuc mentioned, but only in 2 weeks from now. Have a good change of the year! |
I tried this fix, it avoids the crash. However, it is not enough to produce plantuml files for the aggregate and entities that are located at the "imported" files, they still get ignored. |
Describe the bug
The contextmapper cli crashes when asked to generate plantuml files for a contextmap which includes an import of another CML file. That other CML file contains the bounded contexts implementing the domains.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No crash and plantuml files for the aggregate and entities as well.
Screenshots / Exceptions
Context Mapper CLI v6.12.0
Exception in thread "main" java.lang.IllegalArgumentException: resolve against non-hierarchical or relative base
at org.eclipse.emf.common.util.URI$Hierarchical.resolve(URI.java:3548)
at org.eclipse.emf.common.util.URI.resolve(URI.java:5580)
at org.contextmapper.dsl.cml.CMLImportResolver.resolveImportedResources(CMLImportResolver.java:42)
at org.contextmapper.dsl.cml.CMLModelDomainAndSubdomainResolver.initAllDeclaredSubdomainsIncludingImportedOnes(CMLModelDomainAndSubdomainResolver.java:87)
at org.contextmapper.dsl.cml.CMLModelDomainAndSubdomainResolver.(CMLModelDomainAndSubdomainResolver.java:38)
at org.contextmapper.dsl.generator.PlantUMLGenerator.generateFromContextMappingModel(PlantUMLGenerator.java:61)
at org.contextmapper.dsl.generator.AbstractContextMappingModelGenerator.doGenerate(AbstractContextMappingModelGenerator.java:54)
at org.contextmapper.dsl.standalone.StandaloneContextMapper.callGenerator(StandaloneContextMapper.java:61)
at org.contextmapper.cli.commands.GenerateCommand.run(GenerateCommand.java:55)
at org.contextmapper.cli.ContextMapperCLI.run(ContextMapperCLI.java:59)
at org.contextmapper.cli.ContextMapperCLI.main(ContextMapperCLI.java:44)
Input files to reproduce
See attached.
BoundedContexts.cml.txt
ContextMap.cml.txt
IDE and Plugin (please complete the following information):
Additional context
The visual studio plugin does not crash, however it only produces one plantuml file for the contextmap and does not produce any plantuml output for the aggregate/entities. Hence, it seems to fail parsing the imported file.
The text was updated successfully, but these errors were encountered: