Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo 3.0.1] Error notifying registry change listener.
[Acceleo 3.0.1] Error notifying registry change listener. [message #643561] Tue, 07 December 2010 12:46 Go to next message
Manuel Selva is currently offline Manuel Selva
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Hello there,

I am starting to play with Acceleo 3 in order to automate one repetitive tasks of my daily work as Eclipse plugin developer.

In this context I want to generate several Java classes from an EMF model (xmi file) conform to a given meta model (an ecore file). This is done manually by myself during development stage, no need to programatically generate code.

Using for loops and the file tag, I successfully generated my class files for all model elements. Now I need to generate the content of the file, and for this I need an other for loop inside the file tag. After added this loop I always get many errors (crashing my workbench) of type:

"Error notifying registry change listener."

Any ideas why ? How can I solve this blocking issue please ?

Any help would be really appreciated,
Thanks in advance

Manu


[Updated on: Tue, 07 December 2010 13:05]

Report message to a moderator

Re: [Acceleo 3.0.1] Error notifying registry change listener. [message #643564 is a reply to message #643561] Tue, 07 December 2010 13:06 Go to previous messageGo to next message
Manuel Selva is currently offline Manuel Selva
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
After more investigations it seems it's not related to a for loop in a file tag. In fact the problem start occurring the second time i am launching my "Generate" Acceleo launch configuration.

Manu


Re: [Acceleo 3.0.1] Error notifying registry change listener. [message #643796 is a reply to message #643564] Wed, 08 December 2010 09:53 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1625
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060001080200040309090403
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Manuel,

This is due to us relying on OSGi's "hot removing" of bundles, but some
plugins aren't being good citizens with their extension points : when we
(Acceleo) remove said plugins, their contributions to the plugin
registry remain... and you get the error you observed.

This is a known Acceleo limitation. As we can't expect the plugin
designers to change their extension points to accept hot
plugging/removing, we need to find a way to workaround this issue ...
but don't expect this workaround to be there before 3.1M6 at least.

For the time being, your options are limited : this issue comes from
Acceleo's dynamic mode. When you launch the generator located in plugin
A, we'll walk the workspace projects in order to check whether one of
them is a dependency of A. If A or one of its dependencies is in the
workspace, and extends an extension point that presents the issue of not
being dynamic, you'll have this error. You can then :

- remove from your workspace the dependencies you don't need to be there
(if they're already installed)
- launch a runtime Eclipse and launch your generation from there (either
with only your generator project in the workspace or, even better,
having defined an action to launch the generation from a right-click, a
menu...)

This will be investigated (and, hopefully, fixed) before 3.1 goes live,
but I can't give any more precise date.

Laurent Goubet
Obeo

On 07/12/2010 14:06, Manuel Selva wrote:
> After more investigations it seems it's not related to a for loop in a
> file tag. In fact the problem start occurring the second time i am
> launching my "Generate" Acceleo launch configuration.
>
> Manu


--------------060001080200040309090403
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------060001080200040309090403--
Re: [Acceleo 3.0.1] Error notifying registry change listener. [message #643824 is a reply to message #643796] Wed, 08 December 2010 12:24 Go to previous message
Manuel Selva is currently offline Manuel Selva
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi Laurent,

Thanks for your clear and complete answer.
The alternatives you mentioned are ok for now. I hope this will remain true.

Manuel


Previous Topic:[xPand] class not found org.eclipse.jface.text.BadLocationException
Next Topic:How Increment Variable in loop
Goto Forum:
  


Current Time: Wed Sep 17 15:46:43 GMT 2014

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

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