Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Allow inter-model references programmatically
[ATL] Allow inter-model references programmatically [message #697032] Fri, 15 July 2011 11:06
Yulia B is currently offline Yulia BFriend
Messages: 16
Registered: June 2011
Junior Member

I'm trying to create the ATL transformation launching from Java. I've created the ATL plugin with the wizard and it contains necessary Java class for launching.
When I try to launch it with input and output files paths as arguments, the error below occurs:
org.eclipse.m2m.atl.core.ATLCoreException: Error loading file:/C:/Temp/Model.xml: null
	at org.eclipse.m2m.atl.core.emf.EMFInjector.inject(
	at org.eclipse.m2m.atl.core.emf.EMFInjector.inject(
	at testPSM20110628.files.PSMandBPMN2AL.loadModels(
	at testPSM20110628.files.PSMandBPMN2AL.main(
	at testPSM20110628.files.Launch.main(
Caused by: java.lang.NullPointerException
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFeatureType(
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(
	at org.eclipse.emf.ecore.xmi.impl.XMIHandler.createObject(
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(
	at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(
	at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(
	at Source)
	at Source)
	at Source)
	at$ Source)
	at Source)
	at Source)
	at Source)
	at Source)
	at Source)
	at Source)
	at Source)
	at$JAXPSAXParser.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(Unknown Source)
	at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(
	at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(
	at org.eclipse.m2m.atl.core.emf.EMFInjector.inject(
	... 4 more

I'm sure that this is caused by reference to another model. I have such an attribute in my model:
<bpmnDiagram href="MyDiagram.bpmn#_wA5fEWsqEd-yl7_INOeaMQ"/>

And it seems that this reference cannot be processed instead of inter-model references are allowed in properties file.

What's wrong, any thoughts?

Thank you very much for the help!

[Updated on: Fri, 15 July 2011 15:17]

Report message to a moderator

Previous Topic:[QVTo] Using model elements having as name a QVTo keyword
Next Topic:[QVTo] confused
Goto Forum:

Current Time: Fri Mar 05 16:40:32 GMT 2021

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

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

Back to the top