[palladio-dev] PCM Model generation fails when run as an eclipse-plug-in

Sütterlin, Marcel marcel.suetterlin at tum.de
Wed Mar 20 14:15:54 CET 2019

Hi everyone,
I´m currently having an issue with the PCM Model generation. In a project, I integrated the PCM Model generation and simulation into an eclipse plug-in to evaluate the performance of written code within the IDE. While the first run terminates without any issues, the second execution of the plug-in fails during the PCM generation. There, the AssignmentDummy is saved as a resource, but every other usage model is not saved (and thus, not retrieved) from the repositoryFactory. The factory is created using the following code:
this.repositoryFactory = RepositoryFactory.eINSTANCE;
this.repository = repositoryFactory.createRepository();

Somewhere in this process, there must be an issue with cleaning up the repository for the next run. This could be due to the fact that the Java environment, in which the PCM generation is executed, is not exited after the run, since it uses the eclipse java environment.
When the eclipse IDE is restarted, the plug-in runs fine again on the first run, but not on other runs. This issue also persists when the AST files, which are used to generate the PCM models, are different in the second run from the first run.

There is no error message or exception thrown at any time, until the simulator fails due to the lack of usage models in the folder.

Does anyone have an idea what could be the issue here?

Thank you very much for your help!

Best regards,

Marcel Sütterlin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ira.uni-karlsruhe.de/pipermail/palladio-dev/attachments/20190320/4ecefa90/attachment.html>

More information about the palladio-dev mailing list