Closed jmonsel closed 1 year ago
I've moved this to the archi-modelrepository-plugin
(coArchi) issue tracker as the problem is occuring in coArchi not the report generation logic:
java.io.IOException: Model had unresolved objects!
at org.archicontribs.modelrepository.commandline.LoadModelFromRepositoryProvider.loadModel(LoadModelFromRepositoryProvider.java:166)
To diagnose this, you should try to work with the model in coArchi and not the command line. Can you work with the model? Can you commit and push? It may be that the model in the target folder is not fully up to date.
I'm not sure understand... "....work with the model in coArchi"... do you suggest me to work with the model stored into git repo ?
do you suggest me to work with the model stored into git repo ?
Yes. I mean to use the model in Archi and not the Command line.
How did you get the model located at /opt/Octopia_Model
? Did you manually clone it? Or did you clone it in Archi?
OK, thank you so here is the status : saving model locally is OK, committing is OK, ...and publishing is OK...however I'm working on a "Main" branch that is not the branch used in command line...
The model state is probably out of sync. How did you get the model located at /opt/Octopia_Model
? Did you manually clone it? Or did you clone it in Archi? Try cloning it again and re-importing.
In addition, make sure that no merges have been donne on thé model outsider Archi itself (reminder: git commands should not be run on a model managed by Archi or this could lead to some corruption)
OK, I guess you're right as I cannot sware no one execute git command outside Archi. I have to define policies avoiding this. So would close the issue
If you are going to use the CLI it's better to clone the repo into an empty target folder and then load it into a model to generate the report. This ensures you are getting the correct model. So the full command args would be:
--modelrepository.cloneModel "https://github.com/somewhere/myrepo.git"
--modelrepository.loadModel "pathto/afolder"
--modelrepository.userName "UserName"
--modelrepository.passFile "pathto/password.txt"
--html.createReport "pathto/report"
OK, thank you again for all your advise
In fact you can generate a report directly from the temp.archimate
file in the repository location:
--loadModel "pathto/repository/.git/temp.archimate"
--html.createReport "pathto/report"
We generate HTML report from Commandline on Linux and it return an error :
##############
This error appears only on one specific Archimate model. We have 3 others archimate models we are able to generate HTML report from command line with no issue
Version of Archi
Either archimate 4.10.0 or 4.9.3
Archi Plug-ins
coarchi 0.8.7 but I'm not plugIn is involved in that case
Operating System
either Linux debian11 or ubuntu 18.04
Expected Behaviour
Html report successfully generated
Actual Behaviour
See error message above
Steps to Reproduce the Behaviour
I'm sorry, I can not share model due to confidentiallity issue
Thank you