Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » site.p2 fails with NPE
site.p2 fails with NPE [message #512395] Thu, 04 February 2010 17:10 Go to next message
Carsten Reckord is currently offline Carsten ReckordFriend
Messages: 139
Registered: July 2009
Senior Member
Aaaaand me again... :)

Now that materialization and testing work again, I still can't get my site to build. I don't know if this problem is on buckminster's side
of things or on p2's, but the P2SiteGenerator always fails with a NPE caused by the IArtifactRepositoryManager service not being registered.
org.eclipse.equinox.internal.p2.artifact.repository.Activato r.addingService(ServiceReference) has not (yet?) been called when the repository
is created, leading to

java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.artifact.repository.simple.S impleArtifactRepository.setProperty(SimpleArtifactRepository .java:967)
at org.eclipse.buckminster.pde.tasks.P2SiteGenerator.run(P2Site Generator.java:308)
at org.eclipse.buckminster.pde.tasks.P2SiteGenerator.internalPe rform(P2SiteGenerator.java:427)
at org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:201)
Re: site.p2 fails with NPE [message #512401 is a reply to message #512395] Thu, 04 February 2010 22:49 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hmm, that's odd. I had that problem and thought I had it fixed. This happened when the declarative services (ds) bundle
wasn't started. I guess you're using the absolute latest 3.6?

On what platform are you running? Do you get this with the sample that you provided in bug 301798?

- thomas


On 02/04/2010 10:55 PM, Carsten Reckord wrote:
> Aaaaand me again... :)
>
> Now that materialization and testing work again, I still can't get my
> site to build. I don't know if this problem is on buckminster's side of
> things or on p2's, but the P2SiteGenerator always fails with a NPE
> caused by the IArtifactRepositoryManager service not being registered.
> org.eclipse.equinox.internal.p2.artifact.repository.Activato r.addingService(ServiceReference)
> has not (yet?) been called when the repository is created, leading to
>
> java.lang.NullPointerException
> at
> org.eclipse.equinox.internal.p2.artifact.repository.simple.S impleArtifactRepository.setProperty(SimpleArtifactRepository .java:967)
>
> at
> org.eclipse.buckminster.pde.tasks.P2SiteGenerator.run(P2Site Generator.java:308)
>
> at
> org.eclipse.buckminster.pde.tasks.P2SiteGenerator.internalPe rform(P2SiteGenerator.java:427)
>
> at
> org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:201)
>
>
>
Re: site.p2 fails with NPE [message #512402 is a reply to message #512401] Thu, 04 February 2010 22:59 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Ahh, now I see. This is not the ds problem at all. The setProperty() method in SimpleArtifactRepository is not using the
agent to obtain the manager. This is a p2 problem. I'll deal with it and get back to you.

- thomas


On 02/04/2010 11:49 PM, Thomas Hallgren wrote:
> Hmm, that's odd. I had that problem and thought I had it fixed. This
> happened when the declarative services (ds) bundle wasn't started. I
> guess you're using the absolute latest 3.6?
>
> On what platform are you running? Do you get this with the sample that
> you provided in bug 301798?
>
> - thomas
>
>
> On 02/04/2010 10:55 PM, Carsten Reckord wrote:
>> Aaaaand me again... :)
>>
>> Now that materialization and testing work again, I still can't get my
>> site to build. I don't know if this problem is on buckminster's side of
>> things or on p2's, but the P2SiteGenerator always fails with a NPE
>> caused by the IArtifactRepositoryManager service not being registered.
>> org.eclipse.equinox.internal.p2.artifact.repository.Activato r.addingService(ServiceReference)
>>
>> has not (yet?) been called when the repository is created, leading to
>>
>> java.lang.NullPointerException
>> at
>> org.eclipse.equinox.internal.p2.artifact.repository.simple.S impleArtifactRepository.setProperty(SimpleArtifactRepository .java:967)
>>
>>
>> at
>> org.eclipse.buckminster.pde.tasks.P2SiteGenerator.run(P2Site Generator.java:308)
>>
>>
>> at
>> org.eclipse.buckminster.pde.tasks.P2SiteGenerator.internalPe rform(P2SiteGenerator.java:427)
>>
>>
>> at
>> org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:201)
>>
>>
>>
>>
>
Re: site.p2 fails with NPE [message #514259 is a reply to message #512402] Sat, 13 February 2010 06:29 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Thomas,
I am encountering this same issue with the buckminster 3.6 I downloaded this morning. I downloaded from this location:
http://download.eclipse.org/tools/buckminster/headless-3.6/

or is there another download location with nightly builds?

gr. Martin

Thomas Hallgren wrote:
> Ahh, now I see. This is not the ds problem at all. The setProperty()
> method in SimpleArtifactRepository is not using the agent to obtain the
> manager. This is a p2 problem. I'll deal with it and get back to you.
>
> - thomas
>
>
> On 02/04/2010 11:49 PM, Thomas Hallgren wrote:
>> Hmm, that's odd. I had that problem and thought I had it fixed. This
>> happened when the declarative services (ds) bundle wasn't started. I
>> guess you're using the absolute latest 3.6?
>>
>> On what platform are you running? Do you get this with the sample that
>> you provided in bug 301798?
>>
>> - thomas
>>
>>
>> On 02/04/2010 10:55 PM, Carsten Reckord wrote:
>>> Aaaaand me again... :)
>>>
>>> Now that materialization and testing work again, I still can't get my
>>> site to build. I don't know if this problem is on buckminster's side of
>>> things or on p2's, but the P2SiteGenerator always fails with a NPE
>>> caused by the IArtifactRepositoryManager service not being registered.
>>> org.eclipse.equinox.internal.p2.artifact.repository.Activato r.addingService(ServiceReference)
>>>
>>>
>>> has not (yet?) been called when the repository is created, leading to
>>>
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.equinox.internal.p2.artifact.repository.simple.S impleArtifactRepository.setProperty(SimpleArtifactRepository .java:967)
>>>
>>>
>>>
>>> at
>>> org.eclipse.buckminster.pde.tasks.P2SiteGenerator.run(P2Site Generator.java:308)
>>>
>>>
>>>
>>> at
>>> org.eclipse.buckminster.pde.tasks.P2SiteGenerator.internalPe rform(P2SiteGenerator.java:427)
>>>
>>>
>>>
>>> at
>>> org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:201)
>>>
>>>
>>>
>>>
>>>
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: site.p2 fails with NPE [message #514270 is a reply to message #514259] Sat, 13 February 2010 10:07 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Martin,
You are using the right update site. I'm surprised that you get an NPE and I'm fairly certain that it isn't the same one
that we experienced earlier. We have green Hudson builds with CDO using this build.

Can you please run with --displaystacktrace so that we can see where this NPE comes from?

Thanks,
- thomas


On 02/13/2010 07:29 AM, Martin Taal wrote:
> Hi Thomas,
> I am encountering this same issue with the buckminster 3.6 I downloaded
> this morning. I downloaded from this location:
> http://download.eclipse.org/tools/buckminster/headless-3.6/
>
> or is there another download location with nightly builds?
>
> gr. Martin
>
Re: site.p2 fails with NPE [message #514285 is a reply to message #514270] Sat, 13 February 2010 17:00 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Thomas,
It indeed works better now! I can build and test (although the test results are not yet found but that's another story).

One thing I have not yet working is the sdk feature. I tried to replicate the cdo structure but I get this:
Doing full workspace refresh
[java] Waiting for jobs to end
[java] org.eclipse.buckminster.core.metadata.AmbigousComponentExcep tion: More then one version of component null
is known to Buckminster
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:368)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.g etOrderedActionList(PerformManager.java:392)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:413)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:285)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:297)

I have run with buckminster debug:
https://build.eclipse.org/hudson/job/emf-teneo-nightly/41/co nsole

gr. Martin

Thomas Hallgren wrote:
> Hi Martin,
> You are using the right update site. I'm surprised that you get an NPE
> and I'm fairly certain that it isn't the same one that we experienced
> earlier. We have green Hudson builds with CDO using this build.
>
> Can you please run with --displaystacktrace so that we can see where
> this NPE comes from?
>
> Thanks,
> - thomas
>
>
> On 02/13/2010 07:29 AM, Martin Taal wrote:
>> Hi Thomas,
>> I am encountering this same issue with the buckminster 3.6 I downloaded
>> this morning. I downloaded from this location:
>> http://download.eclipse.org/tools/buckminster/headless-3.6/
>>
>> or is there another download location with nightly builds?
>>
>> gr. Martin
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: site.p2 fails with NPE [message #514306 is a reply to message #514285] Sat, 13 February 2010 22:06 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Don't particularly like that back trace :-). Something is obviously not right. Can you please add a bugzilla?

Thanks,
- thomas

On 02/13/2010 06:00 PM, Martin Taal wrote:
> Hi Thomas,
> It indeed works better now! I can build and test (although the test
> results are not yet found but that's another story).
>
> One thing I have not yet working is the sdk feature. I tried to
> replicate the cdo structure but I get this:
> Doing full workspace refresh
> [java] Waiting for jobs to end
> [java] org.eclipse.buckminster.core.metadata.AmbigousComponentExcep tion:
> More then one version of component null is known to Buckminster
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:368)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.g etOrderedActionList(PerformManager.java:392)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:413)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:285)
>
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:297)
>
>
> I have run with buckminster debug:
> https://build.eclipse.org/hudson/job/emf-teneo-nightly/41/co nsole
>
> gr. Martin
>
> Thomas Hallgren wrote:
>> Hi Martin,
>> You are using the right update site. I'm surprised that you get an NPE
>> and I'm fairly certain that it isn't the same one that we experienced
>> earlier. We have green Hudson builds with CDO using this build.
>>
>> Can you please run with --displaystacktrace so that we can see where
>> this NPE comes from?
>>
>> Thanks,
>> - thomas
>>
>>
>> On 02/13/2010 07:29 AM, Martin Taal wrote:
>>> Hi Thomas,
>>> I am encountering this same issue with the buckminster 3.6 I downloaded
>>> this morning. I downloaded from this location:
>>> http://download.eclipse.org/tools/buckminster/headless-3.6/
>>>
>>> or is there another download location with nightly builds?
>>>
>>> gr. Martin
>>>
>
>
Re: site.p2 fails with NPE [message #514318 is a reply to message #514306] Sun, 14 February 2010 02:26 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Me neither :-)

I updated the bugzilla I already had for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=302153

gr. Martin

Thomas Hallgren wrote:
> Don't particularly like that back trace :-). Something is obviously not
> right. Can you please add a bugzilla?
>
> Thanks,
> - thomas
>
> On 02/13/2010 06:00 PM, Martin Taal wrote:
>> Hi Thomas,
>> It indeed works better now! I can build and test (although the test
>> results are not yet found but that's another story).
>>
>> One thing I have not yet working is the sdk feature. I tried to
>> replicate the cdo structure but I get this:
>> Doing full workspace refresh
>> [java] Waiting for jobs to end
>> [java] org.eclipse.buckminster.core.metadata.AmbigousComponentExcep tion:
>> More then one version of component null is known to Buckminster
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:368)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.a ddAttributeChildren(PerformManager.java:321)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.g etOrderedActionList(PerformManager.java:392)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:413)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:285)
>>
>>
>> [java] at
>> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:297)
>>
>>
>>
>> I have run with buckminster debug:
>> https://build.eclipse.org/hudson/job/emf-teneo-nightly/41/co nsole
>>
>> gr. Martin
>>
>> Thomas Hallgren wrote:
>>> Hi Martin,
>>> You are using the right update site. I'm surprised that you get an NPE
>>> and I'm fairly certain that it isn't the same one that we experienced
>>> earlier. We have green Hudson builds with CDO using this build.
>>>
>>> Can you please run with --displaystacktrace so that we can see where
>>> this NPE comes from?
>>>
>>> Thanks,
>>> - thomas
>>>
>>>
>>> On 02/13/2010 07:29 AM, Martin Taal wrote:
>>>> Hi Thomas,
>>>> I am encountering this same issue with the buckminster 3.6 I downloaded
>>>> this morning. I downloaded from this location:
>>>> http://download.eclipse.org/tools/buckminster/headless-3.6/
>>>>
>>>> or is there another download location with nightly builds?
>>>>
>>>> gr. Martin
>>>>
>>
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:Latest Buckminster3.6 does not download target platform
Next Topic:[Aggregator] Installation Problem
Goto Forum:
  


Current Time: Wed Apr 24 19:49:16 GMT 2024

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

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

Back to the top