Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Problems running sample XPand code
icon9.gif  Problems running sample XPand code [message #489504] Sun, 04 October 2009 04:35 Go to next message
Kalyan  is currently offline Kalyan
Messages: 6
Registered: July 2009
Junior Member
Hi,
I have started a new XPand project and use generate sample code option. After the project is created, I tried to run the MWE workflow and I got the following errors.
This is the first time I am trying this out. So, looking forward for some help.
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: Class not found: 'org.eclipse.mwe.emf.StandaloneSetup'(Element: bean bean class='org.eclipse.mwe.emf.StandaloneSetup' in D:/Kalyan/Eclipse WorkSpaces/com.example.webservices/src/workflow/generator.mw e:7; Reported by: -UNKNOWN-)
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No getter or adder method for property 'platformUri' in clazz 'java.lang.Object' found.(Element: platformUri='..' in D:/Kalyan/Eclipse WorkSpaces/com.example.webservices/src/workflow/generator.mw e:8; Reported by: -UNKNOWN-)
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: Class not found: 'org.eclipse.mwe.emf.Reader'(Element: bean component class='org.eclipse.mwe.emf.Reader' in D:/Kalyan/Eclipse WorkSpaces/com.example.webservices/src/workflow/generator.mw e:12; Reported by: -UNKNOWN-)
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No getter or adder method for property 'uri' in clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element: uri='platform:/resource/com.nsn.webservices/src/Model.xmi' in D:/Kalyan/Eclipse WorkSpaces/com.example.webservices/src/workflow/generator.mw e:13; Reported by: -UNKNOWN-)
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No getter or adder method for property 'modelSlot' in clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element: modelSlot='model' in D:/Kalyan/Eclipse WorkSpaces/com.example.webservices/src/workflow/generator.mw e:14; Reported by: -UNKNOWN-)
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: Class not found: 'org.eclipse.m2t.type.emf.EmfRegistryMetaModel'(Element: bean metaModel class='org.eclipse.m2t.type.emf.EmfRegistryMetaModel' id='mm' in D:/Kalyan/Eclipse WorkSpaces/com.example.webservices/src/workflow/generator.mw e:20; Reported by: -UNKNOWN-)
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: Class not found: 'org.eclipse.xtend.xpand2.Generator'(Element: bean component class='org.eclipse.xtend.xpand2.Generator' in D:/Kalyan/Eclipse WorkSpaces/com.example.webservices/src/workflow/generator.mw e:26; Reported by: -UNKNOWN-)
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No setter or adder method for property 'metaModel' in clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found(Element: <metaModel idRef='mm'/> in D:/Kalyan/Eclipse WorkSpaces/com.example.webservices/src/workflow/generator.mw e:27; Reported by: -UNKNOWN-)
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No getter or adder method for property 'expand' in clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element: expand='template::Template::main FOR model' in D:/Kalyan/Eclipse WorkSpaces/com.example.webservices/com.nsn.webservices/src/w orkflow/generator.mwe:29; Reported by: -UNKNOWN-)
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No getter or adder method for property 'outlet' in clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found. Forgot to customize?(Element: bean outlet in D:/Kalyan/Eclipse WorkSpaces/com.example.webservices/src/workflow/generator.mw e:30; Reported by: -UNKNOWN-)
Oct 4, 2009 1:57:06 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
SEVERE: Workflow interrupted because of configuration errors.
Thanks & Regards
Kalyan
Re: Problems running sample XPand code [message #489512 is a reply to message #489504] Sun, 04 October 2009 06:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6142
Registered: July 2009
Senior Member
hi, this seems to be a bug in the wizard

if you modify the workflow like this

<?xml version="1.0"?>
<workflow>
	<property name="model" value="my.generator.projectxxx/src/Model.xmi" />
	<property name="src-gen" value="src-gen" />
	
	<!-- set up EMF for standalone execution -->
	<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
		<platformUri value=".."/>
	</bean>

	<!-- load model and store it in slot 'model' -->
	<component class="org.eclipse.emf.mwe.utils.Reader">
		<uri value="platform:/resource/${model}" />
		<modelSlot value="model" />
	</component>

	<!-- check model -->
	<component class="org.eclipse.xtend.check.CheckComponent">
		<metaModel id="mm"
			class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel"/>
		<checkFile value="metamodel::Checks" />
		<emfAllChildrenSlot value="model" />
	</component>

	<!--  generate code -->
	<component class="org.eclipse.xpand2.Generator">
		<metaModel idRef="mm"/>
		<expand
			value="template::Template::main FOR model" />
		<outlet path="${src-gen}" >
			<postprocessor class="org.eclipse.xpand2.output.JavaBeautifier" />
		</outlet>
	</component>
</workflow>


and theplugin dependencies like this

org.eclipse.xpand,
 org.eclipse.xtend,
 org.eclipse.xtend.typesystem.emf,
 org.eclipse.emf.mwe.utils;bundle-version="0.7.2",
 org.eclipse.emf.ecore.xmi;bundle-version="2.5.0",
 org.eclipse.jface.text;bundle-version="3.5.0",
 org.antlr.runtime;bundle-version="3.0.0",
 com.ibm.icu;bundle-version="4.0.1",
 org.eclipse.core.runtime;bundle-version="3.5.0",
 org.eclipse.jdt.core;bundle-version="3.5.0"


the sample should work.

this the the corresponding bugzilla entry https://bugs.eclipse.org/bugs/show_bug.cgi?id=283942

[Updated on: Sun, 04 October 2009 06:51]

Report message to a moderator

icon10.gif  Re: Problems running sample XPand code [message #489531 is a reply to message #489504] Sun, 04 October 2009 11:11 Go to previous message
Kalyan  is currently offline Kalyan
Messages: 6
Registered: July 2009
Junior Member
Hi Christian Dietrich,

Thanks for your support. It helped me.

Regards
Kalyan

Previous Topic:I need help
Next Topic:jetc fails for multiple templates
Goto Forum:
  


Current Time: Wed Jul 30 05:09:36 EDT 2014

Powered by FUDForum. Page generated in 0.02041 seconds