Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » com.google.collect missing from Require-Bundles in xtext 2.2?
com.google.collect missing from Require-Bundles in xtext 2.2? [message #762571] Thu, 08 December 2011 10:20 Go to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
I'm trying to use org.eclipse.xtext version 2.2.0.v201112071226 but it fails at runtime with the exception below. Investigating further, I see that this bundle makes use of the missing class but neither imports the package or require the bundle. Is this intentional or is it an oversight?

java.lang.NoClassDefFoundError: com/google/common/collect/Lists
at org.eclipse.xtext.service.CompoundModule.<init>(CompoundModule.java:28)
at org.eclipse.xtext.service.AbstractGenericModule.getBindings(AbstractGenericModule.java:37)
at org.eclipse.xtext.service.AbstractGenericModule.configure(AbstractGenericModule.java:31)
at org.eclipse.xtext.service.DefaultRuntimeModule.configure(DefaultRuntimeModule.java:74)
Re: com.google.collect missing from Require-Bundles in xtext 2.2? [message #762587 is a reply to message #762571] Thu, 08 December 2011 10:49 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
How did you install Xtext 2.2? Google collect was superseded by google
guava which is part of Xtext 2.2

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

Am 08.12.11 11:20, schrieb Thomas Hallgren:
> I'm trying to use org.eclipse.xtext version 2.2.0.v201112071226 but it
> fails at runtime with the exception below. Investigating further, I see
> that this bundle makes use of the missing class but neither imports the
> package or require the bundle. Is this intentional or is it an oversight?
>
> java.lang.NoClassDefFoundError: com/google/common/collect/Lists
> at org.eclipse.xtext.service.CompoundModule.<init>(CompoundModule.java:28)
> at
> org.eclipse.xtext.service.AbstractGenericModule.getBindings(AbstractGenericModule.java:37)
>
> at
> org.eclipse.xtext.service.AbstractGenericModule.configure(AbstractGenericModule.java:31)
>
> at
> org.eclipse.xtext.service.DefaultRuntimeModule.configure(DefaultRuntimeModule.java:74)
>
>
Re: com.google.collect missing from Require-Bundles in xtext 2.2? [message #762602 is a reply to message #762587] Thu, 08 December 2011 11:20 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
I installed it into my target platform from your update site at

http://download.eclipse.org/modeling/tmf/updates/releases

The class org.eclipse.xtext.service.CompoundModule contains the following:

import com.google.common.collect.Lists;

The only mention of com.google in the MANIFEST.MF is the bundle requirement of com.google.inject. I'm looking at this file:

org.eclipse.xtext_2.2.0.v201112071226.jar
Re: com.google.collect missing from Require-Bundles in xtext 2.2? [message #762613 is a reply to message #762602] Thu, 08 December 2011 11:44 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
It's reexported by org.eclipse.xtext.util.

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

Am 08.12.11 12:20, schrieb Thomas Hallgren:
> I installed it into my target platform from your update site at
>
> http://download.eclipse.org/modeling/tmf/updates/releases
>
> The class org.eclipse.xtext.service.CompoundModule contains the following:
>
> import com.google.common.collect.Lists;
>
> The only mention of com.google in the MANIFEST.MF is the bundle
> requirement of com.google.inject. I'm looking at this file:
>
> org.eclipse.xtext_2.2.0.v201112071226.jar
>
Re: com.google.collect missing from Require-Bundles in xtext 2.2? [message #762622 is a reply to message #762613] Thu, 08 December 2011 12:03 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Yeah, I just discovered that com.google.guava was re-exported and provides the same packages as com.google.collect.

All is well. Thanks for your help and prompt reply.
Re: com.google.collect missing from Require-Bundles in xtext 2.2? [message #762630 is a reply to message #762622] Thu, 08 December 2011 12:18 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Thomas,

I still wonder where the NCDFE came from. Could you elaborate on that?

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

Am 08.12.11 13:03, schrieb Thomas Hallgren:
> Yeah, I just discovered that com.google.guava was re-exported and
> provides the same packages as com.google.collect.
>
> All is well. Thanks for your help and prompt reply.
Re: com.google.collect missing from Require-Bundles in xtext 2.2? [message #762635 is a reply to message #762630] Thu, 08 December 2011 12:28 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
We use Buckminster to transitively resolve all bundles that needs to be present in the target platform. We had no search path set up for com.google.guice so Buckminster did not know where to look for it. Since the requirement is optional (I'd like you to elaborate on the reason why that is), it didn't cause any resolution failure.

Consequently, the com.google.guice bundle was lacking from the target platform and running JUnit tests didn't reveal the problem until it was encountered at runtime.
Re: com.google.collect missing from Require-Bundles in xtext 2.2? [message #762682 is a reply to message #762635] Thu, 08 December 2011 14:02 Go to previous message
Jos Warmer is currently offline Jos WarmerFriend
Messages: 114
Registered: October 2010
Senior Member
Had the same problem when using Tycho to build my Xtext plugin. The build works ok, but when I install my plugin in Eclipse it gives the NCDFE error when trying to open the Xtext editor. Of course the eclipse where I installed my plugin had Xtext 2.1 installed, but everything installed without errors.
Previous Topic:What is the intention of invoking serialization when calling XtextResource.save()?
Next Topic:[Xtend/mwe2] Disable model validation
Goto Forum:
  


Current Time: Thu Apr 25 07:09:54 GMT 2024

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

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

Back to the top