Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » No implementation for org.eclipse.xtext.preferences.IPreferenceValuesProvider annotated with @org.ec(Error when update 2.9.2 to 2.10.0)
No implementation for org.eclipse.xtext.preferences.IPreferenceValuesProvider annotated with @org.ec [message #1741628] Fri, 26 August 2016 12:24 Go to next message
Hong-Thai Nguyen is currently offline Hong-Thai NguyenFriend
Messages: 6
Registered: April 2016
Junior Member
Hi,

We are using xtext web, that's work fine with 2.9.2.
Pumping to newest 2.10.0, x-text servlet broken down for any request with following exception. Do you have any idea ?

Thanks,

WARN  [2016-08-26 12:22:04,583] org.eclipse.jetty.servlet.ServletHandler: /xtext-service/save
! com.google.inject.ConfigurationException: Guice configuration errors:
!
! 1) No implementation for org.eclipse.xtext.preferences.IPreferenceValuesProvider annotated with @org.eclipse.xtext.formatting2.FormatterPreferences() was bound.
!   while locating org.eclipse.xtext.preferences.IPreferenceValuesProvider annotated with @org.eclipse.xtext.formatting2.FormatterPreferences()
!     for field at org.eclipse.xtext.web.server.XtextServiceDispatcher.formatterPreferencesProvider(XtextServiceDispatcher.java:98)
!   while locating org.eclipse.xtext.web.server.XtextServiceDispatcher
!
! 1 error
! at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004)
! at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:961)
! at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
! at org.eclipse.xtext.web.servlet.XtextServlet.getService(XtextServlet.java:162)
! at org.eclipse.xtext.web.servlet.XtextServlet.doPost(XtextServlet.java:134)
! at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
! at org.eclipse.xtext.web.servlet.XtextServlet.service(XtextServlet.java:62)
! at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
! at io.dropwizard.jetty.NonblockingServletHolder.handle(NonblockingServletHolder.java:49)
! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
! at com.dhatim.rules.server.ide.JwtCookieAuthRequestFilter.handle(JwtCookieAuthRequestFilter.java:50)
! at com.dhatim.rules.server.ide.JwtCookieAuthRequestFilter.doFilter(JwtCookieAuthRequestFilter.java:35)
! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
! at io.dropwizard.servlets.ThreadNameFilter.doFilter(ThreadNameFilter.java:34)
! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
! at io.dropwizard.jersey.filter.AllowedMethodsFilter.handle(AllowedMethodsFilter.java:50)
! at io.dropwizard.jersey.filter.AllowedMethodsFilter.doFilter(AllowedMethodsFilter.java:44)
! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
! at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
! at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
! at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174)
! at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
! at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
! at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106)
! at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
! at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:240)
! at io.dropwizard.jetty.RoutingHandler.handle(RoutingHandler.java:51)
! at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:396)
! at io.dropwizard.jetty.BiDiGzipHandler.handle(BiDiGzipHandler.java:68)
! at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:56)
! at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:169)
! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
! at org.eclipse.jetty.server.Server.handle(Server.java:524)
! at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
! at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
! at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
! at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
! at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
! at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
! at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
! at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
! at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
! at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
! at java.lang.Thread.run(Thread.java:745)
Re: No implementation for org.eclipse.xtext.preferences.IPreferenceValuesProvider annotated with @or [message #1741630 is a reply to message #1741628] Fri, 26 August 2016 12:37 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=495851 (is fixed in 2.11)

def void configureIPreferenceValuesProvider(Binder binder) {
binder.bind(IPreferenceValuesProvider).annotatedWith(FormatterPreferences).to(FormatterPreferenceValuesProvider)
}


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
icon14.gif  Re: No implementation for org.eclipse.xtext.preferences.IPreferenceValuesProvider annotated with @or [message #1741632 is a reply to message #1741630] Fri, 26 August 2016 13:08 Go to previous messageGo to next message
Hong-Thai Nguyen is currently offline Hong-Thai NguyenFriend
Messages: 6
Registered: April 2016
Junior Member
Thanks, We put temporary these lines for now to make working on 2.10.0 and waiting for 2.11.0.

Great work !
Re: No implementation for org.eclipse.xtext.preferences.IPreferenceValuesProvider annotated with @or [message #1752398 is a reply to message #1741632] Mon, 23 January 2017 12:08 Go to previous messageGo to next message
Denis Kuniß is currently offline Denis KunißFriend
Messages: 15
Registered: March 2015
Junior Member
Hong-Thai,
could you give me a hint where to put those lines to make the web service running under 2.10.0?
Denis
Re: No implementation for org.eclipse.xtext.preferences.IPreferenceValuesProvider annotated with @or [message #1752399 is a reply to message #1752398] Mon, 23 January 2017 12:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
simply put it to YourdslWebModule

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: No implementation for org.eclipse.xtext.preferences.IPreferenceValuesProvider annotated with @or [message #1752400 is a reply to message #1752399] Mon, 23 January 2017 12:20 Go to previous messageGo to next message
Denis Kuniß is currently offline Denis KunißFriend
Messages: 15
Registered: March 2015
Junior Member
Thanks,
however, I put
language = StandardLanguage {
...
fragment = formatting.Formatter2Fragment2 {}
}
into my MWE workflow as you noted at hte other issue.
This helped the same way.
Re: No implementation for org.eclipse.xtext.preferences.IPreferenceValuesProvider annotated with @or [message #1752401 is a reply to message #1752400] Mon, 23 January 2017 12:31 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
yes indeed

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Disable errors reported by xtext
Next Topic:Formatter2 Junit test passes in Eclipse but fails in maven (Xtext 2.10.0)
Goto Forum:
  


Current Time: Thu Apr 25 06:21:41 GMT 2024

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

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

Back to the top