[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmt.amw] Re: newbie Question: "WLinkEnd not extended" message

I have tried to chase down where things go wrong by debugging the plugin. All appears well until the mw_core model is loaded and transformed into ecore. It throws the following exception which I hope will help to trace my problem. Running outside of a debug of the plug-in this exception is hidden - what I saw was the side-effect of it during later processing.

Regards

Nick

java.lang.IllegalArgumentException: Can not set org.eclipse.gmt.tcs.injector.TCSInjector field org.eclipse.gmt.tcs.injector.KM3_ANTLR3Parser.ei to org.eclipse.gmt.tcs.injector.TCSRuntime
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source)
at java.lang.reflect.Field.set(Unknown Source)
at org.eclipse.gmt.tcs.injector.wrappers.antlr3.ParserWrapper.parse(ParserWrapper.java:81)
at org.eclipse.gmt.tcs.injector.ParserLauncher.parse(ParserLauncher.java:93)
at org.eclipse.gmt.tcs.injector.TCSInjector.inject(TCSInjector.java:62)
at org.eclipse.weaver.plugin.util.WeaverResourceUtil.km3Stream2EcoreResource(WeaverResourceUtil.java:293)
at org.eclipse.weaver.core.WeaverModelManager.getWeavingMetamodelRS(WeaverModelManager.java:299)
at org.eclipse.weaver.core.WeaverModelManager.getWeavingMetamodelRS(WeaverModelManager.java:238)
at org.eclipse.weaver.core.WeaverModelManager.getWeavingMetamodel(WeaverModelManager.java:325)
at org.eclipse.weaver.core.WeaverModelManager.initWeavingMetaModel(WeaverModelManager.java:136)
at org.eclipse.weaver.core.WeaverModelManager.<init>(WeaverModelManager.java:117)
at org.eclipse.weaver.wizards.WeaverWizard.initializeWeavingResource(WeaverWizard.java:440)
at org.eclipse.weaver.wizards.WeaverFirstWizardPage$8.run(WeaverFirstWizardPage.java:479)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:407)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:347)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
at org.eclipse.weaver.wizards.WeaverFirstWizardPage.dialogChanged(WeaverFirstWizardPage.java:499)
at org.eclipse.weaver.wizards.WeaverFirstWizardPage.getNextPage(WeaverFirstWizardPage.java:622)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)


Marcos Didonet Del Fabro wrote:
Hi,

one possibility is that the build configuration of the project is filtering the .ecore files, so the plug-in cannot find the mw_core.ecore file.

Marcos.

Nick wrote:
Thanks for responding. I had selected and loaded the requested extensions.

I'm using Eclipse 3.4M5 with the latest AMW. I have ATL 2.1 from branch and TCS both built about a week ago. None of the SCADE models resolve links to the core models. I can see where the core model is in org.eclipse.weaver in the sources but in, for example, the delivered zip's

SCADESIMPLE/metamodels/mmw_compare.km3

the name WLink does not resolve. The mmw_match.km3 file has similar issues. These match the lack of resolution to the core model(s) in the wizard.

The resolution issue for the editable KM3 models only appears in the problems/editor - not the error log so it looks like the configuration is simply not seeing the core models in the plug ins.

I have no idea why. maybe a bug or a version issue? The plug-in v2.0.0 is present and loaded.

Anyway thanks for trying

Nick

Marcos Didonet Del Fabro wrote:
Hi,

This error message happens when the extension selected does not have an element extending "WLinkEnd".

In the Scade use case, you should select the following extensions:

- mw_base_extension.km3, mmw_match.km3, mmw_compare.km3 and mw_propagation.km3.

AMW does not use the AMMACore or AMMAScripts, or the AMW.dsls folder during its execution, so they don't need to be checked-out.

You should check-out the following plug-ins:

org.eclipse.weaver
org.eclipse.weaver.extension

With this two first plug-ins you should already be able to create a simple weaving model.

org.eclipse.gmt.weaver.transformation
org.eclipse.gmt.weaver.transformation.extension
org.eclipse.gmt.weaver.matchextensions
org.eclipse.gmt.weaver.amw4atl


Regards,

Marcos.


Nick wrote:
I have installed AMW into my Ganymede Eclipse environment. I already have usable TCS and ATL installed. I now want to weave my KM3 models a bit.

I have installed the Simple SCADE example.

Its KM3 models fail to resolve the extends which I presume go to the core AMW models?

When I tried to generate a Weaver Model New --> Weaver Model the wizard pops up and following the tutorial I select a couple of the extension models in the middle pane and then click next. I get the message "WLinkEnd not extended"

I found the models in the CVS repository in the org.eclipse.gmt.AMW.dsls directory. I have checked out the 2 projects there like I did with AMAACore and AMMAScripts. On checkout lots of scripts run and seem to succeed - I had already added the antlr jars to AMMAScripts/lib.

But, the references in the models still do not resolve nor does the wizard behave any differently.

Can anyone tell me what I am doing wrong? I assume it is a simple step I have missed out?

With thanks

Nick