Home » Modeling » M2T (model-to-text transformation) » Strange errors with MWE workflow
Strange errors with MWE workflow [message #559610] |
Fri, 17 September 2010 11:43 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Philipp Zech![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=Philipp.Zech%40uibk.ac.at) Messages: 96 Registered: July 2009 |
Member |
|
|
Hi,
I'm currently developing an XPand/MWE generator plugin allowing me to
generate executable Java code out of a UML model and its aritfacts
(Activity diagrams). If I start an eclipse instance from a running host
eclipse and try to execute my generator, everything works fine, my Java
files are generated an no errors occurr. However, as soon as I export my
plugin, close it and restart eclipse, and try to execute the generator
in a running eclipse (not an instance) the plugin does not generate
anything, instead the workflow is aborted. Yet, the workflow runner can
be prepared witout any errors, however, as soon as executeWorkflow is
called I get an error telling me something cryptic and non-informative
like that the the workflow engine cannot not expand my the root of my
template (entry point in the Xpand file). If trying to take a look at
the generated issue a I get a non-informative "null" message, which
actually does not help my any further.
Any ideas, why my exported plugin throws an error, whereas if it's
loaded from a host eclipse in an instance does not?
Thanks in advance,
Philipp
PS: I'm not able to provide any running code (except some artifacts), as
it's partly commercial software underlying restrictions.
|
|
|
Re: Strange errors with MWE workflow [message #559708 is a reply to message #559610] |
Fri, 17 September 2010 16:09 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Hi,
so let us try a new start. if you cannot provide your original code is is ok but it should not be a problem to strip your stuff down to something you can share. then it would be nice if you could provide us the output of the console when you start your eclipse with -console -consoleLog.
Btw. Did you try may sample meanwhile?
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
| | |
Re: Strange errors with MWE workflow [message #560041 is a reply to message #559715] |
Mon, 20 September 2010 21:30 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Philipp Zech![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=Philipp.Zech%40uibk.ac.at) Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/17/2010 06:38 PM, Christian Dietrich wrote:
> Hi,
>
> regarding the log, i just download the latest itemis xtext distro (the
> link i gave you) on linux - dropped my plugins there (dropins folder)
> and started it with ./eclipse -console -consoleLog from the bash and i
> got logging from the workflow there.
>
> ~Christan
hi,
just tried your stuff and it works.
concerning the logging, I downloaded the itemis distro from your link
today, yet I get no logging, even if starting eclipse the way you do it
(however I get all the eclipse log messages there, but MWE still refuses
to log sth out, using my stuff or yours doesn't make a difference). Yet
i can provide you with the the issue which is generated during workflow
execution, as I'm printing it out to the console.
Element: EXPAND
info::teststories::generator::xpand::Teststory::Teststory FOR model;
Reported by: Generator(StoryGenerator): generating
'info::teststories::generator::xpand::Teststory::Teststory FOR model' =>
/home/c703443/workspace/senseTests/src/info/teststories/sut/ stories
This is in fact everything i get, the issue contains no message.
Could you may provide the source of your small example? Maybe this can
help me figuring out my faults.
thanks,
Philipp
|
|
| | | |
Re: Strange errors with MWE workflow [message #630609 is a reply to message #630591] |
Mon, 04 October 2010 11:14 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Philipp Zech![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=Philipp.Zech%40uibk.ac.at) Messages: 96 Registered: July 2009 |
Member |
|
|
On 10/04/2010 12:20 PM, Philipp Zech wrote:
> hi christian,
>
> sorry for answering that late, but i was on a business trip. i just
> downloaded your workspace and am going to try your idea concerning the
> FILE template. i'll hope to write back soon.
>
> again, thanks for your help up to now.
>
> cheers,
>
> philipp
hi christian,
i've tried your ideas (removing the profile stuff and generating the
file in the root template), but still no code is generated and the same
error is thrown:
[ERROR](Element: EXPAND
info::teststories::generator::xpand::Teststory::Teststory FOR model;
Reported by: Generator(StoryGenerator)
also, if i look at your stuff (plugin.xml and the like) mine look
completely similar (except some different names and paths)
maybe i'll try to setup a completely clean and new project...
cheers,
philipp
|
|
|
Re: Strange errors with MWE workflow [message #630615 is a reply to message #630609] |
Mon, 04 October 2010 11:55 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Philipp Zech![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=Philipp.Zech%40uibk.ac.at) Messages: 96 Registered: July 2009 |
Member |
|
|
On 10/04/2010 01:14 PM, Philipp Zech wrote:
> On 10/04/2010 12:20 PM, Philipp Zech wrote:
>> hi christian,
>>
>> sorry for answering that late, but i was on a business trip. i just
>> downloaded your workspace and am going to try your idea concerning the
>> FILE template. i'll hope to write back soon.
>>
>> again, thanks for your help up to now.
>>
>> cheers,
>>
>> philipp
> hi christian,
>
> i've tried your ideas (removing the profile stuff and generating the
> file in the root template), but still no code is generated and the same
> error is thrown:
>
> [ERROR](Element: EXPAND
> info::teststories::generator::xpand::Teststory::Teststory FOR model;
> Reported by: Generator(StoryGenerator)
>
> also, if i look at your stuff (plugin.xml and the like) mine look
> completely similar (except some different names and paths)
>
> maybe i'll try to setup a completely clean and new project...
>
> cheers,
>
> philipp
>
>
Hi again,
I also just tried your stuff and it works without any problems (exported
from your worksapce).
cheers
|
|
|
Re: Strange errors with MWE workflow [message #630693 is a reply to message #630615] |
Mon, 04 October 2010 15:09 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Philipp Zech![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=Philipp.Zech%40uibk.ac.at) Messages: 96 Registered: July 2009 |
Member |
|
|
On 10/04/2010 01:55 PM, Philipp Zech wrote:
> On 10/04/2010 01:14 PM, Philipp Zech wrote:
>> On 10/04/2010 12:20 PM, Philipp Zech wrote:
>>> hi christian,
>>>
>>> sorry for answering that late, but i was on a business trip. i just
>>> downloaded your workspace and am going to try your idea concerning the
>>> FILE template. i'll hope to write back soon.
>>>
>>> again, thanks for your help up to now.
>>>
>>> cheers,
>>>
>>> philipp
>> hi christian,
>>
>> i've tried your ideas (removing the profile stuff and generating the
>> file in the root template), but still no code is generated and the same
>> error is thrown:
>>
>> [ERROR](Element: EXPAND
>> info::teststories::generator::xpand::Teststory::Teststory FOR model;
>> Reported by: Generator(StoryGenerator)
>>
>> also, if i look at your stuff (plugin.xml and the like) mine look
>> completely similar (except some different names and paths)
>>
>> maybe i'll try to setup a completely clean and new project...
>>
>> cheers,
>>
>> philipp
>>
>>
> Hi again,
>
> I also just tried your stuff and it works without any problems (exported
> from your worksapce).
>
> cheers
hi,
in the meantime i've reduced my template to sth like this:
«EXTENSION info::teststories::generator::xpand::Teststory»
«EXTENSION info::teststories::generator::util::GeneratorUtils»
«DEFINE Main FOR uml::Model»
«FILE "sample.txt"»
sample file for testing purposes
«ENDFILE»
«ENDDEFINE»
however, i still get the above mentioned error (the WF file has been
adapted from "info::teststories::generator::xpand::Teststory::Teststory"
to "info::teststories::generator::xpand::Teststory::Main").
cheers,
philipp
|
|
|
Goto Forum:
Current Time: Sun Sep 01 04:54:47 GMT 2024
Powered by FUDForum. Page generated in 0.05188 seconds
|