Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Non-deterministic null return value from getBundleDescription()
Non-deterministic null return value from getBundleDescription() [message #129161] Wed, 15 April 2009 15:37 Go to next message
No real name is currently offline No real nameFriend
Messages: 6
Registered: July 2009
Junior Member
Hi all,

We're running Eclipse in headless mode and computing classpaths for plugin
projects via BundleDescriptions. On some runs, we unexpectedly get null
as the return value from a call to
IPluginModelBase.getBundleDescription(). Here is the code:


private IPluginModelBase findModel(IProject p) {
return PDECore.getDefault().getModelManager().findModel(p);
}

IProject p = ...;
BundleDescription bd = findModel(p).getBundleDescription();

The documentation says that null can be returned if the project is in a
classic format, but we know that's not the case here since most of the
time getBundleDescription() works correctly.

Our guess is that we're hitting some kind of race condition, but I tried
running the above code in a Job that locks the whole workspace, and we
still saw the problem. I searched Bugzilla and didn't see anything
directly relevant. Any advice on this issue would be very welcome.
Thanks!

Best,
Manu
Re: Non-deterministic null return value from getBundleDescription() [message #129202 is a reply to message #129161] Wed, 15 April 2009 20:26 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 437
Registered: July 2009
Senior Member
You may want to ask this question on the PDE newsgroup. I'm not sure
what IPluginModelBase.getBundleDescription() does, but someone from PDE
should know.

Tom.
Re: Non-deterministic null return value from getBundleDescription() [message #129228 is a reply to message #129202] Wed, 15 April 2009 20:50 Go to previous message
No real name is currently offline No real nameFriend
Messages: 6
Registered: July 2009
Junior Member
Okay, thanks, will do.

-Manu
Previous Topic:[DS] Can someone point me to a service ranking example?
Next Topic:Update Sites and 3.5M6 strange missing touchpint error
Goto Forum:
  


Current Time: Sat Dec 20 21:42:38 GMT 2014

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

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