Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Proxies do not resolve?!(EMF ATL Metamodels ref m2m)
Proxies do not resolve?! [message #645059] Wed, 15 December 2010 13:05 Go to next message
Julian P is currently offline Julian PFriend
Messages: 5
Registered: September 2010
Junior Member
Hello,

while trying to transform multiple input models (some of them reference another) into one target model i get an error.. It doesnt matter if i start the transformation via Ant or RunConfig, the same error occurs.

However, and that is the disturbing part, if i open the traceability model in the eclipse editor before running the ant script(or run config) the error does not occur. (Traceability metamodel references edrs, etest metamodels etc.)

Regards,
Julian

Ant script:
...
<atl.loadModel
	   		modelhandler="EMF"
	   		metamodel="TraceabilityMetaModel"
	   		name="Traceability_Model"
			uri="platform:/resource/org...../input/traceabilityModel.traceability"

		/>
...
		<atl.launch path="getBlocksAndTestsForReq.asm" refining="false">
			<option name="allowInterModelReferences" value="true"/>
				<inmodel model="Etest_Model" name="EtestModel"/>
				<inmodel model="Edrs_Model" name="EdrsModel"/>
				<inmodel model="Emdl_Model" name="EmdlModel"/>
				<inmodel model="Traceability_Model" name="TraceabilityModel"/>
	   			<outmodel model="Result" name="FilteredTraceabilityModel" metamodel="TraceabilityMetaModel"/>
		</atl.launch>
....

Error:
 [atl.launch] org.eclipse.m2m.atl.engine.emfvm.VMException: The value of type 'class org.eclipse.emf.ecore.impl.DynamicEObjectImpl' must be of type 'org.eclipse.emf.ecore.impl.EClassImpl@e4cdc3 (name: Requirement) (instanceClassName: null) (abstract: false, interface: false)'
  [atl.launch] 	at __matchRTLine#20(getBlocksAndTestsForReq.atl[26:150-26:158])
  [atl.launch] 		local variables: self=getBlocksAndTestsForReq : ASMModule, s=TraceabilityModel!<unnamed>, id='"2.1.7"'
  [atl.launch] 	at __matcher__#3(getBlocksAndTestsForReq.atl)
  [atl.launch] 		local variables: self=getBlocksAndTestsForReq : ASMModule
  [atl.launch] 	at main#36(getBlocksAndTestsForReq.atl)
  [atl.launch] 		local variables: self=getBlocksAndTestsForReq : ASMModule
  [atl.launch] Java Stack:
  [atl.launch] org.eclipse.m2m.atl.engine.emfvm.VMException: The value of type 'class org.eclipse.emf.ecore.impl.DynamicEObjectImpl' must be of type 'org.eclipse.emf.ecore.impl.EClassImpl@e4cdc3 (name: Requirement) (instanceClassName: null) (abstract: false, interface: false)'
  [atl.launch] 	at org.eclipse.m2m.atl.engine.emfvm.ASMOperation.exec(ASMOperation.java:643)
  [atl.launch] 	at org.eclipse.m2m.atl.engine.emfvm.ASMOperation.exec(ASMOperation.java:388)
  [atl.launch] 	at org.eclipse.m2m.atl.engine.emfvm.ASMOperation.exec(ASMOperation.java:388)
  [atl.launch] 	at org.eclipse.m2m.atl.engine.emfvm.ASM.run(ASM.java:208)
  [atl.launch] 	at org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMLauncher.internalLaunch(EMFVMLauncher.java:170)
  [atl.launch] 	at org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMUILauncher.launch(EMFVMUILauncher.java:46)
  [atl.launch] 	at org.eclipse.m2m.atl.core.ant.tasks.ATLModelTransformationTask.execute(ATLModelTransformationTask.java:233)
  [atl.launch] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
  [atl.launch] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [atl.launch] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  [atl.launch] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  [atl.launch] 	at java.lang.reflect.Method.invoke(Unknown Source)
  [atl.launch] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  [atl.launch] 	at org.apache.tools.ant.Task.perform(Task.java:348)
  [atl.launch] 	at org.apache.tools.ant.Target.execute(Target.java:357)
  [atl.launch] 	at org.apache.tools.ant.Target.performTasks(Target.java:385)
  [atl.launch] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
  [atl.launch] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
  [atl.launch] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
  [atl.launch] 	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
  [atl.launch] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
  [atl.launch] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:662)
  [atl.launch] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495)
  [atl.launch] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [atl.launch] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  [atl.launch] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  [atl.launch] 	at java.lang.reflect.Method.invoke(Unknown Source)
  [atl.launch] 	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
  [atl.launch] 	at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:298)
  [atl.launch] 	at java.lang.Thread.run(Unknown Source)
  [atl.launch] Caused by: java.lang.ClassCastException: The value of type 'class org.eclipse.emf.ecore.impl.DynamicEObjectImpl' must be of type 'org.eclipse.emf.ecore.impl.EClassImpl@e4cdc3 (name: Requirement) (instanceClassName: null) (abstract: false, interface: false)'
  [atl.launch] 	at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleEObject.dynamicGet(EStructuralFeatureImpl.java:2345)
  [atl.launch] 	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1037)
  [atl.launch] 	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1021)
  [atl.launch] 	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1013)
  [atl.launch] 	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1008)
  [atl.launch] 	at org.eclipse.m2m.atl.engine.emfvm.adapter.EMFModelAdapter.get(EMFModelAdapter.java:511)
  [atl.launch] 	at org.eclipse.m2m.atl.engine.emfvm.ASMOperation.exec(ASMOperation.java:489)
  [atl.launch] 	... 29 more

[Updated on: Wed, 15 December 2010 13:07]

Report message to a moderator

Re: Proxies do not resolve?! [message #645085 is a reply to message #645059] Wed, 15 December 2010 14:45 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 523
Registered: July 2009
Senior Member
How do you load your meta-models ? Using uris or paths ?
Re: Proxies do not resolve?! [message #645087 is a reply to message #645085] Wed, 15 December 2010 14:51 Go to previous message
Julian P is currently offline Julian PFriend
Messages: 5
Registered: September 2010
Junior Member
URI

<atl.loadModel
		modelHandler="EMF"
		name="TraceabilityMetaModel"
		metamodel="MOF" 
		uri="http://www.mee.org/traceability"
/>


Models are loaded by URI as well.

[Updated on: Wed, 15 December 2010 14:54]

Report message to a moderator

Previous Topic:Comparing GMF Resources
Next Topic:[EEF] EFeatureMap code generation.
Goto Forum:
  


Current Time: Mon Dec 22 20:37:36 GMT 2014

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

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