Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » "There is no active target platform" when setting buckminster preference
"There is no active target platform" when setting buckminster preference [message #384951] Wed, 06 May 2009 09:04 Go to next message
Oisin Hurley is currently offline Oisin HurleyFriend
Messages: 204
Registered: July 2009
Senior Member
Thanks to Thomas and the eclipse.ini workaround, I've got past getting
the latest Buckminster for 3.5 stream installed. Next on the menu is an
exception that comes up as I set the preferences from an Ant script

org.osgi.service.prefs.BackingStoreException: There is no active target
platform

(full stack at end of posting)

Looking at the code in TargetVariableHandler.java, it appears to use
the provisional target management stuff in PDE and for some reason
PDE considers there to be no target platform.

Even if I set the org.eclipse.buckminster.pde.targetPlatformPath
preference to point to the platform *before* running the other
preferences, this exception still occurs.

Rummaging through the code I did see that there is another
preference

org.eclipse.buckminster.pde.targetDefinition

but I'm not sure how to use it and my attempt to point it to my target
platform directory (like the targetPlatformPath) was rejected .

I'm not sure where to go from here - I'm currently looking for
some documentation on the ITargetPlatformService etc, but this
could be a simple configuration error, or somesuch.

cheers
--oh

Ant---------------------------------------------
[java] Executing
'/opt/public/stp/apps/ibm-java2-sdk-5.0-6.0-linux-ppc/jre/bi n/java' with
arguments:
[java] '-Djava.io.tmpdir=/shared/stp/builds/05may09/3.5M7/stp/b0/te mp'
[java] '-Dproject.source=file:/opt/public/stp/builds/05may09/trunk'
[java]
'-Dproject.build=file:/opt/public/stp/builds/05may09/3.5M7/s tp/'
[java] '-Dproject.repo='
[java] '-Dproject.root=file:/opt/public/stp/builds/05may09/'
[java] '-Dproject.component='
[java] '-Dproject.tag=trunk'
[java] '-jar' [java]
'/shared/stp/platforms/buckminster/3.5/buckminster/plugins/o rg.eclipse.equinox.launcher_1.0.200.v20090429-1630.jar'
[java] '-data' [java]
'/shared/stp/builds/05may09/3.5M7/stp/b0/working/build/works pace'
[java] '--displaystacktrace'
[java] '--loglevel'
[java] 'DEBUG'
[java] 'org.eclipse.buckminster.core.prefs.setpreference'
[java] 'org.eclipse.buckminster.jdt.complianceLevel=1.5'
[java] 'org.eclipse.buckminster.pde.targetArch=ppc'
[java] 'org.eclipse.buckminster.pde.targetOS=linux'
[java] 'org.eclipse.buckminster.pde.targetWS=gtk'
[java] 'org.eclipse.buckminster.pde.targetNL=en_US'
[java]
'org.eclipse.buckminster.pde.targetPlatformPath=/shared/stp/ platforms/3.5M7/eclipse'
[java] 'org.eclipse.buckminster.core.maxParallelMaterializations=4'
[java] 'org.eclipse.buckminster.core.maxParallelResolutions=4'


Stack--------------------------------------------

buckminster.setup.preferences:
[echo] .... set preferences for Buckminster
[java] org.eclipse.buckminster.core.prefs.setpreference
'org.eclipse.buckminster.jdt.complianceLevel=1.5'
'org.eclipse.buckminster.pde.targetArch=ppc'
'org.eclipse.buckminster.pde.targetOS=linux'
'org.eclipse.buckminster.pde.targetWS=gtk'
'org.eclipse.buckminster.pde.targetNL=en_US'
'org.eclipse.buckminster.pde.targetPlatformPath=/shared/stp/ platforms/3.5M7/eclipse'
'org.eclipse.buckminster.core.maxParallelMaterializations=4'
'org.eclipse.buckminster.core.maxParallelResolutions=4'
[java] org.eclipse.buckminster.jdt.complianceLevel set to the value
'1.5'
[java] Doing full workspace refresh
[java] Waiting for jobs to end
[java] org.osgi.service.prefs.BackingStoreException: There is no
active target platform
[java] at
org.eclipse.buckminster.pde.prefs.TargetVariableHandler.set( TargetVariableHandler.java:61)
[java] at
org.eclipse.buckminster.core.commands.SetPreference.internal Run(SetPreference.java:66)
[java] at
org.eclipse.buckminster.core.commands.WorkspaceCommand.run(W orkspaceCommand.java:99)
[java] at
org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:155)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 41)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 35)
[java] at
org.eclipse.buckminster.cmdline.Headless.start(Headless.java :189)
[java] at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:79)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:618)
[java] at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
[java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Re: "There is no active target platform" when setting buckminster preference [message #384952 is a reply to message #384951] Wed, 06 May 2009 09:56 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Oisin,
Not sure why this doesn't work. If you set the targetPlatformPath first of all, that indeed should define the active
platform.

Can you try using the listtargets command and see what it reports after the targetPlatformPath has been set? It should
list your platform as:

* Directory /shared/stp/platforms/3.5M7/eclipse linux,gtk,ppc

The '*' indicates that it's active.

An explanation of the new commands and preferences can be found here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=267725

HTH,
Thomas Hallgren


Oisin Hurley wrote:
> Thanks to Thomas and the eclipse.ini workaround, I've got past getting
> the latest Buckminster for 3.5 stream installed. Next on the menu is an
> exception that comes up as I set the preferences from an Ant script
>
> org.osgi.service.prefs.BackingStoreException: There is no active target
> platform
>
> (full stack at end of posting)
>
> Looking at the code in TargetVariableHandler.java, it appears to use
> the provisional target management stuff in PDE and for some reason
> PDE considers there to be no target platform.
> Even if I set the org.eclipse.buckminster.pde.targetPlatformPath
> preference to point to the platform *before* running the other
> preferences, this exception still occurs.
>
> Rummaging through the code I did see that there is another preference
>
> org.eclipse.buckminster.pde.targetDefinition
>
> but I'm not sure how to use it and my attempt to point it to my target
> platform directory (like the targetPlatformPath) was rejected .
>
> I'm not sure where to go from here - I'm currently looking for some
> documentation on the ITargetPlatformService etc, but this
> could be a simple configuration error, or somesuch.
>
> cheers
> --oh
>
> Ant---------------------------------------------
> [java] Executing
> '/opt/public/stp/apps/ibm-java2-sdk-5.0-6.0-linux-ppc/jre/bi n/java' with
> arguments:
> [java] '-Djava.io.tmpdir=/shared/stp/builds/05may09/3.5M7/stp/b0/te mp'
> [java] '-Dproject.source=file:/opt/public/stp/builds/05may09/trunk'
> [java] '-Dproject.build=file:/opt/public/stp/builds/05may09/3.5M7/s tp/'
> [java] '-Dproject.repo='
> [java] '-Dproject.root=file:/opt/public/stp/builds/05may09/'
> [java] '-Dproject.component='
> [java] '-Dproject.tag=trunk'
> [java] '-jar' [java]
> '/shared/stp/platforms/buckminster/3.5/buckminster/plugins/o rg.eclipse.equinox.launcher_1.0.200.v20090429-1630.jar'
> [java] '-data' [java]
> '/shared/stp/builds/05may09/3.5M7/stp/b0/working/build/works pace'
> [java] '--displaystacktrace'
> [java] '--loglevel'
> [java] 'DEBUG'
> [java] 'org.eclipse.buckminster.core.prefs.setpreference'
> [java] 'org.eclipse.buckminster.jdt.complianceLevel=1.5'
> [java] 'org.eclipse.buckminster.pde.targetArch=ppc'
> [java] 'org.eclipse.buckminster.pde.targetOS=linux'
> [java] 'org.eclipse.buckminster.pde.targetWS=gtk'
> [java] 'org.eclipse.buckminster.pde.targetNL=en_US'
> [java]
> 'org.eclipse.buckminster.pde.targetPlatformPath=/shared/stp/ platforms/3.5M7/eclipse'
>
> [java] 'org.eclipse.buckminster.core.maxParallelMaterializations=4'
> [java] 'org.eclipse.buckminster.core.maxParallelResolutions=4'
>
>
> Stack--------------------------------------------
>
> buckminster.setup.preferences:
> [echo] .... set preferences for Buckminster [java]
> org.eclipse.buckminster.core.prefs.setpreference
> 'org.eclipse.buckminster.jdt.complianceLevel=1.5'
> 'org.eclipse.buckminster.pde.targetArch=ppc'
> 'org.eclipse.buckminster.pde.targetOS=linux'
> 'org.eclipse.buckminster.pde.targetWS=gtk'
> 'org.eclipse.buckminster.pde.targetNL=en_US'
> 'org.eclipse.buckminster.pde.targetPlatformPath=/shared/stp/ platforms/3.5M7/eclipse'
> 'org.eclipse.buckminster.core.maxParallelMaterializations=4'
> 'org.eclipse.buckminster.core.maxParallelResolutions=4'
> [java] org.eclipse.buckminster.jdt.complianceLevel set to the value
> '1.5'
> [java] Doing full workspace refresh
> [java] Waiting for jobs to end
> [java] org.osgi.service.prefs.BackingStoreException: There is no
> active target platform
> [java] at
> org.eclipse.buckminster.pde.prefs.TargetVariableHandler.set( TargetVariableHandler.java:61)
>
> [java] at
> org.eclipse.buckminster.core.commands.SetPreference.internal Run(SetPreference.java:66)
>
> [java] at
> org.eclipse.buckminster.core.commands.WorkspaceCommand.run(W orkspaceCommand.java:99)
>
> [java] at
> org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:155)
>
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 41)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 35)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.start(Headless.java :189)
> [java] at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
>
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:79)
>
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> [java] at java.lang.reflect.Method.invoke(Method.java:618)
> [java] at
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> [java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> [java] at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> [java] at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
>
Re: "There is no active target platform" when setting buckminster preference [message #384954 is a reply to message #384952] Wed, 06 May 2009 10:34 Go to previous messageGo to next message
Oisin Hurley is currently offline Oisin HurleyFriend
Messages: 204
Registered: July 2009
Senior Member
Thomas Hallgren wrote:

> Can you try using the listtargets command and see what it reports after the
targetPlatformPath has been set? It should
> list your platform as:

I seem to be having a dual experience, depending on how
Buckminster is called.

If I just go in at the command line and issue this command,
then it works as expected:

$ buckminster org.eclipse.buckminster.pde.lstargets
Using workspace at
file:/opt/public/stp/platforms/buckminster/3.5/workspace/ ...
* Directory /shared/stp/platforms/3.5M7/eclipse : linux,gtk,ppc/en_US
Running Platform : linux,gtk,ppc/en_US

However, the automated build use an Ant macrodef for
a buckminster command (see [0]), then no luck - I don't
get an active platform.

To get around this, I've hard-coded the Buckminster
installation with a set of preferences for build.eclipse.org,
which allows me to get on to the resolution phase.

This brings me to another issue to do with subversion,
not seemingly related to the previous one, which I'll
have to dig into more. Basically, the subversive plugin
can't seem to find the source code when given the
correct URL - I see a message

[java] org.eclipse.stp.sca.feature.frascati:eclipse.feature: Trying
provider
svn( http://dev.eclipse.org/svnroot/stp/org.eclipse.stp.sca-tools /org.eclipse.stp.sca/tags/3.5M7/features/{0})
..
..
[java] Found URL_NON_EXISTENT exception from subversion version 1.4.2
langage default
[java] Remote folder does not exist {0}

Thanks for the input and the link to the instructions
for the new command!

cheers
--oh
Re: "There is no active target platform" when setting buckminster preference [message #384956 is a reply to message #384954] Wed, 06 May 2009 10:55 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Oisin Hurley wrote:
> I seem to be having a dual experience, depending on how
> Buckminster is called.
>
> If I just go in at the command line and issue this command,
> then it works as expected:
>
> $ buckminster org.eclipse.buckminster.pde.lstargets
> Using workspace at
> file:/opt/public/stp/platforms/buckminster/3.5/workspace/ ...
> * Directory /shared/stp/platforms/3.5M7/eclipse : linux,gtk,ppc/en_US
> Running Platform : linux,gtk,ppc/en_US
>
> However, the automated build use an Ant macrodef for a buckminster
> command (see [0]), then no luck - I don't
> get an active platform.
> To get around this, I've hard-coded the Buckminster installation with a
> set of preferences for build.eclipse.org,
> which allows me to get on to the resolution phase.
>
A bugzilla with an attachment that provokes this problem would be greatly appreciated although I do understand that you
might not have time for that. Not right now at least :-)

> This brings me to another issue to do with subversion,
> not seemingly related to the previous one, which I'll
> have to dig into more. Basically, the subversive plugin
> can't seem to find the source code when given the correct URL - I see a
> message
>
> [java] org.eclipse.stp.sca.feature.frascati:eclipse.feature: Trying
> provider
> svn( http://dev.eclipse.org/svnroot/stp/org.eclipse.stp.sca-tools /org.eclipse.stp.sca/tags/3.5M7/features/{0})
>
> .
> .
> [java] Found URL_NON_EXISTENT exception from subversion version 1.4.2
> langage default
> [java] Remote folder does not exist {0}
>
This looks like normal debugging output that is part of Buckminsters search for components. Do you get any subsequent
errors that seem related?

- thomas
Re: "There is no active target platform" when setting buckminster preference [message #385129 is a reply to message #384956] Wed, 06 May 2009 12:30 Go to previous messageGo to next message
Oisin Hurley is currently offline Oisin HurleyFriend
Messages: 204
Registered: July 2009
Senior Member
Thomas Hallgren wrote:

> A bugzilla with an attachment that provokes this problem would be greatly
appreciated although I do understand that you
> might not have time for that. Not right now at least :-)

You are right there, Thomas :) I'll be happy to provide a
bugzilla etc just as soon as I can get a spare hour :)


> This looks like normal debugging output that is part of Buckminsters search
for components. Do you get any subsequent
> errors that seem related?

You're right - I apologise - I forgot to include a chunk of
text from the output (doh). It looks like its the same issue
that came up before. I'll continue that thread [0].

cheers
--oh

[0]
http://www.eclipse.org/newsportal/article.php?id=971&gro up=eclipse.tools.buckminster#971
Re: "There is no active target platform" when setting buckminster [SOLUTION] [message #385131 is a reply to message #384954] Wed, 06 May 2009 23:09 Go to previous messageGo to next message
Oisin Hurley is currently offline Oisin HurleyFriend
Messages: 204
Registered: July 2009
Senior Member
Just want to close the loop on this one. It's not a
bug, it's a behavioural change.

Oisin Hurley wrote:
> I seem to be having a dual experience, depending on how
> Buckminster is called.
> If I just go in at the command line and issue this command,
> then it works as expected:
[deletia]
> However, the automated build use an Ant macrodef for
> a buckminster command (see [0]), then no luck - I don't
> get an active platform.

The issue is one of ordering. To set the buckminster
preferences correctly, you must first set the platform
using one buckminster invocation, then set the rest
of the preferences using a second. Otherwise there
will be a complaint of 'no active target platform'.

Once I changed my single set preferences action in
the ant script to two separate ones (below), the issue
went away.

<!-- set the platform first -->
<buckminster command="org.eclipse.buckminster.core.prefs.setpreference">
<args>
<arg
value="org.eclipse.buckminster.pde.targetPlatformPath=${platform} "/>
</args>
</buckminster>

<!-- set the other prefs -->
<buckminster command="org.eclipse.buckminster.core.prefs.setpreference">
<args>
... the other preferences
</args>
</buckminster>

Previously I had just one setpreference action, which included
all of the preferences to be set, including the targetPlatform.

This could be one for the doc.

cheers
--oh
Re: "There is no active target platform" when setting buckminster [SOLUTION] [message #385132 is a reply to message #385131] Thu, 07 May 2009 05:48 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Oisin,
Thanks for looking deeper into this and that you got it working. I'll investigate this further once things cool down a
bit. The behavior you're experiencing is not intended. You should be able to set everything in one single invocation
provided that you start with the target platform path.

- thomas

Oisin Hurley wrote:
> Just want to close the loop on this one. It's not a bug, it's a
> behavioural change.
>
> Oisin Hurley wrote:
>> I seem to be having a dual experience, depending on how
>> Buckminster is called.
>> If I just go in at the command line and issue this command,
>> then it works as expected:
> [deletia]
>> However, the automated build use an Ant macrodef for a buckminster
>> command (see [0]), then no luck - I don't
>> get an active platform.
>
> The issue is one of ordering. To set the buckminster
> preferences correctly, you must first set the platform
> using one buckminster invocation, then set the rest
> of the preferences using a second. Otherwise there
> will be a complaint of 'no active target platform'.
>
> Once I changed my single set preferences action in
> the ant script to two separate ones (below), the issue
> went away.
> <!-- set the platform first -->
> <buckminster command="org.eclipse.buckminster.core.prefs.setpreference">
> <args>
> <arg
> value="org.eclipse.buckminster.pde.targetPlatformPath=${platform} "/>
> </args>
> </buckminster>
>
> <!-- set the other prefs -->
> <buckminster command="org.eclipse.buckminster.core.prefs.setpreference">
> <args>
> ... the other preferences
> </args>
> </buckminster>
>
> Previously I had just one setpreference action, which included
> all of the preferences to be set, including the targetPlatform.
>
> This could be one for the doc.
>
> cheers
> --oh
>
Previous Topic:Something is wrong with current 3.5 headless update site
Next Topic:Plug-in org.eclipse.buckminster.jarprocessor was unable to load class org.eclips
Goto Forum:
  


Current Time: Thu Sep 19 15:29:23 GMT 2024

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

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

Back to the top