Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Understand Build
Understand Build [message #1722166] Wed, 03 February 2016 08:16 Go to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
Hi ,

I have deleted some parts of my grammar. I am trying to run the web module
after mvn clean install of all projects.

I get this exception.

Caused by: java.lang.NoSuchMethodError: org.xtext.example.mydsl.services.EinDslGrammarAccess$QueryElements.getGroup_3()

This is trying to access the elements from my old grammar.

I wish to understand the build step. Does it use gradle to auto build automatically or it generates the classes after mvn clean install.

Re: Understand Build [message #1722170 is a reply to message #1722166] Wed, 03 February 2016 08:50 Go to previous messageGo to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
103504 [qtp716990821-40] ERROR t.antlr.ContentAssistContextFactory - java.lang.NoSuchMethodError: org.xtext.example.mydsl.services.EinDslGrammarAccess$QueryElements.getGroup_3()Lorg/eclipse/xtext/Group;
java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: org.xtext.example.mydsl.services.EinDslGrammarAccess$QueryElements.getGroup_3()Lorg/eclipse/xtext/Group;
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory.doCreateContexts(ContentAssistContextFactory.java:173)
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory.create(ContentAssistContextFactory.java:123)
at org.eclipse.xtext.web.server.contentassist.ContentAssistService.getContexts(ContentAssistService.java:129)
at org.eclipse.xtext.web.server.contentassist.ContentAssistService$2.exec(ContentAssistService.java:100)
at org.eclipse.xtext.web.server.contentassist.ContentAssistService$2.exec(ContentAssistService.java:90)
at org.eclipse.xtext.util.concurrent.CancelableUnitOfWork.exec(CancelableUnitOfWork.java:26)
at org.eclipse.xtext.web.server.model.XtextWebDocumentAccess.doAccess(XtextWebDocumentAccess.java:213)
at org.eclipse.xtext.web.server.model.XtextWebDocumentAccess.modify(XtextWebDocumentAccess.java:194)
at org.eclipse.xtext.web.server.contentassist.ContentAssistService.createProposalsWithUpdate(ContentAssistService.java:105)
at org.eclipse.xtext.web.server.XtextServiceDispatcher$10$1.apply(XtextServiceDispatcher.java:627)
at org.eclipse.xtext.web.server.XtextServiceDispatcher$10$1.apply(XtextServiceDispatcher.java:622)
at org.eclipse.xtext.web.servlet.XtextServlet.doService(XtextServlet.java:231)
at org.eclipse.xtext.web.servlet.XtextServlet.doPost(XtextServlet.java:188)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.eclipse.xtext.web.servlet.XtextServlet.service(XtextServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: org.xtext.example.mydsl.services.EinDslGrammarAccess$QueryElements.getGroup_3()Lorg/eclipse/xtext/Group;
at org.xtext.example.mydsl.ide.contentassist.antlr.internal.InternalEinDslParser.rule__Query__Group__3__Impl(InternalEinDslParser.java:2091)
at org.xtext.example.mydsl.ide.contentassist.antlr.internal.InternalEinDslParser.rule__Query__Group__3(InternalEinDslParser.java:2051)
at org.xtext.example.mydsl.ide.contentassist.antlr.internal.InternalEinDslParser.rule__Query__Group__2(InternalEinDslParser.java:1971)
at org.xtext.example.mydsl.ide.contentassist.antlr.internal.InternalEinDslParser.rule__Query__Group__1(InternalEinDslParser.java:1875)
at org.xtext.example.mydsl.ide.contentassist.antlr.internal.InternalEinDslParser.rule__Query__Group__0(InternalEinDslParser.java:1779)
at org.xtext.example.mydsl.ide.contentassist.antlr.internal.InternalEinDslParser.ruleQuery(InternalEinDslParser.java:215)
at org.xtext.example.mydsl.ide.contentassist.antlr.internal.InternalEinDslParser.rule__Model__GreetingsAssignment(InternalEinDslParser.java:4825)
at org.xtext.example.mydsl.ide.contentassist.antlr.internal.InternalEinDslParser.ruleModel(InternalEinDslParser.java:138)
at org.xtext.example.mydsl.ide.contentassist.antlr.internal.InternalEinDslParser.entryRuleModel(InternalEinDslParser.java:99)
at org.xtext.example.mydsl.ide.contentassist.antlr.EinDslParser.getFollowElements(EinDslParser.java:93)
at org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser.getFollowElements(AbstractContentAssistParser.java:322)
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory.handleLastCompleteNodeIsAtEndOfDatatypeNode(ContentAssistContextFactory.java:219)
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory$2.call(ContentAssistContextFactory.java:153)
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory$2.call(ContentAssistContextFactory.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
... 1 more
Re: Understand Build [message #1722174 is a reply to message #1722170] Wed, 03 February 2016 08:56 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14067
Registered: July 2009
Senior Member
you should run lean install in the parent

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Changing name of default projects
Next Topic:[solved] xtend helper to escapeHTML(string)
Goto Forum:
  


Current Time: Mon Sep 27 11:18:12 GMT 2021

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

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

Back to the top