Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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
Philipp Zech is currently offline Philipp ZechFriend
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 messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
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 #559711 is a reply to message #559708] Fri, 17 September 2010 16:26 Go to previous messageGo to next message
Philipp Zech is currently offline Philipp ZechFriend
Messages: 96
Registered: July 2009
Member
On 09/17/2010 06:09 PM, Christian Dietrich wrote:
> 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
hi,

i'm about to do it right now. i reinstalled everything (sometimes this
helps). concerning the log, i can't provide any, as already mentioned, i
don't see any, nevertheless what i try.

philipp
Re: Strange errors with MWE workflow [message #559715 is a reply to message #559711] Fri, 17 September 2010 16:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
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


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 messageGo to next message
Philipp Zech is currently offline Philipp ZechFriend
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 #560042 is a reply to message #560041] Mon, 20 September 2010 21:43 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

ok i'll bundle my stuff tomorrow. but i have another idea how to investigate: add file FILE stuff to the root of the template - throw out the profile stuff and retry the generation (that is what my sample does)

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Strange errors with MWE workflow [message #560099 is a reply to message #560042] Tue, 21 September 2010 08:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hello Philipp,

you will find my sources here: http://drop.io/0trti71

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Strange errors with MWE workflow [message #630591 is a reply to message #560099] Mon, 04 October 2010 10:20 Go to previous messageGo to next message
Philipp Zech is currently offline Philipp ZechFriend
Messages: 96
Registered: July 2009
Member
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
Re: Strange errors with MWE workflow [message #630609 is a reply to message #630591] Mon, 04 October 2010 11:14 Go to previous messageGo to next message
Philipp Zech is currently offline Philipp ZechFriend
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 messageGo to next message
Philipp Zech is currently offline Philipp ZechFriend
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
Philipp Zech is currently offline Philipp ZechFriend
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
Previous Topic:[Acceleo] How to access list element?
Next Topic:[Check] Under HELIOS
Goto Forum:
  


Current Time: Fri Apr 19 22:47:57 GMT 2024

Powered by FUDForum. Page generated in 0.03840 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top