Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [workflow] run workflow error(error on run workflow)
[workflow] run workflow error [message #771118] Mon, 26 December 2011 11:08 Go to next message
luca loda is currently offline luca lodaFriend
Messages: 8
Registered: December 2011
Junior Member
I try to run the my workflow file with e mwe workflow configuration but when launch in the console appear this:

Quote:
26-dic-2011 11.54.24 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
26-dic-2011 11.54.25 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
26-dic-2011 11.54.25 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
26-dic-2011 11.54.25 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
26-dic-2011 11.54.25 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow: C:/Users/Luca/Desktop/dsltk/workspace/GeneratedRounded - Copia (2)/org.eclipse.dsl.mindmap/model/mindmap2csv.mwe
26-dic-2011 11.54.25 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
26-dic-2011 11.54.25 org.eclipse.emf.mwe.internal.core.ast.parser.WorkflowParser parse
GRAVE: Invalid byte 1 of 1-byte UTF-8 sequence.
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.startOfMarkup(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.emf.mwe.internal.core.ast.parser.WorkflowParser.parse(WorkflowParser.java:77)
at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseAndInitialize(WorkflowFactory.java:101)
at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseInitAndCreate(WorkflowFactory.java:55)
at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseInitAndCreate(WorkflowFactory.java:49)
at org.eclipse.emf.mwe.core.WorkflowRunner.prepare(WorkflowRunner.java:331)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:289)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner.java:239)
26-dic-2011 11.54.25 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Invalid byte 1 of 1-byte UTF-8 sequence.(Element: C:/Users/Luca/Desktop/dsltk/workspace/GeneratedRounded - Copia (2)/org.eclipse.dsl.mindmap/model/mindmap2csv.mwe; Reported by: -UNKNOWN-)
26-dic-2011 11.54.25 org.eclipse.emf.mwe.core.WorkflowRunner prepare
GRAVE: Workflow interrupted because of configuration errors.


this is my workflow file (mindmap2csv.mwe):
<?xml version="1.0" encoding="utf-8"?>
<workflow>
	<property name="model" value="platform:/resource/org.eclipse.dsl.mindmap/model/Mindmap.xmi"/>
	<property name="out" value="out" />
	<!-- set up EMF for standalone execution -->
	<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
		<platformUri value="../" />
		<RegisterEcoreFile value="platform:/resource/org.eclipse.dsl.mindmap/model/mindmap.ecore"/>
	</bean>
	<component class="org.eclipse.emf.mwe.utils.Reader">
		<uri value="${model}" />
		<modelSlot value="model" />
	</component>
	<!-- generate code -->
	<component class="org.eclipse.xpand2.Generator">
		<fileEncoding value="utf-8"/>
		<metaModel id="mm" class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel"/>
		<expand value="x::Main FOR Map" />
		<outlet path="${out}"/>
	</component>
</workflow>


and this is my xpt file (x.xpt):
«IMPORT mindmap»

«DEFINE Main FOR Map»
«FILE (Title == null ? "map" : Title) + ".csv"-»
«FOREACH elements.typeSelect(mindmap::Topic) AS topic-»
«topic.name»
«ENDFOREACH»
«ENDFILE»
«ENDDEFINE»


both file are in the model folder.

Re: [workflow] run workflow error [message #772199 is a reply to message #771118] Thu, 29 December 2011 08:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Hi,

i guess your workflow file has a wrong encoding setup
so create a new file (ensure it is utf-8)
and put your workflow stuff into it
and retry

~Christian
Re: [workflow] run workflow error [message #772664 is a reply to message #772199] Fri, 30 December 2011 10:15 Go to previous messageGo to next message
luca loda is currently offline luca lodaFriend
Messages: 8
Registered: December 2011
Junior Member
Thanks for you reply.
I set the utf-8 encoding in the property of run configuration and the first problem disappears,
but now when i try to run appear this problem in console:

Quote:
30-dic-2011 11.14.32 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
30-dic-2011 11.14.32 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
30-dic-2011 11.14.32 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
30-dic-2011 11.14.32 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
30-dic-2011 11.14.32 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow: C:/Users/Luca/Desktop/dsltk/workspace/GeneratedRounded - Copia (2)/org.eclipse.dsl.mindmap/model/mindmap2csv.mwe
30-dic-2011 11.14.32 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
30-dic-2011 11.14.32 org.eclipse.emf.mwe.utils.StandaloneSetup setPlatformUri
INFO: Registering platform uri 'C:\Users\Luca\Desktop\dsltk\workspace\GeneratedRounded - Copia (2)'
30-dic-2011 11.14.33 org.eclipse.emf.mwe.utils.StandaloneSetup addRegisterEcoreFile
INFO: Adding dynamic EPackage 'http: //www.eclipse.org/2008/mindmap' from 'platform:/resource/org.eclipse.dsl.mindmap/model/mindmap.ecore'
30-dic-2011 11.14.33 org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: Reader: Loading model from platform:/resource/org.eclipse.dsl.mindmap/model/Mindmap.xmi
30-dic-2011 11.14.33 org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: Generator: generating 'x::Main FOR model' => out
30-dic-2011 11.14.33 org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent invokeInternal
GRAVE: Error in Component of type org.eclipse.xpand2.Generator:
EvaluationException : No Definition 'x::Main for mindmap::Map' found!
[23,24] on line 1 'EXPAND x::Main FOR model'

30-dic-2011 11.14.33 org.eclipse.emf.mwe.core.WorkflowRunner executeWorkflow
GRAVE: Workflow interrupted. Reason: No Definition 'x::Main for mindmap::Map' found!
30-dic-2011 11.14.33 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: No Definition 'x::Main for mindmap::Map' found!(Element: EXPAND x::Main FOR model; Reported by: Generator: generating 'x::Main FOR model' => out)

Re: [workflow] run workflow error [message #772667 is a reply to message #772664] Fri, 30 December 2011 10:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Hi,

there is a speaking error message so how does your template and its folder structure look like?
btw your call <expand value="x::Main FOR Map" /> looks strange to
me i think it should be <expand value="x::Main FOR model" />

~Christian
Re: [workflow] run workflow error [message #772674 is a reply to message #772667] Fri, 30 December 2011 10:38 Go to previous messageGo to next message
luca loda is currently offline luca lodaFriend
Messages: 8
Registered: December 2011
Junior Member
Yes, sorry I had already changed <expand value="x::Main FOR Map" /> to <expand value="x::Main FOR model" /> before.
The error in the console is the same as before:

Quote:
30-dic-2011 11.28.23 org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent invokeInternal
GRAVE: Error in Component of type org.eclipse.xpand2.Generator:
EvaluationException : No Definition 'x::Main for mindmap::Map' found!
[23,24] on line 1 'EXPAND x::Main FOR model'

30-dic-2011 11.28.23 org.eclipse.emf.mwe.core.WorkflowRunner executeWorkflow
GRAVE: Workflow interrupted. Reason: No Definition 'x::Main for mindmap::Map' found!
30-dic-2011 11.28.23 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: No Definition 'x::Main for mindmap::Map' found!(Element: EXPAND x::Main FOR model; Reported by: Generator: generating 'x::Main FOR model' => out)


Re: [workflow] run workflow error [message #772676 is a reply to message #772674] Fri, 30 December 2011 10:41 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
the error message says:

i cannot find a file x.xpt in the default package) with a definition <<DEFINE Main FOR mindmap::Map>>
Re: [workflow] run workflow error [message #772679 is a reply to message #772676] Fri, 30 December 2011 10:52 Go to previous messageGo to next message
luca loda is currently offline luca lodaFriend
Messages: 8
Registered: December 2011
Junior Member
the error does not disappear.
the x.xpt is:
«IMPORT mindmap»

«DEFINE Main FOR mindmap::Map»
«FILE (Title == null ? "map" : Title) + ".csv"-»
«FOREACH elements.typeSelect(mindmap::Topic) AS topic-»
«topic.name»
«ENDFOREACH»
«ENDFILE»
«ENDDEFINE»


is right?
Re: [workflow] run workflow error [message #772681 is a reply to message #772679] Fri, 30 December 2011 10:55 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
where is x.xpt
Re: [workflow] run workflow error [message #772684 is a reply to message #772681] Fri, 30 December 2011 11:01 Go to previous messageGo to next message
luca loda is currently offline luca lodaFriend
Messages: 8
Registered: December 2011
Junior Member
in the model folder with mindmap.ecore, mindmap.ecore_diagram, mindmap.genmodel, Mindmap.xmi and mindmap2csv.mwe.

Re: [workflow] run workflow error [message #772687 is a reply to message #772684] Fri, 30 December 2011 11:06 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Hi,

you have to place it in the/a src folder

~Christian
Re: [workflow] run workflow error [message #772692 is a reply to message #772687] Fri, 30 December 2011 11:20 Go to previous messageGo to next message
luca loda is currently offline luca lodaFriend
Messages: 8
Registered: December 2011
Junior Member
I moved the x.xpt in the src folder and I run the MWE but now in console appear:

Quote:
30-dic-2011 12.18.53 org.eclipse.emf.mwe.core.WorkflowRunner executeWorkflow
GRAVE: no viable alternative at character '�' on line 1
org.eclipse.internal.xtend.xtend.parser.ParseException: no viable alternative at character '�' on line 1
at org.eclipse.internal.xpand2.parser.XpandParseFacade$3.handleError(XpandParseFacade.java:77)
at org.eclipse.internal.xpand2.parser.XpandParseFacade$1.reportError(XpandParseFacade.java:57)
at org.antlr.runtime.Lexer.nextToken(Lexer.java:119)
at org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:95)
at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:238)
at org.eclipse.internal.xpand2.parser.XpandLocationAddingParser.start(XpandLocationAddingParser.java:43)
at org.eclipse.internal.xpand2.parser.XpandLocationAddingParser.template(XpandLocationAddingParser.java:289)
at org.eclipse.internal.xpand2.parser.XpandParseFacade.file(XpandParseFacade.java:44)
at org.eclipse.internal.xpand2.parser.XpandParseFacade.file(XpandParseFacade.java:31)
at org.eclipse.xpand2.XpandExecutionContextImpl$1.parse(XpandExecutionContextImpl.java:92)
at org.eclipse.xtend.expression.ResourceManagerDefaultImpl.loadResource(ResourceManagerDefaultImpl.java:70)
at org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(XpandExecutionContextImpl.java:193)
at org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(XpandExecutionContextImpl.java:186)
at org.eclipse.xpand2.XpandExecutionContextImpl.findDefinition(XpandExecutionContextImpl.java:145)
at org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:174)
at org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:167)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:39)
at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java:334)
at org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:191)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:118)
at org.eclipse.emf.mwe.core.container.CompositeComponent.internalInvoke(CompositeComponent.java:101)
at org.eclipse.emf.mwe.core.container.CompositeComponent.invoke(CompositeComponent.java:86)
at org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(WorkflowRunner.java:412)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:292)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner.java:239)
30-dic-2011 12.18.53 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: no viable alternative at character '�' on line 1(Element: EXPAND x::Main FOR model; Reported by: Generator: generating 'x::Main FOR model' => out)


really thanks for the help that is giving me!!
Re: [workflow] run workflow error [message #772701 is a reply to message #772692] Fri, 30 December 2011 11:34 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
encoding encoding encoding. so fix the encoding of the xpt file
Re: [workflow] run workflow error [message #772732 is a reply to message #772701] Fri, 30 December 2011 13:07 Go to previous messageGo to next message
luca loda is currently offline luca lodaFriend
Messages: 8
Registered: December 2011
Junior Member
and how is it done? I can't remove the error..
Re: [workflow] run workflow error [message #772737 is a reply to message #772732] Fri, 30 December 2011 13:19 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
http://www.eclipse.org/forums/index.php/m/756779/
Re: [workflow] run workflow error [message #772758 is a reply to message #772737] Fri, 30 December 2011 14:05 Go to previous messageGo to next message
luca loda is currently offline luca lodaFriend
Messages: 8
Registered: December 2011
Junior Member
thanks !!
the last things, I set the utf-8 in workspace encodind text, and when run:

Quote:
30-dic-2011 15.02.30 org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: Generator: generating 'x::Main FOR model' => out
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/icu/text/NumberFormat
at org.eclipse.internal.xtend.util.StringHelper.<clinit>(StringHelper.java:26)
at org.eclipse.xtend.typesystem.emf.EClassType.getContributedFeatures(EClassType.java:143)
at org.eclipse.xtend.typesystem.AbstractTypeImpl.getAllFeatures(AbstractTypeImpl.java:57)
at org.eclipse.xtend.typesystem.AbstractTypeImpl$1.createNew(AbstractTypeImpl.java:79)
at org.eclipse.xtend.typesystem.AbstractTypeImpl$1.createNew(AbstractTypeImpl.java:1)
at org.eclipse.internal.xtend.util.Cache.get(Cache.java:26)
at org.eclipse.xtend.typesystem.AbstractTypeImpl.getProperty(AbstractTypeImpl.java:84)
at org.eclipse.xtend.expression.TypeSystemImpl.findProperty(TypeSystemImpl.java:81)
at org.eclipse.xtend.expression.ExecutionContextImpl.findProperty(ExecutionContextImpl.java:150)
at org.eclipse.internal.xtend.expression.ast.FeatureCall.evaluateInternal(FeatureCall.java:114)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluate(Expression.java:48)
at org.eclipse.internal.xtend.expression.ast.OperationCall.evaluateInternal(OperationCall.java:60)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluate(Expression.java:48)
at org.eclipse.internal.xtend.expression.ast.IfExpression.evaluateInternal(IfExpression.java:55)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluate(Expression.java:48)
at org.eclipse.internal.xtend.expression.ast.OperationCall.evaluateInternal(OperationCall.java:60)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluate(Expression.java:48)
at org.eclipse.internal.xpand2.ast.FileStatement.getFilename(FileStatement.java:99)
at org.eclipse.internal.xpand2.ast.FileStatement.evaluateInternal(FileStatement.java:75)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:39)
at org.eclipse.internal.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:175)
at org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:195)
at org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:167)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:39)
at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java:334)
at org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:191)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:118)
at org.eclipse.emf.mwe.core.container.CompositeComponent.internalInvoke(CompositeComponent.java:101)
at org.eclipse.emf.mwe.core.container.CompositeComponent.invoke(CompositeComponent.java:86)
at org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(WorkflowRunner.java:412)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:292)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner.java:239)
Caused by: java.lang.ClassNotFoundException: com.ibm.icu.text.NumberFormat
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 32 more
Re: [workflow] run workflow error [message #772768 is a reply to message #772758] Fri, 30 December 2011 14:28 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
I am Not gonna answer this
Previous Topic:[Acceleo] disable java starter generation.
Next Topic:Xpand: avoid duplicates?
Goto Forum:
  


Current Time: Fri Dec 19 21:17:38 GMT 2014

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

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