Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367198

Summary: Exception when executing a mwe workflow : java.lang.NoSuchFieldError: ruleMemo
Product: [Modeling] TMF Reporter: Missing name <extern.knabe_stefan>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: christian.dietrich.opensource, karsten.thoms
Version: 2.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
My eclipse Configuration none

Description Missing name CLA 2011-12-20 10:00:05 EST
Build Identifier: 20110916-0149

I get the following exception :

0    [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering platform uri 'C:\work_b5_privat\Privatschutz\integration.kdv'
1468 [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning C:\work_b5_privat\Privatschutz\integration.kdv\de.allianz.vak.integration.amis.kdv\..\de.allianz.vak.integration.amis.kdv\src-gen
1734 [main] INFO  ipse.xtext.generator.LanguageConfig  - generating infrastructure for de.allianz.vak.integration.amis.kdv.definition.KDVDialogDefinition with fragments : ImplicitRuntimeFragment, GrammarAccessFragment, EcoreGeneratorFragment, ParseTreeConstructorFragment, ResourceFactoryFragment, XtextAntlrGeneratorFragment
4358 [main] INFO  clipse.emf.mwe.utils.GenModelHelper  - Registered GenModel 'http://www.allianz.de/vak/integration/amis/kdv/KDVDialogDefinition' from 'file:/C:/work_b5_privat/Privatschutz/integration.kdv/de.allianz.vak.integration.amis.kdv/src-gen/de/allianz/vak/integration/amis/kdv/definition/KDVDialogDefinition.genmodel'
8467 [main] ERROR enerator.CompositeGeneratorFragment  - java.lang.reflect.InvocationTargetException
org.eclipse.emf.common.util.WrappedException: java.lang.reflect.InvocationTargetException
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithParams(AntlrToolFacade.java:134)
	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment.generate(XtextAntlrGeneratorFragment.java:46)
	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:81)
	at org.eclipse.xtext.generator.LanguageConfig.generate(LanguageConfig.java:69)
	at org.eclipse.xtext.generator.Generator.generate(Generator.java:351)
	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:125)
	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:97)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:64)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:55)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithParams(AntlrToolFacade.java:132)
	... 16 more
Caused by: java.lang.NoSuchFieldError: ruleMemo
	at org.antlr.tool.ActionAnalysisLexer.<init>(ActionAnalysisLexer.java:50)
	at org.antlr.tool.ActionAnalysisLexer.<init>(ActionAnalysisLexer.java:32)
	at org.antlr.tool.Grammar.examineAllExecutableActions(Grammar.java:1281)
	at org.antlr.tool.Grammar.setGrammarContent(Grammar.java:567)
	at org.antlr.tool.Grammar.<init>(Grammar.java:456)
	at org.antlr.Tool.getGrammar(Tool.java:331)
	at org.antlr.Tool.process(Tool.java:267)
	at de.itemis.xtext.antlr.toolrunner.AntlrToolRunner.runWithParams(AntlrToolRunner.java:40)
	... 21 more
11248 [main] INFO         org.eclipse.xpand2.Generator  - Written 47 files to outlet [default](src-gen/de/allianz/vak/integration/amis/kdv//kdvdialoge)
11248 [main] INFO  .emf.mwe2.runtime.workflow.Workflow  - Done.


Reproducible: Always

Steps to Reproduce:
1. run mwe-file
2.
3.
Comment 1 Karsten Thoms CLA 2011-12-22 04:52:04 EST
This indicates that you are using an incompatible Antlr version. Current Xpand version requires 3.2.0, previous versions require 3.0.1.

Please check your configuration.
Comment 2 Missing name CLA 2012-01-09 04:29:51 EST
Created attachment 209192 [details]
My eclipse Configuration

My eclipse Configuration
Comment 3 Missing name CLA 2012-01-09 04:32:32 EST
How can this happen for a new installed eclipse version ???
There are no updates available !
As an attachment my configuration.
Comment 4 Karsten Thoms CLA 2012-01-09 05:00:34 EST
Problem occurs while executing Xtext's generator component. Moving bug to Xtext.

Configuration contains Indigo versions.
- MWE 1.1.1
- Xpand 1.1.1
- Xtext 2.0.1
- Antlr 3.2.0

From the configuration I do not see why this error should occur. You could try the Xtext 2.0.1 distribution from itemis.
Comment 5 Missing name CLA 2012-01-17 10:37:22 EST
This problem was solved by an update of xtext to version 2.2.1 .
Comment 6 Eclipse Webmaster CLA 2017-10-31 10:47:52 EDT
Requested via bug 522520.

-M.
Comment 7 Eclipse Webmaster CLA 2017-10-31 10:58:55 EDT
Requested via bug 522520.

-M.