Errors during build.
Errors running builder "Tefkat Builder" on project transformation.
Tefkat failed: unexpected token: null: 9, 28 of
com.dstc.tefkat.model.parser.TefkatParser@10469e8
unexpected token: null: 9, 28 of
com.dstc.tefkat.model.parser.TefkatParser@10469e8
unexpected token: null: 9, 28 of
com.dstc.tefkat.model.parser.TefkatParser@10469e8
When I try to run the transformation, I got a launch error:
Failed to load resource from.
platform:/resource/transformation/instances/AgentModel.xmi
I created this metamodel and model in ATL environment for the same
transformation. I think I have a problem when I migrate this source
model from ATL to Tefkat environment. I do not know; maybe it is a
silly mistake but I just renamed my AgentModel.ecore to
AgentModel.xmi. It causes this problem? one problem when I tried to
run the transformation in the tutorial
(http://tefkat.sourceforge.net/tutorial1.html), I got the same errors.
You can find my metamodel and model as an attachment.
Regards,
Arda
The error message is from the parser of the transformation
specification (your .qvt file). The error is detected near the 28th
character of line 9 in this file.
I don't know about any effects of renaming your .ecore file to .xmi
(why do you want to do this anyway). Looking at your ecore model I
don't see any NSUri specified - that is going to make it very hard to
reference things in your metamodel. For example, when EMF loads in
the model it needs to resolve the namespace "Agent" to find the
metamodel so you'll need to tell Tefkat to map this to
platform:/resource/transformation/instances/AgentModel.xmi
michael
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">
> <ecore:EPackage name="PrimitiveTypes">
> <eClassifiers xsi:type="ecore:EDataType" name="String"/>
> </ecore:EPackage>
> <ecore:EPackage name="Agent">
> <eClassifiers xsi:type="ecore:EClass" name="Agent">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="plan" ordered="false" upperBound="-1" eType="/1/Plan" eOpposite="/1/Plan/agentP"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="role" ordered="false" lowerBound="1" eType="/1/Role" eOpposite="/1/Role/agentR"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="interface" ordered="false" upperBound="-1" eType="/1/Interface" eOpposite="/1/Interface/agentI"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Role">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="agentR" ordered="false" lowerBound="1" eType="/1/Agent" eOpposite="/1/Agent/role"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Plan">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="agentP" ordered="false" upperBound="-1" eType="/1/Agent" eOpposite="/1/Agent/plan"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="interfaceP" ordered="false" lowerBound="1" eType="/1/Interface" eOpposite="/1/Interface/planI"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="processP" ordered="false" lowerBound="1" eType="/1/Process" eOpposite="/1/Process/planPrc"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="groundingP" ordered="false" lowerBound="1" eType="/1/Grounding" eOpposite="/1/Grounding/planG"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="SemanticWebService">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="interfaceS" ordered="false" lowerBound="1" eType="/1/Interface" eOpposite="/1/Interface/semanticI"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="processS" ordered="false" lowerBound="1" eType="/1/Process" eOpposite="/1/Process/semanticP"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="groundingS" ordered="false" lowerBound="1" eType="/1/Grounding" eOpposite="/1/Grounding/semanticG"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Interface">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="planI" ordered="false" lowerBound="1" eType="/1/Plan" eOpposite="/1/Plan/interfaceP"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="agentI" ordered="false" lowerBound="1" eType="/1/Agent" eOpposite="/1/Agent/interface"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="semanticI" ordered="false" lowerBound="1" eType="/1/SemanticWebService" eOpposite="/1/SemanticWebService/interfaceS"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Process">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="planPrc" ordered="false" lowerBound="1" eType="/1/Plan" eOpposite="/1/Plan/processP"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="semanticP" ordered="false" lowerBound="1" eType="/1/SemanticWebService" eOpposite="/1/SemanticWebService/processS"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Grounding">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="planG" ordered="false" lowerBound="1" eType="/1/Plan" eOpposite="/1/Plan/groundingP"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="semanticG" ordered="false" lowerBound="1" eType="/1/SemanticWebService" eOpposite="/1/SemanticWebService/groundingS"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="RootM">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" unique="false" lowerBound="1" eType="/0/String"/>
> </eClassifiers>
> </ecore:EPackage>
> </xmi:XMI>
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xmi:XMI xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI" xmlns="Agent">
> <Agent name="Hotel Client Agent" type="Semantic Web Agent" plan="#/3 #/7 #/12" role="#/17"/>
> <Agent name="Semantic Service Matchmaker Agent" type="Semantic Service Matchmaker Agent"
> plan="#/3 #/7 #/12" role="#/18" interface="#/4 #/9 #/14"/>
> <SemanticWebService name="Find a Hotel Composite Service" interfaceS="#/4" processS="#/5"
> groundingS="#/6"/>
> <Plan name="Find a Hotel" type="Semantic Service Executor Plan" agentP="#/0 #/1"
> interfaceP="#/4" processP="#/5" groundingP="#/6"/>
> <Interface name="Find a Hotel Service Interface" planI="#/3" agentI="#/1" semanticI="#/2"/>
> <Process name="Find a Hotel Service Process" planPrc="#/3" semanticP="#/2"/>
> <Grounding name="Find a Hotel Service Grounding" planG="#/3" semanticG="#/2"/>
> <Plan name="Find a Room" type="Semantic Service Executor Plan" agentP="#/0 #/1"
> interfaceP="#/9" processP="#/10" groundingP="#/11"/>
> <SemanticWebService name="Find a Room Composite Service" interfaceS="#/9" processS="#/10"
> groundingS="#/11"/>
> <Interface name="Find a Room Service Interface" planI="#/7" agentI="#/1" semanticI="#/8"/>
> <Process name="Find a Room Service Process" planPrc="#/7" semanticP="#/8"/>
> <Grounding name="Find a Room Service Grounding" planG="#/7" semanticG="#/8"/>
> <Plan name="Make Room Reservation" type="Semantic Service Executor Plan" agentP="#/0 #/1"
> interfaceP="#/14" processP="#/15" groundingP="#/16"/>
> <SemanticWebService name="Make Room Reservation Composite Service" interfaceS="#/14"
> processS="#/15" groundingS="#/16"/>
> <Interface name="Make Room Reservation Service Interface" planI="#/12" agentI="#/1"
> semanticI="#/13"/>
> <Process name="Make Room Reservation Service Process" planPrc="#/12" semanticP="#/13"/>
> <Grounding name="Make Room Reservation Service Grounding" planG="#/12" semanticG="#/13"/>
> <Role name="Hotel Client Role" type="Domain Role" agentR="#/0"/>
> <Role name="Semantic Service Matching Role" type="Registry Role" agentR="#/1"/>
> <RootM name="Agent Model"/>
> </xmi:XMI>
>
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="Agent"
nsURI="http://Agent">
and the header of my model:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns="Agent" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xmlns:agent="http://Agent">
Regards,
Arda
On 1 Mar, 01:37, "michael lawley" <mich...@lawley.id.au> wrote:
> Hi Arda,
>
> The error message is from the parser of the transformation
> specification (your .qvt file). The error is detected near the 28th
> character of line 9 in this file.
>
> I don't know about any effects of renaming your .ecore file to .xmi
> (why do you want to do this anyway). Looking at your ecore model I
> don't see any NSUri specified - that is going to make it very hard to
> reference things in your metamodel. For example, when EMF loads in
> the model it needs to resolve the namespace "Agent" to find the
> metamodel so you'll need to tell Tefkat to map this to
> platform:/resource/transformation/instances/AgentModel.xmi
>
> michael
>
> > </xmi:XMI>- Hide quoted text -
>
> - Show quoted text -