Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Running ETL examples
Running ETL examples [message #632655] Wed, 13 October 2010 13:41 Go to next message
Henning is currently offline Henning
Messages: 32
Registered: October 2010
Member
Hello,

i'm totally new to Epsilon, so i started out with the examples to get first impression. I'm particularly interested in the M2M transformation so I downloaded the Tree2Graph example. However, I was not able to run the transformation on my machine because I got some strange behavior of the ANT script. Here is the console output:

B
Buildfile: /Users/henning/Documents/workspaces/diplom/org.eclipse.epsil on.examples.tree2graph/launch.xml

loadModels:
[epsilon.loadModel] Internal error: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource '/Users/henning/Documents/workspaces/diplom/org.eclipse.epsi lon.examples.tree2graph/tree.model' does not exist.
[epsilon.loadModel] at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl erImpl$WorkbenchHelper.createPlatformResourceInputStream[Pla tformResourceURIHandlerImpl.java:222]
[epsilon.loadModel] at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl erImpl.createInputStream[PlatformResourceURIHandlerImpl.java :452]
[epsilon.loadModel] at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterIm pl.createInputStream[ExtensibleURIConverterImpl.java:301]
[epsilon.loadModel] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load[Resour ceImpl.java:1254]
[epsilon.loadModel] at org.eclipse.epsilon.emc.emf.EmfModel.loadModel[EmfModel.java :194]
[epsilon.loadModel] at org.eclipse.epsilon.emc.emf.EmfModel.load[EmfModel.java:101]
[epsilon.loadModel] at org.eclipse.epsilon.emc.emf.EmfModel.load[EmfModel.java:95]
[epsilon.loadModel] at org.eclipse.epsilon.workflow.tasks.LoadModelTask.executeImpl [LoadModelTask.java:52]
[epsilon.loadModel] at org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute[Epsil onTask.java:41]
[epsilon.loadModel] at org.apache.tools.ant.UnknownElement.execute[UnknownElement.j ava:288]
[epsilon.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
[epsilon.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke[NativeMethodAcce ssorImpl.java:39]
[epsilon.loadModel] at sun.reflect.DelegatingMethodAccessorImpl.invoke[DelegatingMe thodAccessorImpl.java:25]
[epsilon.loadModel] at java.lang.reflect.Method.invoke[Method.java:597]
[epsilon.loadModel] at org.apache.tools.ant.dispatch.DispatchUtils.execute[Dispatch Utils.java:106]
[epsilon.loadModel] at org.apache.tools.ant.Task.perform[Task.java:348]
[epsilon.loadModel] at org.apache.tools.ant.Target.execute[Target.java:357]
[epsilon.loadModel] at org.apache.tools.ant.Target.performTasks[Target.java:385]
[epsilon.loadModel] at org.apache.tools.ant.Project.executeSortedTargets[Project.ja va:1337]
[epsilon.loadModel] at org.apache.tools.ant.Project.executeTarget[Project.java:1306 ]
[epsilon.loadModel] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets[D efaultExecutor.java:41]
[epsilon.loadModel] at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets[EclipseDefaultExecutor.java:32]
[epsilon.loadModel] at org.apache.tools.ant.Project.executeTargets[Project.java:118 9]
[epsilon.loadModel] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run[Inte rnalAntRunner.java:662]
[epsilon.loadModel] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run[Inte rnalAntRunner.java:495]
[epsilon.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
[epsilon.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke[NativeMethodAcce ssorImpl.java:39]
[epsilon.loadModel] at sun.reflect.DelegatingMethodAccessorImpl.invoke[DelegatingMe thodAccessorImpl.java:25]
[epsilon.loadModel] at java.lang.reflect.Method.invoke[Method.java:597]
[epsilon.loadModel] at org.eclipse.ant.core.AntRunner.run[AntRunner.java:378]
[epsilon.loadModel] at org.eclipse.ant.internal.launching.launchConfigurations.AntL aunchDelegate$1.run[AntLaunchDelegate.java:298]
[epsilon.loadModel] at java.lang.Thread.run[Thread.java:637]
[epsilon.loadModel] Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/Users/henning/Documents/workspaces/diplom/org.eclipse.epsi lon.examples.tree2graph/tree.model' does not exist.
[epsilon.loadModel] at org.eclipse.core.internal.resources.Resource.checkExists[Res ource.java:326]
[epsilon.loadModel] at org.eclipse.core.internal.resources.Resource.checkAccessible [Resource.java:200]
[epsilon.loadModel] at org.eclipse.core.internal.resources.File.getContents[File.ja va:291]
[epsilon.loadModel] at org.eclipse.core.internal.resources.File.getContents[File.ja va:282]
[epsilon.loadModel] at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl erImpl$WorkbenchHelper.createPlatformResourceInputStream[Pla tformResourceURIHandlerImpl.java:208]
[epsilon.loadModel] ... 31 more
[epsilon.loadModel] at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl erImpl$WorkbenchHelper.createPlatformResourceInputStream(Pla tformResourceURIHandlerImpl.java:222)
[epsilon.loadModel] at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl erImpl.createInputStream(PlatformResourceURIHandlerImpl.java :452)
[epsilon.loadModel] at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterIm pl.createInputStream(ExtensibleURIConverterImpl.java:301)
[epsilon.loadModel] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1254)
[epsilon.loadModel] at org.eclipse.epsilon.emc.emf.EmfModel.loadModel(EmfModel.java :194)
[epsilon.loadModel] at org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:101)
[epsilon.loadModel] at org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:95)
[epsilon.loadModel] at org.eclipse.epsilon.workflow.tasks.LoadModelTask.executeImpl (LoadModelTask.java:52)
[epsilon.loadModel] at org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
[epsilon.loadModel] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[epsilon.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[epsilon.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[epsilon.loadModel] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[epsilon.loadModel] at java.lang.reflect.Method.invoke(Method.java:597)
[epsilon.loadModel] at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
[epsilon.loadModel] at org.apache.tools.ant.Task.perform(Task.java:348)
[epsilon.loadModel] at org.apache.tools.ant.Target.execute(Target.java:357)
[epsilon.loadModel] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[epsilon.loadModel] at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
[epsilon.loadModel] at org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
[epsilon.loadModel] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[epsilon.loadModel] at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[epsilon.loadModel] at org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
[epsilon.loadModel] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:662)
[epsilon.loadModel] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:495)
[epsilon.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[epsilon.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[epsilon.loadModel] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[epsilon.loadModel] at java.lang.reflect.Method.invoke(Method.java:597)
[epsilon.loadModel] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
[epsilon.loadModel] at org.eclipse.ant.internal.launching.launchConfigurations.AntL aunchDelegate$1.run(AntLaunchDelegate.java:298)
[epsilon.loadModel] at java.lang.Thread.run(Thread.java:637)

BUILD FAILED
/Users/henning/Documents/workspaces/diplom/org.eclipse.epsil on.examples.tree2graph/launch.xml:21: Internal error: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource '/Users/henning/Documents/workspaces/diplom/org.eclipse.epsi lon.examples.tree2graph/tree.model' does not exist.
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl erImpl$WorkbenchHelper.createPlatformResourceInputStream[Pla tformResourceURIHandlerImpl.java:222]
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl erImpl.createInputStream[PlatformResourceURIHandlerImpl.java :452]
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterIm pl.createInputStream[ExtensibleURIConverterImpl.java:301]
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load[Resour ceImpl.java:1254]
at org.eclipse.epsilon.emc.emf.EmfModel.loadModel[EmfModel.java :194]
at org.eclipse.epsilon.emc.emf.EmfModel.load[EmfModel.java:101]
at org.eclipse.epsilon.emc.emf.EmfModel.load[EmfModel.java:95]
at org.eclipse.epsilon.workflow.tasks.LoadModelTask.executeImpl [LoadModelTask.java:52]
at org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute[Epsil onTask.java:41]
at org.apache.tools.ant.UnknownElement.execute[UnknownElement.j ava:288]
at sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
at sun.reflect.NativeMethodAccessorImpl.invoke[NativeMethodAcce ssorImpl.java:39]
at sun.reflect.DelegatingMethodAccessorImpl.invoke[DelegatingMe thodAccessorImpl.java:25]
at java.lang.reflect.Method.invoke[Method.java:597]
at org.apache.tools.ant.dispatch.DispatchUtils.execute[Dispatch Utils.java:106]
at org.apache.tools.ant.Task.perform[Task.java:348]
at org.apache.tools.ant.Target.execute[Target.java:357]
at org.apache.tools.ant.Target.performTasks[Target.java:385]
at org.apache.tools.ant.Project.executeSortedTargets[Project.ja va:1337]
at org.apache.tools.ant.Project.executeTarget[Project.java:1306 ]
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets[D efaultExecutor.java:41]
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets[EclipseDefaultExecutor.java:32]
at org.apache.tools.ant.Project.executeTargets[Project.java:118 9]
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run[Inte rnalAntRunner.java:662]
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run[Inte rnalAntRunner.java:495]
at sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
at sun.reflect.NativeMethodAccessorImpl.invoke[NativeMethodAcce ssorImpl.java:39]
at sun.reflect.DelegatingMethodAccessorImpl.invoke[DelegatingMe thodAccessorImpl.java:25]
at java.lang.reflect.Method.invoke[Method.java:597]
at org.eclipse.ant.core.AntRunner.run[AntRunner.java:378]
at org.eclipse.ant.internal.launching.launchConfigurations.AntL aunchDelegate$1.run[AntLaunchDelegate.java:298]
at java.lang.Thread.run[Thread.java:637]
Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/Users/henning/Documents/workspaces/diplom/org.eclipse.epsi lon.examples.tree2graph/tree.model' does not exist.
at org.eclipse.core.internal.resources.Resource.checkExists[Res ource.java:326]
at org.eclipse.core.internal.resources.Resource.checkAccessible [Resource.java:200]
at org.eclipse.core.internal.resources.File.getContents[File.ja va:291]
at org.eclipse.core.internal.resources.File.getContents[File.ja va:282]
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl erImpl$WorkbenchHelper.createPlatformResourceInputStream[Pla tformResourceURIHandlerImpl.java:208]
... 31 more


Total time: 155 milliseconds


I followed all instructions to setup the example:
1. Registering the .ecore metamodel is the metamodel project
2. setting ANT to run in the same JRE as ecilpse
3. invoking the ANT script

It gets very strange, when the ANT Task is invoked twice, then the console shows the following output:


Buildfile: /Users/henning/Downloads/org.eclipse.epsilon.examples.tree2g raph/launch.xml

loadModels:

main:
BUILD SUCCESSFUL
Total time: 261 milliseconds

I'm running the latest version of Epsilon and Eclipse Helios on Mac OS 10.6.4.

What did I do wrong?
Re: Running ETL examples [message #632670 is a reply to message #632655] Wed, 13 October 2010 15:27 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

Did you check the "copy to workspace" option when you imported the
project?

Cheers,
Dimitris

Henning <Hager.Henning@gmail.com> wrote:
> Hello,
>
> i'm totally new to Epsilon, so i started out with the examples to get
> first impression. I'm particularly interested in the M2M
> transformation so I downloaded the Tree2Graph example. However, I was
> not able to run the transformation on my machine because I got some
> strange behavior of the ANT script. Here is the console output:
> B
> Buildfile:
> /Users/henning/Documents/workspaces/diplom/org.eclipse.epsil
> on.examples.tree2graph/launch.xml
>
> loadModels:
> [epsilon.loadModel] Internal error:
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource
> '/Users/henning/Documents/workspaces/diplom/org.eclipse.epsi
> lon.examples.tree2graph/tree.model' does not exist.
> [epsilon.loadModel] at
> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl
> erImpl$WorkbenchHelper.createPlatformResourceInputStream[Pla
> tformResourceURIHandlerImpl.java:222]
> [epsilon.loadModel] at
> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl
> erImpl.createInputStream[PlatformResourceURIHandlerImpl.java :452]
> [epsilon.loadModel] at
> org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterIm
> pl.createInputStream[ExtensibleURIConverterImpl.java:301]
> [epsilon.loadModel] at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load[Resour
> ceImpl.java:1254]
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.loadModel[EmfModel.java :194]
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.load[EmfModel.java:101]
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.load[EmfModel.java:95]
> [epsilon.loadModel] at
> org.eclipse.epsilon.workflow.tasks.LoadModelTask.executeImpl
> [LoadModelTask.java:52]
> [epsilon.loadModel] at
> org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute[Epsil
> onTask.java:41]
> [epsilon.loadModel] at
> org.apache.tools.ant.UnknownElement.execute[UnknownElement.j ava:288]
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke[NativeMethodAcce
> ssorImpl.java:39]
> [epsilon.loadModel] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke[DelegatingMe
> thodAccessorImpl.java:25]
> [epsilon.loadModel] at
> java.lang.reflect.Method.invoke[Method.java:597]
> [epsilon.loadModel] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute[Dispatch
> Utils.java:106]
> [epsilon.loadModel] at
> org.apache.tools.ant.Task.perform[Task.java:348]
> [epsilon.loadModel] at
> org.apache.tools.ant.Target.execute[Target.java:357]
> [epsilon.loadModel] at
> org.apache.tools.ant.Target.performTasks[Target.java:385]
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeSortedTargets[Project.ja va:1337]
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeTarget[Project.java:1306 ]
> [epsilon.loadModel] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets[D
> efaultExecutor.java:41]
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe
> cuteTargets[EclipseDefaultExecutor.java:32]
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeTargets[Project.java:118 9]
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run[Inte
> rnalAntRunner.java:662]
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run[Inte
> rnalAntRunner.java:495]
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke[NativeMethodAcce
> ssorImpl.java:39]
> [epsilon.loadModel] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke[DelegatingMe
> thodAccessorImpl.java:25]
> [epsilon.loadModel] at
> java.lang.reflect.Method.invoke[Method.java:597]
> [epsilon.loadModel] at
> org.eclipse.ant.core.AntRunner.run[AntRunner.java:378]
> [epsilon.loadModel] at
> org.eclipse.ant.internal.launching.launchConfigurations.AntL
> aunchDelegate$1.run[AntLaunchDelegate.java:298]
> [epsilon.loadModel] at java.lang.Thread.run[Thread.java:637]
> [epsilon.loadModel] Caused by:
> org.eclipse.core.internal.resources.ResourceException: Resource
> '/Users/henning/Documents/workspaces/diplom/org.eclipse.epsi
> lon.examples.tree2graph/tree.model' does not exist.
> [epsilon.loadModel] at
> org.eclipse.core.internal.resources.Resource.checkExists[Res
> ource.java:326]
> [epsilon.loadModel] at
> org.eclipse.core.internal.resources.Resource.checkAccessible
> [Resource.java:200]
> [epsilon.loadModel] at
> org.eclipse.core.internal.resources.File.getContents[File.ja va:291]
> [epsilon.loadModel] at
> org.eclipse.core.internal.resources.File.getContents[File.ja va:282]
> [epsilon.loadModel] at
> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl
> erImpl$WorkbenchHelper.createPlatformResourceInputStream[Pla
> tformResourceURIHandlerImpl.java:208]
> [epsilon.loadModel] ... 31 more
> [epsilon.loadModel] at
> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl
> erImpl$WorkbenchHelper.createPlatformResourceInputStream(Pla
> tformResourceURIHandlerImpl.java:222)
> [epsilon.loadModel] at
> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl
> erImpl.createInputStream(PlatformResourceURIHandlerImpl.java :452)
> [epsilon.loadModel] at
> org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterIm
> pl.createInputStream(ExtensibleURIConverterImpl.java:301)
> [epsilon.loadModel] at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour
> ceImpl.java:1254)
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.loadModel(EmfModel.java :194)
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:101)
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:95)
> [epsilon.loadModel] at
> org.eclipse.epsilon.workflow.tasks.LoadModelTask.executeImpl
> (LoadModelTask.java:52)
> [epsilon.loadModel] at
> org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil
> onTask.java:41)
> [epsilon.loadModel] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39)
> [epsilon.loadModel] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25)
> [epsilon.loadModel] at
> java.lang.reflect.Method.invoke(Method.java:597)
> [epsilon.loadModel] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch
> Utils.java:106)
> [epsilon.loadModel] at
> org.apache.tools.ant.Task.perform(Task.java:348)
> [epsilon.loadModel] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [epsilon.loadModel] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
> [epsilon.loadModel] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D
> efaultExecutor.java:41)
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe
> cuteTargets(EclipseDefaultExecutor.java:32)
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte
> rnalAntRunner.java:662)
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte
> rnalAntRunner.java:495)
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39)
> [epsilon.loadModel] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25)
> [epsilon.loadModel] at
> java.lang.reflect.Method.invoke(Method.java:597)
> [epsilon.loadModel] at
> org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
> [epsilon.loadModel] at
> org.eclipse.ant.internal.launching.launchConfigurations.AntL
> aunchDelegate$1.run(AntLaunchDelegate.java:298)
> [epsilon.loadModel] at java.lang.Thread.run(Thread.java:637)
>
> BUILD FAILED
> /Users/henning/Documents/workspaces/diplom/org.eclipse.epsil
> on.examples.tree2graph/launch.xml:21: Internal error:
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource
> '/Users/henning/Documents/workspaces/diplom/org.eclipse.epsi
> lon.examples.tree2graph/tree.model' does not exist.
> at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl
> erImpl$WorkbenchHelper.createPlatformResourceInputStream[Pla
> tformResourceURIHandlerImpl.java:222]
> at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl
> erImpl.createInputStream[PlatformResourceURIHandlerImpl.java :452]
> at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterIm
> pl.createInputStream[ExtensibleURIConverterImpl.java:301]
> at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load[Resour
> ceImpl.java:1254]
> at org.eclipse.epsilon.emc.emf.EmfModel.loadModel[EmfModel.java
> :194]
> at org.eclipse.epsilon.emc.emf.EmfModel.load[EmfModel.java:101]
> at org.eclipse.epsilon.emc.emf.EmfModel.load[EmfModel.java:95]
> at org.eclipse.epsilon.workflow.tasks.LoadModelTask.executeImpl
> [LoadModelTask.java:52]
> at org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute[Epsil
> onTask.java:41]
> at org.apache.tools.ant.UnknownElement.execute[UnknownElement.j
> ava:288]
> at sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
> at sun.reflect.NativeMethodAccessorImpl.invoke[NativeMethodAcce
> ssorImpl.java:39]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke[DelegatingMe
> thodAccessorImpl.java:25]
> at java.lang.reflect.Method.invoke[Method.java:597]
> at org.apache.tools.ant.dispatch.DispatchUtils.execute[Dispatch
> Utils.java:106]
> at org.apache.tools.ant.Task.perform[Task.java:348]
> at org.apache.tools.ant.Target.execute[Target.java:357]
> at org.apache.tools.ant.Target.performTasks[Target.java:385]
> at org.apache.tools.ant.Project.executeSortedTargets[Project.ja
> va:1337]
> at org.apache.tools.ant.Project.executeTarget[Project.java:1306 ]
> at org.apache.tools.ant.helper.DefaultExecutor.executeTargets[D
> efaultExecutor.java:41]
> at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe
> cuteTargets[EclipseDefaultExecutor.java:32]
> at org.apache.tools.ant.Project.executeTargets[Project.java:118 9]
> at org.eclipse.ant.internal.core.ant.InternalAntRunner.run[Inte
> rnalAntRunner.java:662]
> at org.eclipse.ant.internal.core.ant.InternalAntRunner.run[Inte
> rnalAntRunner.java:495]
> at sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
> at sun.reflect.NativeMethodAccessorImpl.invoke[NativeMethodAcce
> ssorImpl.java:39]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke[DelegatingMe
> thodAccessorImpl.java:25]
> at java.lang.reflect.Method.invoke[Method.java:597]
> at org.eclipse.ant.core.AntRunner.run[AntRunner.java:378]
> at org.eclipse.ant.internal.launching.launchConfigurations.AntL
> aunchDelegate$1.run[AntLaunchDelegate.java:298]
> at java.lang.Thread.run[Thread.java:637]
> Caused by: org.eclipse.core.internal.resources.ResourceException:
> Resource '/Users/henning/Documents/workspaces/diplom/org.eclipse.epsi
> lon.examples.tree2graph/tree.model' does not exist.
> at org.eclipse.core.internal.resources.Resource.checkExists[Res
> ource.java:326]
> at org.eclipse.core.internal.resources.Resource.checkAccessible
> [Resource.java:200]
> at org.eclipse.core.internal.resources.File.getContents[File.ja
> va:291]
> at org.eclipse.core.internal.resources.File.getContents[File.ja
> va:282]
> at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl
> erImpl$WorkbenchHelper.createPlatformResourceInputStream[Pla
> tformResourceURIHandlerImpl.java:208]
> ... 31 more
>
>
> Total time: 155 milliseconds
>
>
> I followed all instructions to setup the example:
> 1. Registering the .ecore metamodel is the metamodel project
> 2. setting ANT to run in the same JRE as ecilpse
> 3. invoking the ANT script
>
> It gets very strange, when the ANT Task is invoked twice, then the
> console shows the following output:
>
>
> Buildfile:
> /Users/henning/Downloads/org.eclipse.epsilon.examples.tree2g
> raph/launch.xml
>
> loadModels:
>
> main:
> BUILD SUCCESSFUL
> Total time: 261 milliseconds
>
> I'm running the latest version of Epsilon and Eclipse Helios on Mac OS
> 10.6.4.
>
> What did I do wrong?
>
>
Re: Running ETL examples [message #632675 is a reply to message #632670] Wed, 13 October 2010 16:35 Go to previous messageGo to next message
Henning is currently offline Henning
Messages: 32
Registered: October 2010
Member
Yes I did check that option and the projects are both located in the workspace. I was able to resolve this error by changing the epsilon.loadModel parameter modelFile to:

<epsilon.loadModel name="Tree" type="EMF">
<parameter name="modelFile" value=" file:/Users/henning/Documents/workspaces/diplom/org.eclipse. epsilon.examples.tree2graph/tree.model "/>

I tried this because of Bug 285559 and seemed to solve this problem even though it is supposed to be fixed since 0.8.7

Is this the indented usage of the parameter?

Greetings from Germany,

Henning
Re: Running ETL examples [message #632690 is a reply to message #632675] Wed, 13 October 2010 17:51 Go to previous messageGo to next message
Steffen Zschaler is currently offline Steffen Zschaler
Messages: 228
Registered: July 2009
Senior Member
Hi Henning,

I believe, Eclipse tends to interpret absolute paths without the file:
protocol as URIs relative to the workspace. So it would have searched
for a project Users with a folder henning/... in it, which obviously did
not exist. The file: protocol tells it, I believe, to take seriously the
fact that this is an absolute URI.

Cheers,

Steffen

On 13/10/2010 21:35, Henning wrote:
> Yes I did check that option and the projects are both located in the
> workspace. I was able to resolve this error by changing the
> epsilon.loadModel parameter modelFile to:
>
> <epsilon.loadModel name="Tree" type="EMF">
> <parameter name="modelFile" value="
> file:/Users/henning/Documents/workspaces/diplom/org.eclipse.
> epsilon.examples.tree2graph/tree.model "/>
>
> I tried this because of
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=285559 and seemed to
> solve this problem even though it is supposed to be fixed since 0.8.7
>
> Is this the indented usage of the parameter?
>
> Greetings from Germany,
>
> Henning
Re: Running ETL examples [message #632806 is a reply to message #632690] Thu, 14 October 2010 05:56 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Henning,

I'm afraid I can't reproduce this on my Mac. I've checked out the two
projects, ran the launch.xml ANT file and everything worked as expected.
Are you using the stable or the interim version of Epsilon?

Cheers,
Dimitris

Steffen Zschaler wrote:
> Hi Henning,
>
> I believe, Eclipse tends to interpret absolute paths without the file:
> protocol as URIs relative to the workspace. So it would have searched
> for a project Users with a folder henning/... in it, which obviously did
> not exist. The file: protocol tells it, I believe, to take seriously the
> fact that this is an absolute URI.
>
> Cheers,
>
> Steffen
>
> On 13/10/2010 21:35, Henning wrote:
>> Yes I did check that option and the projects are both located in the
>> workspace. I was able to resolve this error by changing the
>> epsilon.loadModel parameter modelFile to:
>>
>> <epsilon.loadModel name="Tree" type="EMF">
>> <parameter name="modelFile" value="
>> file:/Users/henning/Documents/workspaces/diplom/org.eclipse.
>> epsilon.examples.tree2graph/tree.model "/>
>>
>> I tried this because of
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=285559 and seemed to
>> solve this problem even though it is supposed to be fixed since 0.8.7
>>
>> Is this the indented usage of the parameter?
>>
>> Greetings from Germany,
>>
>> Henning
Re: Running ETL examples [message #632818 is a reply to message #632655] Thu, 14 October 2010 07:15 Go to previous messageGo to next message
Henning is currently offline Henning
Messages: 32
Registered: October 2010
Member
I'm using the stable version delivered by the update site. I also started all over again to see if I could reproduce the error and got the exact same results.
Is there anything I can do to provide more information?
Re: Running ETL examples [message #632822 is a reply to message #632818] Thu, 14 October 2010 07:23 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Could you please try the latest interim version?

Cheers,
Dimitris

Henning wrote:
> I'm using the stable version delivered by the update site. I also
> started all over again to see if I could reproduce the error and got the
> exact same results.
> Is there anything I can do to provide more information?
Re: Running ETL examples [message #632826 is a reply to message #632822] Thu, 14 October 2010 08:07 Go to previous messageGo to next message
Henning is currently offline Henning
Messages: 32
Registered: October 2010
Member
Hi Dimitris,

in the interim version everything works fine! Thanks alot! Do you encourage users to use this version for productive use?

Henning
Re: Running ETL examples [message #632838 is a reply to message #632826] Thu, 14 October 2010 08:31 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Henning,

Yes. It fixes several bugs and will shortly be released (with very few
changes) as the next stable version (0.9).

Cheers,
Dimitris

Henning wrote:
> Hi Dimitris,
>
> in the interim version everything works fine! Thanks alot! Do you
> encourage users to use this version for productive use?
>
> Henning
Previous Topic:re-execute rule to duplicate object generation
Next Topic:confusing IToolNativeTypeDelegate policy
Goto Forum:
  


Current Time: Fri Jul 25 16:51:48 EDT 2014

Powered by FUDForum. Page generated in 0.05981 seconds