Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster dev » Exception: No enum const
Exception: No enum const [message #27293] Fri, 07 November 2008 14:46 Go to next message
Eclipse UserFriend
Originally posted by: erdal.karaca.airbus.com

I think this happens when buckminster tries to resolve plugins from target
platform...
If I execute a cquery which does not depend on the target platform's
plugins this will not happen.

I am using the "latest" publication of buckminster (from buckminster
update site)


Stack Trace:

java.lang.IllegalArgumentException: No enum const class
org.eclipse.buckminster.pde.internal.EclipsePlatformVersionF inder$InstalledType.PLUGINS
at java.lang.Enum.valueOf(Unknown Source)
at
org.eclipse.buckminster.pde.internal.EclipsePlatformVersionF inder$InstalledType.valueOf(EclipsePlatformVersionFinder.jav a:1)
at
org.eclipse.buckminster.pde.internal.EclipsePlatformVersionF inder. <init>(EclipsePlatformVersionFinder.java:50)
at
org.eclipse.buckminster.pde.internal.EclipsePlatformReaderTy pe.getVersionFinder(EclipsePlatformReaderType.java:312)
at
org.eclipse.buckminster.core.rmap.model.Provider.findMatch(P rovider.java:218)
at
org.eclipse.buckminster.core.rmap.model.SearchPath.getProvid er(SearchPath.java:104)
at
org.eclipse.buckminster.core.rmap.model.ResourceMap.resolve( ResourceMap.java:173)
at
org.eclipse.buckminster.core.resolver.ResourceMapResolver.in nerResolve(ResourceMapResolver.java:251)
at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.re solve(ResolverNodeWithJob.java:218)
at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.ru n(ResolverNodeWithJob.java:95)
at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob$No deResolutionJob.run(ResolverNodeWithJob.java:50)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: Exception: No enum const [message #27734 is a reply to message #27293] Fri, 07 November 2008 14:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: erdal.karaca.airbus.com

this is my rmap:

-%snip----------------------------------
... some other searchPaths which depend on target platform's plugins...

<searchPath name="tp">
<provider readerType="eclipse.platform"
componentTypes="eclipse.feature,osgi.bundle,buckminster" source="true"
mutable="false">
<uri format="plugins/{0}">
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>


... locators of other searchPaths...
<locator searchPathRef="tp" pattern=".*" />
-%snip----------------------------------
Re: Exception: No enum const [message #27753 is a reply to message #27734] Fri, 07 November 2008 15:18 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3232
Registered: July 2009
Senior Member
Hi Erdal,
You are not supposed to use the eclipse.platform reader type in the rmap. It's for
internal use only. The target platform will be consulted by default when resolving
components unless you explicitly disable it in a CQUERY advisor node.

Regards,
Thomas Hallgren

Erdal Karaca wrote:
> this is my rmap:
>
> -%snip----------------------------------
> .. some other searchPaths which depend on target platform's plugins...
>
> <searchPath name="tp">
> <provider readerType="eclipse.platform"
> componentTypes="eclipse.feature,osgi.bundle,buckminster"
> source="true"
> mutable="false">
> <uri format="plugins/{0}">
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> </searchPath>
>
>
> .. locators of other searchPaths...
> <locator searchPathRef="tp" pattern=".*" />
> -%snip----------------------------------
>
>
Re: Exception: No enum const [message #27787 is a reply to message #27753] Fri, 07 November 2008 15:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: erdal.karaca.airbus.com

I see. Yet, this should be mentioned in the "component meta-data language"
reference...
Re: Exception: No enum const [message #28869 is a reply to message #27787] Tue, 25 November 2008 00:48 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2501
Registered: July 2009
Senior Member
Erdal Karaca wrote:
> I see. Yet, this should be mentioned in the "component meta-data
> language" reference...
>
It would be really helpful if you could log a bugzilla issue.
Previous Topic:Broken Suclipse buckminster headless ?
Next Topic:Is a tighter leash needed on projects participating in the next release train?
Goto Forum:
  


Current Time: Thu Dec 18 11:31:29 GMT 2014

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

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