[QVTO] More information on errors; Maybe corrupt meta models [message #96134] |
Fri, 28 November 2008 08:37  |
Eclipse User |
|
|
|
Hello everyone,
I've got a problem launching a transformation.
Is there a way to display the transformation parsing errors? I only get
the number of errors...
Is there a way to check if there are errors in the metamodel I use? I'm
guessing there is the root of the errors, since adding the missing Ns URI
cutted my error count down from 16 to 4.
PS: I'm launching the transformation from Java code by using the
QvtoTransformationHelper.
Here's the error message:
org.eclipse.core.runtime.CoreException: Error: Failed to parse
transformation 'deployed://MSC/transformation1.qvto', 4 error(s) found.
at
org.eclipse.m2m.qvt.oml.runtime.util.QvtoTransformationHelpe r.executeTransformation(QvtoTransformationHelper.java:171)
at transform.qvt_Action.run(qvt_Action.java:63)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:229)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
|
|
|
|
|
|
|
|
|
Re: [QVTO] More information on errors; Maybe corrupt meta models [message #96645 is a reply to message #96603] |
Mon, 08 December 2008 08:57   |
Eclipse User |
|
|
|
Hi Michael,
This is out of the QVTo scope, however you might want to take a look at
custom serialization in EMF.
QVTo can save the output model into a resource of a given uri, which
should allow for selecting a specific resource factory and customize the
model
serialization.
Regards,
/Radek
On Mon, 08 Dec 2008 13:46:54 +0100, Michael Schorer
<michael.schorer@continental-corporation.com> wrote:
> Thank you very much, Sergey!
> I fixed all my issues!
>
> But now I have another problem...
> Is there a way to create the following construct in a qvto
> transformation with ecore metamodels?
>
> <tag>
> plain text
> </tag>
>
> I would need this because my output model is needed as input for another
> tool, which accepts xml input. In xml this type of input is allowed. The
> question is,
> can it be created in Ecore or by using QVTO respectively?
>
> Regards, Michael
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04794 seconds