Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Antlr update breaks workflow(After being asked by Xtext to update to Antlr 3.2, the workflow fails with many exceptions)
Antlr update breaks workflow [message #1385753] Wed, 11 June 2014 00:49 Go to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 387
Registered: March 2011
Senior Member
When running the workflow for my grammar, I got this message:

*ATTENTION*
It is recommended to use the ANTLR 3 parser generator (BSD licence - http://www.antlr.org/license.html).
Do you agree to download it (size 1MB) from 'http://download.itemis.com/antlr-generator-3.2.0.jar'? (type 'y' or 'n' and hit enter)y


After choosing yes, the workflow fails with the exceptions shown below.

What's the problem and how can I solve it?

I found that Xtext downloads ".antlr-generator-3.2.0.jar", and if I remove it it just asks me again. If I say no, the message appears repeated 3 times, and gives more exceptions. Something seems seriously broken, but I have no idea what could have caused it. Cleaning the project doesn't work either.

I can't think of anything in my workflow that could have caused this, as it is essentially the workflow automatically generated by the "new Xtext project" wizard, with only a modification to the StandaloneSetup bean. I'm attaching the workflow.

This is on Xtext 2.4.3, on Windows 7, and after upgrading to Xtext 2.6.0 doesn't solve the problem. I don't seem to have this issue on Ubuntu or MacOS X.

Thanks



14636 [main] INFO  erator.parser.antlr.AntlrToolFacade  - downloading file from 'http://download.itemis.com/antlr-generator-3.2.0.jar' ...
17809 [main] INFO  erator.parser.antlr.AntlrToolFacade  - finished downloading.
17816 [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning C:\Users\eposse\Repositories\Git\agclrepo\org.osate.xtext.aadl2.agcl\..\org.osate.xtext.aadl2.agcl\src-gen
17817 [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning C:\Users\eposse\Repositories\Git\agclrepo\org.osate.xtext.aadl2.agcl\..\org.osate.xtext.aadl2.agcl\model
17821 [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning C:\Users\eposse\Repositories\Git\agclrepo\org.osate.xtext.aadl2.agcl\..\org.osate.xtext.aadl2.agcl.ui\src-gen
17831 [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning C:\Users\eposse\Repositories\Git\agclrepo\org.osate.xtext.aadl2.agcl\..\org.osate.xtext.aadl2.agcl.tests\src-gen
20117 [main] INFO  clipse.emf.mwe.utils.GenModelHelper  - Registered GenModel 'http://www.osate.org/xtext/aadl2/agcl/AGCL' from 'platform:/resource/org.osate.xtext.aadl2.agcl/model/generated/AGCL.genmodel'
25571 [main] INFO  text.generator.junit.Junit4Fragment  - generating Junit4 Test support classes
25590 [main] INFO  text.generator.junit.Junit4Fragment  - generating Compare Framework infrastructure
25596 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - Problems running workflow org.osate.xtext.aadl2.agcl.GenerateAGCL: 
[ERROR]: GeneratorException: (Element: -UNKNOWN-; Reported by: Generator)
	 org.eclipse.emf.common.util.WrappedException: java.lang.reflect.InvocationTargetException
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:183)
	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment.generate(XtextAntlrGeneratorFragment.java:47)
	at org.eclipse.xtext.generator.DefaultGeneratorFragment.generate(DefaultGeneratorFragment.java:122)
	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:154)
	at org.eclipse.xtext.generator.Generator.generate(Generator.java:396)
	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:138)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:173)
	... 15 more
Caused by: java.lang.NoSuchMethodError: antlr.TokenStreamRewriteEngine.size()I
	at org.antlr.tool.Grammar.defineLexerRuleFoundInParser(Grammar.java:1529)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rule(DefineGrammarItemsWalker.java:869)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rules(DefineGrammarItemsWalker.java:576)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammarSpec(DefineGrammarItemsWalker.java:361)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammar(DefineGrammarItemsWalker.java:193)
	at org.antlr.tool.Grammar.defineGrammarSymbols(Grammar.java:702)
	at org.antlr.tool.CompositeGrammar.defineGrammarSymbols(CompositeGrammar.java:352)
	at org.antlr.Tool.process(Tool.java:451)
	at de.itemis.xtext.antlr.toolrunner.AntlrToolRunner.runWithEncodingAndParams(AntlrToolRunner.java:168)
	... 20 more

[ERROR]: GeneratorException: (Element: -UNKNOWN-; Reported by: Generator)
	 org.eclipse.emf.common.util.WrappedException: java.lang.reflect.InvocationTargetException
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:183)
	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment.generate(XtextAntlrUiGeneratorFragment.java:85)
	at org.eclipse.xtext.generator.DefaultGeneratorFragment.generate(DefaultGeneratorFragment.java:122)
	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:154)
	at org.eclipse.xtext.generator.Generator.generate(Generator.java:396)
	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:138)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:173)
	... 15 more
Caused by: java.lang.NoSuchMethodError: antlr.TokenStreamRewriteEngine.size()I
	at org.antlr.tool.Grammar.defineLexerRuleFoundInParser(Grammar.java:1529)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rule(DefineGrammarItemsWalker.java:869)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rules(DefineGrammarItemsWalker.java:576)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammarSpec(DefineGrammarItemsWalker.java:361)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammar(DefineGrammarItemsWalker.java:193)
	at org.antlr.tool.Grammar.defineGrammarSymbols(Grammar.java:702)
	at org.antlr.tool.CompositeGrammar.defineGrammarSymbols(CompositeGrammar.java:352)
	at org.antlr.Tool.process(Tool.java:451)
	at de.itemis.xtext.antlr.toolrunner.AntlrToolRunner.runWithEncodingAndParams(AntlrToolRunner.java:168)
	... 20 more

java.lang.RuntimeException: Problems running workflow org.osate.xtext.aadl2.agcl.GenerateAGCL: 
[ERROR]: GeneratorException: (Element: -UNKNOWN-; Reported by: Generator)
	 org.eclipse.emf.common.util.WrappedException: java.lang.reflect.InvocationTargetException
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:183)
	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment.generate(XtextAntlrGeneratorFragment.java:47)
	at org.eclipse.xtext.generator.DefaultGeneratorFragment.generate(DefaultGeneratorFragment.java:122)
	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:154)
	at org.eclipse.xtext.generator.Generator.generate(Generator.java:396)
	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:138)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:173)
	... 15 more
Caused by: java.lang.NoSuchMethodError: antlr.TokenStreamRewriteEngine.size()I
	at org.antlr.tool.Grammar.defineLexerRuleFoundInParser(Grammar.java:1529)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rule(DefineGrammarItemsWalker.java:869)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rules(DefineGrammarItemsWalker.java:576)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammarSpec(DefineGrammarItemsWalker.java:361)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammar(DefineGrammarItemsWalker.java:193)
	at org.antlr.tool.Grammar.defineGrammarSymbols(Grammar.java:702)
	at org.antlr.tool.CompositeGrammar.defineGrammarSymbols(CompositeGrammar.java:352)
	at org.antlr.Tool.process(Tool.java:451)
	at de.itemis.xtext.antlr.toolrunner.AntlrToolRunner.runWithEncodingAndParams(AntlrToolRunner.java:168)
	... 20 more

[ERROR]: GeneratorException: (Element: -UNKNOWN-; Reported by: Generator)
	 org.eclipse.emf.common.util.WrappedException: java.lang.reflect.InvocationTargetException
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:183)
	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment.generate(XtextAntlrUiGeneratorFragment.java:85)
	at org.eclipse.xtext.generator.DefaultGeneratorFragment.generate(DefaultGeneratorFragment.java:122)
	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:154)
	at org.eclipse.xtext.generator.Generator.generate(Generator.java:396)
	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:138)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:173)
	... 15 more
Caused by: java.lang.NoSuchMethodError: antlr.TokenStreamRewriteEngine.size()I
	at org.antlr.tool.Grammar.defineLexerRuleFoundInParser(Grammar.java:1529)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rule(DefineGrammarItemsWalker.java:869)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rules(DefineGrammarItemsWalker.java:576)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammarSpec(DefineGrammarItemsWalker.java:361)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammar(DefineGrammarItemsWalker.java:193)
	at org.antlr.tool.Grammar.defineGrammarSymbols(Grammar.java:702)
	at org.antlr.tool.CompositeGrammar.defineGrammarSymbols(CompositeGrammar.java:352)
	at org.antlr.Tool.process(Tool.java:451)
	at de.itemis.xtext.antlr.toolrunner.AntlrToolRunner.runWithEncodingAndParams(AntlrToolRunner.java:168)
	... 20 more

	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:104)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: java.lang.RuntimeException: 
[ERROR]: GeneratorException: (Element: -UNKNOWN-; Reported by: Generator)
	 org.eclipse.emf.common.util.WrappedException: java.lang.reflect.InvocationTargetException
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:183)
	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment.generate(XtextAntlrGeneratorFragment.java:47)
	at org.eclipse.xtext.generator.DefaultGeneratorFragment.generate(DefaultGeneratorFragment.java:122)
	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:154)
	at org.eclipse.xtext.generator.Generator.generate(Generator.java:396)
	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:138)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:173)
	... 15 more
Caused by: java.lang.NoSuchMethodError: antlr.TokenStreamRewriteEngine.size()I
	at org.antlr.tool.Grammar.defineLexerRuleFoundInParser(Grammar.java:1529)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rule(DefineGrammarItemsWalker.java:869)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rules(DefineGrammarItemsWalker.java:576)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammarSpec(DefineGrammarItemsWalker.java:361)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammar(DefineGrammarItemsWalker.java:193)
	at org.antlr.tool.Grammar.defineGrammarSymbols(Grammar.java:702)
	at org.antlr.tool.CompositeGrammar.defineGrammarSymbols(CompositeGrammar.java:352)
	at org.antlr.Tool.process(Tool.java:451)
	at de.itemis.xtext.antlr.toolrunner.AntlrToolRunner.runWithEncodingAndParams(AntlrToolRunner.java:168)
	... 20 more

[ERROR]: GeneratorException: (Element: -UNKNOWN-; Reported by: Generator)
	 org.eclipse.emf.common.util.WrappedException: java.lang.reflect.InvocationTargetException
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:183)
	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment.generate(XtextAntlrUiGeneratorFragment.java:85)
	at org.eclipse.xtext.generator.DefaultGeneratorFragment.generate(DefaultGeneratorFragment.java:122)
	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:154)
	at org.eclipse.xtext.generator.Generator.generate(Generator.java:396)
	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:138)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:173)
	... 15 more
Caused by: java.lang.NoSuchMethodError: antlr.TokenStreamRewriteEngine.size()I
	at org.antlr.tool.Grammar.defineLexerRuleFoundInParser(Grammar.java:1529)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rule(DefineGrammarItemsWalker.java:869)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.rules(DefineGrammarItemsWalker.java:576)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammarSpec(DefineGrammarItemsWalker.java:361)
	at org.antlr.grammar.v2.DefineGrammarItemsWalker.grammar(DefineGrammarItemsWalker.java:193)
	at org.antlr.tool.Grammar.defineGrammarSymbols(Grammar.java:702)
	at org.antlr.tool.CompositeGrammar.defineGrammarSymbols(CompositeGrammar.java:352)
	at org.antlr.Tool.process(Tool.java:451)
	at de.itemis.xtext.antlr.toolrunner.AntlrToolRunner.runWithEncodingAndParams(AntlrToolRunner.java:168)
	... 20 more

	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.handleIssues(Mwe2Bridge.java:56)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:48)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	... 4 more



I'm Working on Windows,
Re: Antlr update breaks workflow [message #1385790 is a reply to message #1385753] Wed, 11 June 2014 08:43 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Could it be that you have another antlr 2.* on your classpath?
I just looked into the jar from the URL and it contains the method antlr.TokenStreamRewriteEngine#size()
Re: Antlr update breaks workflow [message #1385841 is a reply to message #1385790] Wed, 11 June 2014 15:10 Go to previous message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 387
Registered: March 2011
Senior Member
I don't see another ANTLR installed anywhere, but here's what I found:

Starting from a fresh Eclipse MDT installation (Kepler) and on a fresh workspace:

1) If I install Xtext through "Help -> Install New Software..." using "http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/" as the update site, then I get the error.

2) If I install Xtext through "Help -> Eclipse Marketplace" then it works fine (although it seems to erase my update site bookmarks)

I have reproduced this on both Windows 7 and Ubuntu 14.04.

Therefore it looks like there is some packaging issue with the first update site.

I also observe that if I follow alternative 1, then, if I respond no to the request to download ANTLR, then my response is ignored, the attention message is printed three times and waits for a response again, so it accepts only "yes" (which seems like a bug), and get the exceptions anyway.

When I accept it, I notice that it downloads ANTLR 3.2, more specifically a jar file "antlr-generator-3.2.0.jar" and saves it in the my main Xtext plugin's root as ".antlr-generator-3.2.0.jar". Is that enough to be found? I haven't modified class paths, so I don't know if that jar would be included.


Thanks.

Previous Topic:project java --> +/- java
Next Topic:ScopeProvider with imported Xcore
Goto Forum:
  


Current Time: Mon Sep 28 07:10:38 GMT 2020

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

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

Back to the top