Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand/Xtend] Extension problem with xsd metamodel
[Xpand/Xtend] Extension problem with xsd metamodel [message #1033142] Wed, 03 April 2013 18:48 Go to next message
serhat gezgin is currently offline serhat gezgin
Messages: 237
Registered: January 2013
Location: Izmir
Senior Member
Hi all,

I create xpand project and it's work perfectly from workflow file or java code but

when i export project like plug-in and than run plug-in with run as Eclipse

Application(run time Eclipse), on runtime Eclipse my template file (.xpt) can't

recognize my Extension files (.ext) and always give me;

[main] ERROR o.e.emf.mwe.core.WorkflowEngine - Workflow interrupted. Reason: Couldn't find operation 'moduleName(String)' for ir::IModule.

I think eclipse run time can't reach extension files. But don't know how can i solve

this problem?

Anyone can help me ?

Regards.








[Updated on: Fri, 19 April 2013 07:08]

Report message to a moderator

Re: XPand .xpt File can't Recognize Extension Files on Runtime [message #1033373 is a reply to message #1033142] Thu, 04 April 2013 03:06 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten Thoms
Messages: 353
Registered: July 2009
Location: Dortmund
Senior Member

If I understand correctly, you are deploying the Xpand plugin project into a runtime Eclipse instance. From this instance, you are somehow invoking a workflow. Is this workflow in a project in the workspace of your runtime instance? Does this include the generator plugin with a plugin dependency?

When running the workflow, which implementation of ResourceManager is used? You might debug into the code, maybe by setting an exception breakpoint on EvaluationException. If you know which ResourceManager is used (likely ResourceManagerDefaultImpl), you can set breakpoints there to learn why a resource is not found.

Alternatively, strip down your example and attach it here with step-by-step instruction how to reproduce your error.

Regards,
~Karsten


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: XPand .xpt File can't Recognize Extension Files on Runtime [message #1033452 is a reply to message #1033373] Thu, 04 April 2013 04:36 Go to previous messageGo to next message
serhat gezgin is currently offline serhat gezgin
Messages: 237
Registered: January 2013
Location: Izmir
Senior Member
Hi,

Yes i deploy plugin project into a runtime Eclipse Instance. From this instance,

workflow invoking from command. But my workflow does'nt exist on runtime instance. Its

in xpand project, xpand project have its runner function and plug-in project have dependency with this project. I dont know

which resourceManager used.

i used this code to generate file;
			XmlUtil.setModuleNameElement(path + sourceFileName
					+ Constant.xmlFileExtension, sourceFileName);
			WorkflowRunner runner = new WorkflowRunner();
			HashMap<String, Object> externalSlotContents = new HashMap<String, Object>();
			HashMap<String, String> theParams = new HashMap<String, String>();
			theParams.put("modelFile", path + sourceFileName
					+ Constant.xmlFileExtension);
			theParams.put("toPath", path);
			runner.run(Constant.sourceWorkFlowFilePath,
					new NullProgressMonitor(), theParams, externalSlotContents);
			Util.deleteEmptyLinesFromGeneratedEcoreFile(path, 
					XmlUtil.returnNameOfModuleElement(path + sourceFileName 
							+ Constant.xmlFileExtension));


This code workes perfectly in main function like;

public static void main(String[] args) {
    String path = "C:\\Users\\unituser\\Desktop\\navigation" + "\\";
    String fileName = "navigation";

    XpandRunner.runClaferAfterXpandGenerator(path, fileName);
}


But when i invoke code from command on runtime Eclipse i get;

ERROR o.e.emf.mwe.core.WorkflowEngine - Workflow interrupted. Reason: Couldn't find operation 'moduleName(String)' for ir::IModule.

my workflow;

<workflow>
  <component class="org.eclipse.xtend.typesystem.xsd.XMLReader">
    <modelSlot value="model" />
    <uri value="${modelFile}" />
    <metaModel id="mm"
      class="org.eclipse.xtend.typesystem.xsd.XSDMetaModel">
      <schemaFile value="metamodel/ir.xsd" />
    </metaModel>
  </component>
  <component class="org.eclipse.xpand2.Generator">
    <metaModel idRef="mm" />
    <expand value="template::DeepTravelTemplate::Root FOR model" />
    <outlet path="${toPath}" />
    <globalVarDef name="domainModelAbsClases" value="{}"/>
    <globalVarDef name="domainModelAbsAndConcreateClases" value="{}"/>
  </component>
</workflow>


and my DeepTravelTemplate like;

«IMPORT ir»

«EXTENSION template::GeneratorExtension»

«DEFINE Root FOR ir::IModule»
   «FILE moduleName(name) + ".ecore"»<?xml version="1.0" encoding="UTF-8"?>
     ...
   «ENDFILE»
«ENDDEFINE»


my GeneratorExtension;

import ir;

extension metamodel::MetamodelExtension reexport;

moduleName(String name) :
	name.length > 0 ? name : 'unknown';
	
idName(String id) :
	id.split("_").last();
...


my MetamodelExtension like;

import ir;

List[String] domainModelAbsClases() : GLOBALVAR domainModelAbsClases;

List[String] domainModelAbsAndConcreateClases() : GLOBALVAR domainModelAbsAndConcreateClases;
...


and my command codes

IWorkspace workspace = ResourcesPlugin.getWorkspace();

File workspaceDirectory = workspace.getRoot().getLocation().toFile();
String[] fileDummyPath = firstElement.toString().split("/");
String filePathAfterWorkspace = "";
for (int i = 1; i < fileDummyPath.length; i++) {
	if (i == fileDummyPath.length - 2)
	      filePathAfterWorkspace += fileDummyPath[i];
	else if (i != fileDummyPath.length - 1)
	      filePathAfterWorkspace += fileDummyPath[i] + "/";
}
filePathAfterWorkspace = filePathAfterWorkspace.replace('/', '\\');
String workspacePath = workspaceDirectory.getAbsolutePath().toString();
		
String errorFromClafer = javaBean.XpandRunner.runClafer(workspacePath + "\\" + filePathAfterWorkspace.replaceAll("/", "\\") + "\\", fileDummyPath[fileDummyPath.length - 1].split("\\.")[0]);
        if (errorFromClafer.equals("")) {
	      try {
		   javaBean.XpandRunner.runClaferAfterXpandGenerator(workspacePath + "\\" + filePathAfterWorkspace.replaceAll("/", "\\") + "\\", fileDummyPath[fileDummyPath.length - 1].split("\\.")[0]);
              }
        }


my complete error from xpand;

00:47:46.974 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - Workflow interrupted. Reason: Couldn't find operation 'moduleName(String)' for ir::IModule.
00:47:46.975 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - [ERROR]: Couldn't find operation 'moduleName(String)' for ir::IModule.(Element: moduleName(name); Reported by: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication\clafer\src\)
00:47:46.975 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - [ERROR]: Couldn't find operation 'moduleName(String)' for ir::IModule.(Element: moduleName(name).+(".ecore"); Reported by: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication\clafer\src\)
00:47:46.975 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - [ERROR]: Couldn't find operation 'moduleName(String)' for ir::IModule.(Element: org.eclipse.internal.xpand2.ast.FileStatement@6f2f508; Reported by: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication\clafer\src\)
00:47:46.975 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - [ERROR]: Couldn't find operation 'moduleName(String)' for ir::IModule.(Element: Root : ir::IModule; Reported by: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication\clafer\src\)
00:47:46.975 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - [ERROR]: Couldn't find operation 'moduleName(String)' for ir::IModule.(Element: EXPAND template::DeepTravelTemplate::Root FOR model; Reported by: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication\clafer\src\)


I think Template and extensions correct there is another error but i can't get it.

And dont know how can i debug resourceImpl

I'd appreciate it if you could help me

Regards

[Updated on: Thu, 04 April 2013 08:48]

Report message to a moderator

Re: XPand .xpt File can't Recognize Extension Files on Runtime [message #1044871 is a reply to message #1033452] Fri, 19 April 2013 08:47 Go to previous message
serhat gezgin is currently offline serhat gezgin
Messages: 237
Registered: January 2013
Location: Izmir
Senior Member
and my stack trace is ;

00:47:04.597 [main] INFO  o.e.emf.mwe.core.WorkflowEngine - --------------------------------------------------------------------------------------
00:47:04.600 [main] INFO  o.e.emf.mwe.core.WorkflowEngine - EMF Modeling Workflow Engine 1.2.1, Build v201303191413
00:47:04.600 [main] INFO  o.e.emf.mwe.core.WorkflowEngine - (c) 2005-2009 openarchitectureware.org and contributors
00:47:04.600 [main] INFO  o.e.emf.mwe.core.WorkflowEngine - --------------------------------------------------------------------------------------
00:47:04.600 [main] INFO  o.e.emf.mwe.core.WorkflowEngine - running workflow: workflow/Workflow.mwe
00:47:04.600 [main] INFO  o.e.emf.mwe.core.WorkflowEngine - 
00:47:04.600 [main] DEBUG o.e.emf.mwe.core.WorkflowEngine - Params:{toPath=C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\, modelFile=C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\default.xml}
00:47:04.691 [main] INFO  o.e.x.typesystem.xsd.XSDMetaModel - Loading XSDSchema from 'metamodel/ir.xsd'
00:47:05.191 [main] INFO  o.e.x.t.x.builder.OawXSDEcoreBuilder - Creating EPackage 'ir' from XSDSchema 'bundleresource://941.fwk144050306/metamodel/ir.xsd' (http://clafer.org/ir)
00:47:05.215 [main] WARN  o.e.x.t.x.builder.OawXSDEcoreBuilder - Name Conflict: Created EClass 'EndType1', EClass 'EndType' is in the way. Container:/EPackage'ir'
00:47:05.215 [main] WARN  o.e.x.t.x.builder.OawXSDEcoreBuilder - Name Conflict: Created EClass 'PositionType1', EClass 'PositionType' is in the way. Container:/EPackage'ir'
00:47:05.216 [main] WARN  o.e.x.t.x.builder.OawXSDEcoreBuilder - Name Conflict: Created EClass 'StartType1', EClass 'StartType' is in the way. Container:/EPackage'ir'
00:47:05.239 [main] DEBUG o.e.e.m.c.c.CompositeComponent - Checking configuration of: XMLReader: Loading XML file C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\default.xml
00:47:05.240 [main] DEBUG o.e.e.m.c.c.CompositeComponent - Checking configuration of: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\
00:47:05.361 [main] INFO  o.e.e.m.c.c.CompositeComponent - XMLReader: Loading XML file C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\default.xml
00:47:08.108 [main] INFO  o.e.x.t.xsd.builder.OawEcoreBuilder - Already loaded EPackage requested. Namespace:http://clafer.org/ir
00:47:08.132 [main] INFO  o.e.e.m.c.c.CompositeComponent - Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\
00:47:08.709 [main] ERROR o.e.x.typesystem.xsd.XSDMetaModel - org.eclipse.internal.xtend.type.baseimpl.types.ObjectTypeImpl cannot be cast to org.eclipse.xtend.typesystem.ParameterizedType
java.lang.ClassCastException: org.eclipse.internal.xtend.type.baseimpl.types.ObjectTypeImpl cannot be cast to org.eclipse.xtend.typesystem.ParameterizedType
	at org.eclipse.xtend.expression.TypeSystemImpl.internalGetTypeForName(TypeSystemImpl.java:183) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl.getTypeForName(TypeSystemImpl.java:244) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl.getTypeForName(TypeSystemImpl.java:221) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel$1.createNew(EmfRegistryMetaModel.java:123) ~[org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel$1.createNew(EmfRegistryMetaModel.java:1) ~[org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.util.Cache.get(Cache.java:26) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel.getTypeForEClassifier(EmfRegistryMetaModel.java:356) [org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.xsd.XSDMetaModel.getTypeForEClassifier(XSDMetaModel.java:216) [org.eclipse.xtend.typesystem.xsd_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel.getKnownTypes(EmfRegistryMetaModel.java:337) [org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.xsd.XSDMetaModel.getKnownTypes(XSDMetaModel.java:176) [org.eclipse.xtend.typesystem.xsd_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel.getType(EmfRegistryMetaModel.java:303) [org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.xsd.XSDMetaModel.getType(XSDMetaModel.java:209) [org.eclipse.xtend.typesystem.xsd_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl$1.createNew(TypeSystemImpl.java:152) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl$1.get(TypeSystemImpl.java:142) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl$1.get(TypeSystemImpl.java:1) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl.getType(TypeSystemImpl.java:165) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.xsd.type.EFeatureMapTypeImpl.cacheBugExists(EFeatureMapTypeImpl.java:106) [org.eclipse.xtend.typesystem.xsd_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.xsd.type.EFeatureMapTypeImpl.<clinit>(EFeatureMapTypeImpl.java:47) [org.eclipse.xtend.typesystem.xsd_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.xsd.XSDMetaModel.getTypeForETypedElement(XSDMetaModel.java:231) [org.eclipse.xtend.typesystem.xsd_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EClassType.getContributedFeatures(EClassType.java:59) [org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.xsd.type.XMLEClassType.getContributedFeatures(XMLEClassType.java:100) [org.eclipse.xtend.typesystem.xsd_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.AbstractTypeImpl.getAllFeatures(AbstractTypeImpl.java:56) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.AbstractTypeImpl$1.createNew(AbstractTypeImpl.java:76) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.AbstractTypeImpl$1.createNew(AbstractTypeImpl.java:1) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.util.Cache.get(Cache.java:26) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.AbstractTypeImpl.getProperty(AbstractTypeImpl.java:81) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl.findProperty(TypeSystemImpl.java:90) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.ExecutionContextImpl.findProperty(ExecutionContextImpl.java:182) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.expression.ast.FeatureCall.evaluateInternal(FeatureCall.java:114) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.expression.ast.Expression.evaluate(Expression.java:51) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.expression.ast.OperationCall.evaluateInternal(OperationCall.java:70) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.expression.ast.Expression.evaluate(Expression.java:51) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.expression.ast.OperationCall.evaluateInternal(OperationCall.java:63) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.expression.ast.Expression.evaluate(Expression.java:51) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.FileStatement.getFilename(FileStatement.java:111) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.FileStatement.evaluateInternal(FileStatement.java:78) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:176) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:249) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:228) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java:335) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:232) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at org.eclipse.emf.mwe.core.container.CompositeComponent.internalInvoke(CompositeComponent.java:104) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at org.eclipse.emf.mwe.core.container.CompositeComponent.invoke(CompositeComponent.java:89) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at org.eclipse.emf.mwe.core.WorkflowEngine.executeWorkflow(WorkflowEngine.java:174) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at org.eclipse.emf.mwe.core.WorkflowEngine.run(WorkflowEngine.java:53) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:80) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at javaBean.XpandRunner.runClaferAfterXpandGenerator(XpandRunner.java:99) [com.unitbilisim.clafer2Ecore/:na]
	at clafereditor.handler.ConvertClaferHandler.createOutput(ConvertClaferHandler.java:52) [ClaferEditor/:na]
	at clafereditor.handler.ConvertClaferHandler.execute(ConvertClaferHandler.java:26) [ClaferEditor/:na]
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290) [org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar:na]
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76) [org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_01]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_01]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_01]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_01]
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) [org.eclipse.e4.core.di_1.2.0.v20121024-173149.jar:na]
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231) [org.eclipse.e4.core.di_1.2.0.v20121024-173149.jar:na]
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212) [org.eclipse.e4.core.di_1.2.0.v20121024-173149.jar:na]
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131) [org.eclipse.e4.core.contexts_1.2.0.v20121221-192508.jar:na]
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171) [org.eclipse.e4.core.commands_0.10.1.v20120523-1955.jar:na]
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:831) [org.eclipse.e4.ui.workbench.renderers.swt_0.10.3.v20130124-170312.jar:na]
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:724) [org.eclipse.e4.ui.workbench.renderers.swt_0.10.3.v20130124-170312.jar:na]
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:708) [org.eclipse.e4.ui.workbench.renderers.swt_0.10.3.v20130124-170312.jar:na]
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:647) [org.eclipse.e4.ui.workbench.renderers.swt_0.10.3.v20130124-170312.jar:na]
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) [org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar:na]
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) [org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar:na]
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169) [org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar:na]
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758) [org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar:na]
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053) [org.eclipse.e4.ui.workbench.swt_0.10.3.v20130124-133900.jar:na]
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) [org.eclipse.core.databinding.observable_1.4.1.v20120521-2329.jar:na]
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942) [org.eclipse.e4.ui.workbench.swt_0.10.3.v20130124-133900.jar:na]
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) [org.eclipse.e4.ui.workbench_0.11.0.v20130125-100758.jar:na]
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) [org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar:na]
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) [org.eclipse.core.databinding.observable_1.4.1.v20120521-2329.jar:na]
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) [org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar:na]
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) [org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar:na]
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) [org.eclipse.ui.ide.application_1.0.400.v20120523-1955.jar:na]
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) [org.eclipse.equinox.app_1.3.100.v20120522-1841.jar:na]
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_01]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_01]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_01]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_01]
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) [org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar:na]
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) [org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar:na]
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438) [org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar:na]
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414) [org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar:na]
00:47:09.114 [main] ERROR o.e.x.typesystem.xsd.XSDMetaModel - org.eclipse.internal.xtend.type.baseimpl.types.ObjectTypeImpl cannot be cast to org.eclipse.xtend.typesystem.ParameterizedType
java.lang.ClassCastException: org.eclipse.internal.xtend.type.baseimpl.types.ObjectTypeImpl cannot be cast to org.eclipse.xtend.typesystem.ParameterizedType
	at org.eclipse.xtend.expression.TypeSystemImpl.internalGetTypeForName(TypeSystemImpl.java:183) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl.getTypeForName(TypeSystemImpl.java:244) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl.getTypeForName(TypeSystemImpl.java:221) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel$1.createNew(EmfRegistryMetaModel.java:123) ~[org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel$1.createNew(EmfRegistryMetaModel.java:1) ~[org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.util.Cache.get(Cache.java:26) ~[org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel.getTypeForEClassifier(EmfRegistryMetaModel.java:356) [org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.xsd.XSDMetaModel.getTypeForEClassifier(XSDMetaModel.java:216) [org.eclipse.xtend.typesystem.xsd_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel.getKnownTypes(EmfRegistryMetaModel.java:337) [org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.xsd.XSDMetaModel.getKnownTypes(XSDMetaModel.java:176) [org.eclipse.xtend.typesystem.xsd_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel.getType(EmfRegistryMetaModel.java:303) [org.eclipse.xtend.typesystem.emf_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.typesystem.xsd.XSDMetaModel.getType(XSDMetaModel.java:209) [org.eclipse.xtend.typesystem.xsd_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl$1.createNew(TypeSystemImpl.java:152) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl$1.createNew(TypeSystemImpl.java:1) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.util.WeakCache.get(WeakCache.java:25) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl$1.get(TypeSystemImpl.java:144) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl$1.get(TypeSystemImpl.java:1) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.TypeSystemImpl.getType(TypeSystemImpl.java:165) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.ExecutionContextImpl.getType(ExecutionContextImpl.java:246) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.ExecutionContextImpl.getExtension(ExecutionContextImpl.java:379) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.expression.ast.OperationCall.evaluateInternal(OperationCall.java:76) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.expression.ast.Expression.evaluate(Expression.java:51) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.expression.ast.OperationCall.evaluateInternal(OperationCall.java:63) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xtend.expression.ast.Expression.evaluate(Expression.java:51) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.FileStatement.getFilename(FileStatement.java:111) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.FileStatement.evaluateInternal(FileStatement.java:78) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:176) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:249) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:228) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java:335) [org.eclipse.xpand_1.3.0.v201302260541.jar:na]
	at org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:232) [org.eclipse.xtend_1.3.0.v201302260541.jar:na]
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at org.eclipse.emf.mwe.core.container.CompositeComponent.internalInvoke(CompositeComponent.java:104) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at org.eclipse.emf.mwe.core.container.CompositeComponent.invoke(CompositeComponent.java:89) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at org.eclipse.emf.mwe.core.WorkflowEngine.executeWorkflow(WorkflowEngine.java:174) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at org.eclipse.emf.mwe.core.WorkflowEngine.run(WorkflowEngine.java:53) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:80) [org.eclipse.emf.mwe.core_1.2.1.v201303191413.jar:na]
	at javaBean.XpandRunner.runClaferAfterXpandGenerator(XpandRunner.java:99) [com.unitbilisim.clafer2Ecore/:na]
	at clafereditor.handler.ConvertClaferHandler.createOutput(ConvertClaferHandler.java:52) [ClaferEditor/:na]
	at clafereditor.handler.ConvertClaferHandler.execute(ConvertClaferHandler.java:26) [ClaferEditor/:na]
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290) [org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar:na]
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76) [org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_01]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_01]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_01]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_01]
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) [org.eclipse.e4.core.di_1.2.0.v20121024-173149.jar:na]
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231) [org.eclipse.e4.core.di_1.2.0.v20121024-173149.jar:na]
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212) [org.eclipse.e4.core.di_1.2.0.v20121024-173149.jar:na]
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131) [org.eclipse.e4.core.contexts_1.2.0.v20121221-192508.jar:na]
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171) [org.eclipse.e4.core.commands_0.10.1.v20120523-1955.jar:na]
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:831) [org.eclipse.e4.ui.workbench.renderers.swt_0.10.3.v20130124-170312.jar:na]
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:724) [org.eclipse.e4.ui.workbench.renderers.swt_0.10.3.v20130124-170312.jar:na]
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:708) [org.eclipse.e4.ui.workbench.renderers.swt_0.10.3.v20130124-170312.jar:na]
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:647) [org.eclipse.e4.ui.workbench.renderers.swt_0.10.3.v20130124-170312.jar:na]
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) [org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar:na]
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) [org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar:na]
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169) [org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar:na]
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758) [org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar:na]
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053) [org.eclipse.e4.ui.workbench.swt_0.10.3.v20130124-133900.jar:na]
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) [org.eclipse.core.databinding.observable_1.4.1.v20120521-2329.jar:na]
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942) [org.eclipse.e4.ui.workbench.swt_0.10.3.v20130124-133900.jar:na]
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) [org.eclipse.e4.ui.workbench_0.11.0.v20130125-100758.jar:na]
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) [org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar:na]
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) [org.eclipse.core.databinding.observable_1.4.1.v20120521-2329.jar:na]
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) [org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar:na]
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) [org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar:na]
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) [org.eclipse.ui.ide.application_1.0.400.v20120523-1955.jar:na]
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) [org.eclipse.equinox.app_1.3.100.v20120522-1841.jar:na]
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_01]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_01]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_01]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_01]
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) [org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar:na]
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) [org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar:na]
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438) [org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar:na]
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414) [org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar:na]
00:47:09.133 [main] ERROR org.eclipse.xpand2.Generator - Error in Component  of type org.eclipse.xpand2.Generator: 
	EvaluationException : Couldn't find operation 'moduleName(String)' for ir::IModule.
	template::DeepTravelTemplate.xpt[97,16] on line 6 'moduleName(name)'   
	[23,51] on line 1 'EXPAND template::DeepTravelTemplate::Root FOR model'

00:47:09.133 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - Workflow interrupted. Reason: Couldn't find operation 'moduleName(String)' for ir::IModule.
00:47:09.133 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - [ERROR]: Couldn't find operation 'moduleName(String)' for ir::IModule.(Element: moduleName(name); Reported by: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\)
00:47:09.133 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - [ERROR]: Couldn't find operation 'moduleName(String)' for ir::IModule.(Element: moduleName(name).+(".ecore"); Reported by: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\)
00:47:09.134 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - [ERROR]: Couldn't find operation 'moduleName(String)' for ir::IModule.(Element: org.eclipse.internal.xpand2.ast.FileStatement@39e96a08; Reported by: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\)
00:47:09.134 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - [ERROR]: Couldn't find operation 'moduleName(String)' for ir::IModule.(Element: Root : ir::IModule; Reported by: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\)
00:47:09.134 [main] ERROR o.e.emf.mwe.core.WorkflowEngine - [ERROR]: Couldn't find operation 'moduleName(String)' for ir::IModule.(Element: EXPAND template::DeepTravelTemplate::Root FOR model; Reported by: Generator: generating 'template::DeepTravelTemplate::Root FOR model' => C:\Users\unituser\runtime-EclipseApplication(1)\xpand\src\)
Previous Topic:[Xpand/Xtend] Extension problem
Next Topic:[Acceleo] Java Services classpath
Goto Forum:
  


Current Time: Fri Aug 22 17:53:09 EDT 2014

Powered by FUDForum. Page generated in 0.01868 seconds