[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmt.amw] Re: Error while transforming AMW 2 ATL

Hi,

Here is the error log

org.atl.engine.vm.ASMExecEnv$SignatureParsingException: ERROR: could not 
find model element Element from AMW

                at 
org.atl.engine.vm.ASMExecEnv.parseTypeInternal(ASMExecEnv.java:137)

                at 
org.atl.engine.vm.ASMExecEnv.parseType(ASMExecEnv.java:99)

                at 
org.atl.engine.vm.ASMExecEnv.registerOperations(ASMExecEnv.java:67)

                at 
org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:117)

                at 
org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:94)

                at 
org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:68)

                at 
org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:64)

                at 
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate.runAtlLauncher(AtlLaunchConfigurationDelegate.java:230)

                at 
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate.runAtlLauncher(AtlLaunchConfigurationDelegate.java:168)

at 
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate.runAtlLauncher(AtlLaunchConfigurationDelegate.java:145)

                at 
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate.runAtlLauncher(AtlLaunchConfigurationDelegate.java:121)

                at 
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate.launch(AtlLaunchConfigurationDelegate.java:97)

                at 
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:639)

                at 
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:565)

                at 
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:754)

                at 
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:944)

                at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)



Re





"Marcos Didonet Del Fabro" <mddfabro@xxxxxxx> wrote in message 
news:g6kl4v$rg5$1@xxxxxxxxxxxxxxxxxxxx
> Hello,
>
> post the log error as well. It may contain additional info.
>
> Marcos.
>
> medo samh wrote:
>> Hi Marcos,
>>
>>
>>
>> Thanks for your reply.
>>
>>
>>
>> Yes, I get this error the moment I execute the HOT using the launch 
>> configuration of Keys2NestedAMW2ATL.launch file.
>>
>>
>>
>> I have not done any modification.  To be more sure, I have deleted the 
>> project and imported it again and I got the same error.
>>
>>
>>
>> Is there anything I can do to find the cause of this error?
>>
>>
>>
>> Thanks for your help,
>>
>>
>>
>> Regards
>>
>>
>>
>>
>>
>> "Marcos Didonet Del Fabro" <mddfabro@xxxxxxx> wrote in message 
>> news:g6d04g$6jq$1@xxxxxxxxxxxxxxxxxxxx
>>> Hello,
>>>
>>> This error is in the moment you execute the HOT, right?
>>>
>>> It seems that the transformation didn't find a specific element in the 
>>> weaving metamodel (mwcore.ecore). However, there is no model element 
>>> called "Element" in the example. I think there is some detail that I am 
>>> missing. Did you do any modifications?
>>>
>>>
>>> Marcos.
>>>
>>> medo samh wrote:
>>>> Thanks for your clarification.  I referred to the How-to and used the 
>>>> launch configuration file (*.launch) to produce a transformation but 
>>>> got the follwoing error:
>>>>
>>>>                 org.atl.engine.vm.ASMExecEnv$SignatureParsingException: 
>>>> ERROR: could not find model element Element from AMW
>>>>                 at 
>>>> org.atl.engine.vm.ASMExecEnv.parseTypeInternal(ASMExecEnv.java:137)
>>>>
>>>>                 at 
>>>> org.atl.engine.vm.ASMExecEnv.parseType(ASMExecEnv.java:99)
>>>>
>>>>                 at 
>>>> org.atl.engine.vm.ASMExecEnv.registerOperations(ASMExecEnv.java:67)
>>>>
>>>>                 at 
>>>> org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:117)
>>>>
>>>>                 at 
>>>> org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:94)
>>>>
>>>>                 at 
>>>> org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:68)
>>>>
>>>>                 at 
>>>> org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:64)
>>>>
>>>>                 at 
>>>> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate.runAtlLauncher(AtlLaunchConfigurationDelegate.java:230)
>>>>
>>>>                 at 
>>>> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate.runAtlLauncher(AtlLaunchConfigurationDelegate.java:168)
>>>>
>>>>                 at 
>>>> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate.runAtlLauncher(AtlLaunchConfigurationDelegate.java:145)
>>>>
>>>>                 at 
>>>> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate.runAtlLauncher(AtlLaunchConfigurationDelegate.java:121)
>>>>
>>>>                 at 
>>>> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate.launch(AtlLaunchConfigurationDelegate.java:97)
>>>>
>>>>                 at 
>>>> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:639)
>>>>
>>>>                 at 
>>>> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:565)
>>>>
>>>>                 at 
>>>> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:754)
>>>>
>>>>                 at 
>>>> org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:944)
>>>>
>>>>                 at 
>>>> org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>>>
>>>>
>>>>
>>>> Thanks in advance for your help,
>>>>
>>>>
>>>>
>>>> Regards,
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> "Marcos Didonet Del Fabro" <mddfabro@xxxxxxx> wrote in message 
>>>> news:g6clu2$34b$1@xxxxxxxxxxxxxxxxxxxx
>>>>> Hello,
>>>>>
>>>>> you cannot use the "Generate Transformation" menu with the 
>>>>> "FK2Nested.." example.
>>>>>
>>>>> It has been defined with a different weaving metamodel extension than 
>>>>> the one supported by the HOT transformation of the menu. The HOT 
>>>>> transformation of the menu expects as input a weaving model with other 
>>>>> kinds of links (defined in the extension mw_match.km3). For this 
>>>>> reason, when you execute it, it does not produce a valid 
>>>>> transformation model.
>>>>>
>>>>> In order to produce an ATL model from the example, you should execute 
>>>>> the AMWtoATL.atl transformation. Check the HowTo for the details 
>>>>> (http://www.eclipse.org/gmt/amw/examples/Keys2Nested_AMW2ATL/Keys2Nested_AMW2ATL_doc.php).
>>>>>
>>>>> Regards,
>>>>>
>>>>> Marcos.
>>>>>
>>>>>
>>>>> medo samh wrote:
>>>>>> Hi,
>>>>>>
>>>>>>  I am a new amw user.  I am using the data mapping (FK2Nested) use 
>>>>>> case to get familiar with the capabilities of the tool.
>>>>>>
>>>>>>  I have a problem generating HOT transformations out of the weaving 
>>>>>> model.
>>>>>>
>>>>>>  I have imported the example into Eclipse but whenever I open 
>>>>>> FK2Nested_AMW.amw, the file opens with leftModel, weavingModel 
>>>>>> adnrightModels properly displayed but I get the following error:
>>>>>>
>>>>>>  ?An error occurred while traversing resources? with the following 
>>>>>> Exception stack trace:
>>>>>>
>>>>>>  java.lang.NullPointerException
>>>>>>
>>>>>>                 at 
>>>>>> org.atl.eclipse.engine.AtlCompiler.compile(AtlCompiler.java:62)
>>>>>>
>>>>>>                 at 
>>>>>> org.atl.eclipse.adt.builder.AtlBuildVisitor.visit(AtlBuildVisitor.java:71)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:105)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:57)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.resources.Resource.accept(Resource.java:67)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.resources.Resource.accept(Resource.java:103)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.resources.Resource.accept(Resource.java:87)
>>>>>>
>>>>>>                 at 
>>>>>> org.atl.eclipse.adt.builder.AtlBuilder.fullBuild(AtlBuilder.java:43)
>>>>>>
>>>>>>                 at 
>>>>>> org.atl.eclipse.adt.builder.AtlBuilder$1.run(AtlBuilder.java:32)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
>>>>>>
>>>>>>                 at 
>>>>>> org.atl.eclipse.adt.builder.AtlBuilder.run(AtlBuilder.java:53)
>>>>>>
>>>>>>                 at 
>>>>>> org.atl.eclipse.adt.builder.AtlBuilder.build(AtlBuilder.java:35)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:603)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:230)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:145)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:208)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>>>>>
>>>>>>  When I us the ?Transform? context menu to ?Generate Transformation 
>>>>>> (HOT)?, I get a confirmation message that a new 
>>>>>> FK2Nested_AMW_hot.ecore model.  I use the context menu to extract 
>>>>>> ATL-0.2 model to ATL-0.2 file but I get an empty ATL file. When I go 
>>>>>> back to check the ATL.ecore model, I get the following error:
>>>>>>
>>>>>>  Unable to create this part due to an internal error. Reason for the 
>>>>>> failure: assertion failed:
>>>>>>
>>>>>>  at 
>>>>>> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:280)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)
>>>>>>
>>>>>>                 at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
>>>>>>
>>>>>>                 at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:98)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:98)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction(OpenActionGroup.java:125)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction(MainActionGroup.java:328)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen(ResourceNavigator.java:679)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.views.navigator.ResourceNavigator$6.open(ResourceNavigator.java:434)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
>>>>>>
>>>>>>                 at 
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>
>>>>>>                 at 
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>>
>>>>>>                 at 
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>>>>
>>>>>>                 at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
>>>>>>
>>>>>>                 at 
>>>>>> org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>>>>
>>>>>>                 at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>>>>
>>>>>>                 at org.eclipse.core.launcher.Main.main(Main.java:952)
>>>>>>
>>>>>>  After trying with different combinations of Eclipse, EMF, ATL and 
>>>>>> AMW, I am now using Eclipse 3.2.1, EMF 2.2.1, AMW (Feb 16, 2007) and 
>>>>>> ATL/AM3 (Feb 16, 2007).
>>>>>>
>>>>>>  Thanks for your help
>>>>>>
>>>>>>
>>