Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » xPand strange Problem
xPand strange Problem [message #685719] Sat, 18 June 2011 09:32 Go to next message
st oehm is currently offline st oehm
Messages: 79
Registered: October 2009
Member
hi to all

i get a strange exception when i want to run my workflow (which runs very well yesterday) see below

23791 ERROR AbstractExpressionsUsingWorkflowComponent - mismatched input '<EOF>' expecting ';' on line 0
org.eclipse.internal.xtend.xtend.parser.ParseException: mismatched input '<EOF>' expecting ';' on line 0
at org.eclipse.internal.xtend.xtend.parser.ParseFacade$3.handleError(ParseFacade.java:104)
at org.eclipse.internal.xtend.xtend.parser.ParseFacade$2.reportError(ParseFacade.java:92)
at org.eclipse.internal.xtend.xtend.parser.XtendParser.extension(XtendParser.java:1126)
at org.eclipse.internal.xtend.xtend.parser.XtendLocationAddingParser.extension(XtendLocationAddingParser.java:46)
at org.eclipse.internal.xtend.xtend.parser.XtendParser.file(XtendParser.java:200)
at org.eclipse.internal.xtend.xtend.parser.XtendLocationAddingParser.file(XtendLocationAddingParser.java:211)
at org.eclipse.internal.xtend.xtend.parser.ParseFacade.file(ParseFacade.java:70)
at org.eclipse.internal.xtend.xtend.parser.ParseFacade.file(ParseFacade.java:55)
at org.eclipse.internal.xtend.xtend.parser.ParseFacade.file(ParseFacade.java:50)
at org.eclipse.internal.xtend.xtend.XtendResourceParser.parse(XtendResourceParser.java:25)
at org.eclipse.xtend.expression.ResourceManagerDefaultImpl.loadResource(ResourceManagerDefaultImpl.java:70)
at org.eclipse.xtend.expression.ExecutionContextImpl.internalAllExtensions(ExecutionContextImpl.java:326)
at org.eclipse.xtend.expression.ExecutionContextImpl.access$0(ExecutionContextImpl.java:310)
at org.eclipse.xtend.expression.ExecutionContextImpl$1.createNew(ExecutionContextImpl.java:347)
at org.eclipse.xtend.expression.ExecutionContextImpl$1.createNew(ExecutionContextImpl.java:1)
at org.eclipse.internal.xtend.util.Cache.get(Cache.java:26)
at org.eclipse.xtend.expression.ExecutionContextImpl.getExtensionForTypes(ExecutionContextImpl.java:352)
at org.eclipse.xtend.expression.ExecutionContextImpl.getExtension(ExecutionContextImpl.java:361)
at org.eclipse.internal.xtend.expression.ast.OperationCall.evaluateInternal(OperationCall.java:100)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluate(Expression.java:50)
at org.eclipse.internal.xpand2.ast.ExpressionStatement.evaluateInternal(ExpressionStatement.java:45)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41)
at org.eclipse.internal.xpand2.ast.ForEachStatement.evaluateInternal(ForEachStatement.java:121)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41)
at org.eclipse.internal.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:180)
at org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:246)
at org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:226)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41)
at org.eclipse.internal.xpand2.ast.FileStatement.evaluateInternal(FileStatement.java:86)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41)
at org.eclipse.internal.xpand2.ast.ForEachStatement.evaluateInternal(ForEachStatement.java:121)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41)
at org.eclipse.internal.xpand2.ast.LetStatement.evaluateInternal(LetStatement.java:66)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41)
at org.eclipse.internal.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:180)
at org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:246)
at org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:226)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41)
at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java:333)
at org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:239)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
at org.eclipse.emf.mwe.core.container.CompositeComponent.internalInvoke(CompositeComponent.java:104)
at org.eclipse.emf.mwe.core.container.CompositeComponent.invoke(CompositeComponent.java:89)
at org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(WorkflowRunner.java:408)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:293)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner.java:241)
23791 ERROR AbstractExpressionsUsingWorkflowComponent - Error in Component generator of type org.eclipse.xpand2.Generator:
EvaluationException : mismatched input '<EOF>' expecting ';' on line 0
templateMiddle::classContent.xpt[311,18] on line 11 'a.createComments()'
templateMiddle::Template.xpt[540,39] on line 17 'EXPAND classContent::classContent FOR c'
[23,47] on line 1 'EXPAND templateMiddle::Template::main FOR model'

23791 ERROR WorkflowRunner - Workflow interrupted. Reason: mismatched input '<EOF>' expecting ';' on line 0
23822 ERROR WorkflowRunner - [ERROR]: mismatched input '<EOF>' expecting ';' on line 0(Element: a.createComments(); Reported by: Generator(generator): generating 'templateMiddle::Template::main FOR model' => C:/Users/s1stmatt/Downloads/workspace/masterarbeit/src-gen)
23822 ERROR WorkflowRunner - [ERROR]: mismatched input '<EOF>' expecting ';' on line 0(Element: EXPRESSION: a.createComments(); Reported by: Generator(generator): generating 'templateMiddle::Template::main FOR model' => C:/Users/s1stmatt/Downloads/workspace/masterarbeit/src-gen)
23822 ERROR WorkflowRunner - [ERROR]: mismatched input '<EOF>' expecting ';' on line 0(Element: org.eclipse.internal.xpand2.ast.ForEachStatement@1d308def; Reported by: Generator(generator): generating 'templateMiddle::Template::main FOR model' => C:/Users/s1stmatt/Downloads/workspace/masterarbeit/src-gen)
23822 ERROR WorkflowRunner - [ERROR]: mismatched input '<EOF>' expecting ';' on line 0(Element: classContent : Class; Reported by: Generator(generator): generating 'templateMiddle::Template::main FOR model' => C:/Users/s1stmatt/Downloads/workspace/masterarbeit/src-gen)
23822 ERROR WorkflowRunner - [ERROR]: mismatched input '<EOF>' expecting ';' on line 0(Element: EXPAND classContent::classContent FOR c; Reported by: Generator(generator): generating 'templateMiddle::Template::main FOR model' => C:/Users/s1stmatt/Downloads/workspace/masterarbeit/src-gen)
23822 ERROR WorkflowRunner - [ERROR]: mismatched input '<EOF>' expecting ';' on line 0(Element: org.eclipse.internal.xpand2.ast.FileStatement@5eb654e1; Reported by: Generator(generator): generating 'templateMiddle::Template::main FOR model' => C:/Users/s1stmatt/Downloads/workspace/masterarbeit/src-gen)
23822 ERROR WorkflowRunner - [ERROR]: mismatched input '<EOF>' expecting ';' on line 0(Element: org.eclipse.internal.xpand2.ast.ForEachStatement@147eb05b; Reported by: Generator(generator): generating 'templateMiddle::Template::main FOR model' => C:/Users/s1stmatt/Downloads/workspace/masterarbeit/src-gen)
23822 ERROR WorkflowRunner - [ERROR]: mismatched input '<EOF>' expecting ';' on line 0(Element: org.eclipse.internal.xpand2.ast.LetStatement@7659cef5; Reported by: Generator(generator): generating 'templateMiddle::Template::main FOR model' => C:/Users/s1stmatt/Downloads/workspace/masterarbeit/src-gen)
23822 ERROR WorkflowRunner - [ERROR]: mismatched input '<EOF>' expecting ';' on line 0(Element: main : Package; Reported by: Generator(generator): generating 'templateMiddle::Template::main FOR model' => C:/Users/s1stmatt/Downloads/workspace/masterarbeit/src-gen)
23822 ERROR WorkflowRunner - [ERROR]: mismatched input '<EOF>' expecting ';' on line 0(Element: EXPAND templateMiddle::Template::main FOR model; Reported by: Generator(generator): generating 'templateMiddle::Template::main FOR model' => C:/Users/s1stmatt/Downloads/workspace/masterarbeit/src-gen)


i guess there is a problem with the extension, because the first call of a method wich is in a extension, causes the trouble, but there are no compileerrors even when i restarted eclipse or cleaned the project

i hope somebody can help me, cause i have no idea what the problem is

best regards
stoehm
Re: xPand strange Problem [message #685720 is a reply to message #685719] Sat, 18 June 2011 10:26 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6388
Registered: July 2009
Senior Member
Hi,

can you check the imports/extension statements in your extension files for a missing semicolon.

~Christian

[Updated on: Sat, 18 June 2011 10:27]

Report message to a moderator

Re: xPand strange Problem [message #685722 is a reply to message #685720] Sat, 18 June 2011 10:36 Go to previous messageGo to next message
st oehm is currently offline st oehm
Messages: 79
Registered: October 2009
Member
hello christian
thank you for your fast reply

i checked all extensionFiles in my package and there is no semicolon missing
the extension file which properly causes the problem has only "import uml;"
and nothing else, so maybe the problem is something else

best regards
stoehm
Re: xPand strange Problem [message #685724 is a reply to message #685722] Sat, 18 June 2011 10:53 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6388
Registered: July 2009
Senior Member
Hi, one thing you still can do is to try to (java debug) the workflow
and see which file is actually causing the problem

maybe there is somewhere an extension declared with an invalid syntax (missing semicolon in the last line. the parser for the editor may not cpmplain but the one for the backend does.

~Christian
Re: xPand strange Problem [message #685725 is a reply to message #685724] Sat, 18 June 2011 11:31 Go to previous message
st oehm is currently offline st oehm
Messages: 79
Registered: October 2009
Member
hallo christian
thanks for your help, now i found the problem
the semicolon was missing at the end of the file, and i searched all time at the beginning. Embarrassed
like almost always little errors can cause big confusion

best regards
stoehm
Previous Topic:[ACCELO] Associations and attributes
Next Topic:[ACCELEO] Associations and attributes
Goto Forum:
  


Current Time: Sat Oct 25 09:37:25 GMT 2014

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

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