Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » weird error with Guice
weird error with Guice [message #897557] Tue, 24 July 2012 13:37 Go to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 430
Registered: July 2009
Location: Gothenburg
Senior Member
Hi,

I'm not sure this is related to Xtext, but I have a project that worked nicely before my vacation. Now I started to get a weird error, as below, but when I debug it and check the values used by ProviderModule they look ok (both types are com.google.guice.Provider). It's just that isInstanceOf returns false...

java.lang.IllegalStateException: The method provideIWorkspace is expected to return a Class<? extends Provider<Something>> or directly Provider<Something>.
	at org.eclipse.xtext.service.ProviderModule.getKeyType(ProviderModule.java:41)
	at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:47)
	at org.eclipse.xtext.service.CompoundModule.configure(CompoundModule.java:34)
	at org.eclipse.xtext.service.AbstractGenericModule.configure(AbstractGenericModule.java:32)
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
	at org.erlide.ErlangRuntimeModule.configure(ErlangRuntimeModule.java:31)


The only thing that happened in the meantime was that I updated Xtext to the latest nightly and realized that I actually want the stable release and I reversed to that.

I will try on a clean installation tomorrow, but maybe someone has a suggestion until then.

best regards,
Vlad

Re: weird error with Guice [message #897561 is a reply to message #897557] Tue, 24 July 2012 13:56 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3107
Registered: July 2009
Senior Member
The only thing that comes to my mind is a breakage in the resolved
libraries. Could you check your project/plugin-deps if they show guice
twice? The PDE update classpath action could help.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 24.07.12 15:37, schrieb Vlad Dumitrescu:
> Hi,
>
> I'm not sure this is related to Xtext, but I have a project that worked
> nicely before my vacation. Now I started to get a weird error, as below,
> but when I debug it and check the values used by ProviderModule they
> look ok (both types are com.google.guice.Provider). It's just that
> isInstanceOf returns false...
> java.lang.IllegalStateException: The method provideIWorkspace is
> expected to return a Class<? extends Provider<Something>> or directly
> Provider<Something>.
> at
> org.eclipse.xtext.service.ProviderModule.getKeyType(ProviderModule.java:41)
> at
> org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:47)
>
> at
> org.eclipse.xtext.service.CompoundModule.configure(CompoundModule.java:34)
> at
> org.eclipse.xtext.service.AbstractGenericModule.configure(AbstractGenericModule.java:32)
>
> at
> com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
> at
> org.erlide.ErlangRuntimeModule.configure(ErlangRuntimeModule.java:31)
>
>
> The only thing that happened in the meantime was that I updated Xtext to
> the latest nightly and realized that I actually want the stable release
> and I reversed to that.
>
> I will try on a clean installation tomorrow, but maybe someone has a
> suggestion until then.
>
> best regards,
> Vlad
>
>
Re: weird error with Guice [message #897718 is a reply to message #897561] Wed, 25 July 2012 07:21 Go to previous message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 430
Registered: July 2009
Location: Gothenburg
Senior Member
Hmm, only a new Eclipse installation helped. Strange...
Thanks anyway, Sebastian!

/Vlad
Previous Topic:Reading the .mydsl file
Next Topic:Json empty object serialization problem
Goto Forum:
  


Current Time: Fri Feb 21 13:51:01 GMT 2020

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

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

Back to the top