Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » More bucky 3.6 p2 agent trouble...
More bucky 3.6 p2 agent trouble... [message #515361] Thu, 18 February 2010 14:50 Go to next message
Carsten Reckord is currently offline Carsten ReckordFriend
Messages: 139
Registered: July 2009
Senior Member
Hi,

I am using the p2.publish.featuresAndBundles task in an ant target called by Bucky's ant actor. This works fine in the IDE with Helios M5
and I20100217-1031. But with the latest headless Bucky, I get

....
Caused by: java.lang.NullPointerException
at org.eclipse.equinox.p2.publisher.Publisher.getService(Publis her.java:168)
at org.eclipse.equinox.p2.publisher.Publisher.loadArtifactRepos itory(Publisher.java:142)
at org.eclipse.equinox.p2.publisher.Publisher.createArtifactRep ository(Publisher.java:105)
at org.eclipse.equinox.internal.p2.publisher.ant.AbstractPublis hTask.initializeRepositories(AbstractPublishTask.java:101)
at org.eclipse.equinox.internal.p2.publisher.ant.FeaturesAndBun dlesPublisherTask.execute(FeaturesAndBundlesPublisherTask.ja va:30)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
... 40 more

The problem here is AbstractPublishTask.getProvisioningAgent() returning null, i.e. no IProvisioningAgent service is registered in the
context. An IProvisioningAgentProvider is available however, and using IProvisioningAgentProvider.createAgent(null) here apparently makes my
build work.

As with my last P2 troubles, I am not sure if this is a Bucky bug or a P2 one, so I'm asking here instead of filing a bug.

Regards,
Carsten
Re: More bucky 3.6 p2 agent trouble... [message #515413 is a reply to message #515361] Thu, 18 February 2010 17:22 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Sounds like yet another issue with "default agent" - a p2 area in
transition in 3.6. Go ahead and log it as an issue, if it is for p2 (or
PDE), we can move it.

For those not aware of the issues - in earlier releases p2 could only
work with a single "agent" at a time which caused much confusion and
trouble when writing p2 tools and when provisioning operations should
not be executed on the running configuration.

It takes a while to find all code that makes assumptions about default
agent...

Regards
- henrik

On 2/18/10 3:50 PM, Carsten Reckord wrote:
> Hi,
>
> I am using the p2.publish.featuresAndBundles task in an ant target
> called by Bucky's ant actor. This works fine in the IDE with Helios M5
> and I20100217-1031. But with the latest headless Bucky, I get
>
> ...
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.equinox.p2.publisher.Publisher.getService(Publis her.java:168)
> at
> org.eclipse.equinox.p2.publisher.Publisher.loadArtifactRepos itory(Publisher.java:142)
>
> at
> org.eclipse.equinox.p2.publisher.Publisher.createArtifactRep ository(Publisher.java:105)
>
> at
> org.eclipse.equinox.internal.p2.publisher.ant.AbstractPublis hTask.initializeRepositories(AbstractPublishTask.java:101)
>
> at
> org.eclipse.equinox.internal.p2.publisher.ant.FeaturesAndBun dlesPublisherTask.execute(FeaturesAndBundlesPublisherTask.ja va:30)
>
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
> ... 40 more
>
> The problem here is AbstractPublishTask.getProvisioningAgent() returning
> null, i.e. no IProvisioningAgent service is registered in the context.
> An IProvisioningAgentProvider is available however, and using
> IProvisioningAgentProvider.createAgent(null) here apparently makes my
> build work.
>
> As with my last P2 troubles, I am not sure if this is a Bucky bug or a
> P2 one, so I'm asking here instead of filing a bug.
>
> Regards,
> Carsten
Re: More bucky 3.6 p2 agent trouble... [message #515527 is a reply to message #515361] Fri, 19 February 2010 09:17 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Carsten,
In case of doubt where to file a bug, you can always file it on Buckminster. If we feel it belongs somewhere else, we
will just move it.

Regards,
Thomas Hallgren


On 02/18/2010 03:50 PM, Carsten Reckord wrote:
> Hi,
>
> I am using the p2.publish.featuresAndBundles task in an ant target
> called by Bucky's ant actor. This works fine in the IDE with Helios M5
> and I20100217-1031. But with the latest headless Bucky, I get
>
> ....
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.equinox.p2.publisher.Publisher.getService(Publis her.java:168)
> at
> org.eclipse.equinox.p2.publisher.Publisher.loadArtifactRepos itory(Publisher.java:142)
>
> at
> org.eclipse.equinox.p2.publisher.Publisher.createArtifactRep ository(Publisher.java:105)
>
> at
> org.eclipse.equinox.internal.p2.publisher.ant.AbstractPublis hTask.initializeRepositories(AbstractPublishTask.java:101)
>
> at
> org.eclipse.equinox.internal.p2.publisher.ant.FeaturesAndBun dlesPublisherTask.execute(FeaturesAndBundlesPublisherTask.ja va:30)
>
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
> ... 40 more
>
> The problem here is AbstractPublishTask.getProvisioningAgent() returning
> null, i.e. no IProvisioningAgent service is registered in the context.
> An IProvisioningAgentProvider is available however, and using
> IProvisioningAgentProvider.createAgent(null) here apparently makes my
> build work.
>
> As with my last P2 troubles, I am not sure if this is a Bucky bug or a
> P2 one, so I'm asking here instead of filing a bug.
>
> Regards,
> Carsten
Previous Topic:Variable directory location with target files
Next Topic:How to prevent: JRE container on the classpath is not a perfect match to the 'J2SE-1.5'
Goto Forum:
  


Current Time: Sun Jun 24 03:52:01 GMT 2018

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

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

Back to the top