Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 247352 - Can't find BundleGroup with p2 installed Eclipse
Summary: Can't find BundleGroup with p2 installed Eclipse
Status: CLOSED DUPLICATE of bug 236709
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 242621
  Show dependency tree
 
Reported: 2008-09-15 16:46 EDT by Bing Xu CLA
Modified: 2009-06-30 09:53 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bing Xu CLA 2008-09-15 16:46:21 EDT
Build ID: Eclipse 3.4 -  I20080617-2000

Steps To Reproduce:
1. Install a shared-install Eclipse with p2 installer.
2. Install TPTP using Software Update....
3. Can't start Agent Controller

Investigation found that "IBundleGroup groups[] = provider.getBundleGroups()" in the following code (at the end) does not return anything.

IBundleGroupProvider providers[] = Platform.getBundleGroupProviders();
if (providers.length == 0){
	Bundle b = Platform.getBundle("org.eclipse.update.configurator");
	try{
	    if (b != null)
	    b.start(Bundle.START_TRANSIENT);
        }
	catch (Exception e){
	}
	providers = Platform.getBundleGroupProviders();
}
		
for (int i = 0; i < providers.length; i++) {

IBundleGroupProvider provider = providers[i];
IBundleGroup groups[] = provider.getBundleGroups();
....
}

More information:
If I install Eclipse using Eclipse zip file and then install TPTP through Software Update then it works.
Comment 1 Oleg Besedin CLA 2008-09-15 17:01:47 EDT
This does seem to be the same as the bug 236709.
Comment 2 John Arthorne CLA 2008-09-15 19:24:34 EDT
Correct, p2 does not implement IBundleGroupProvider. This is currently only implemented by legacy platform Update Manager, which isn't included in the installer.

*** This bug has been marked as a duplicate of bug 236709 ***
Comment 3 Paul Slauenwhite CLA 2009-06-30 09:26:47 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 4 Paul Slauenwhite CLA 2009-06-30 09:53:27 EDT
This enhancement/defect was mistaken closed as part of the TPTP 4.6 Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes) since the originator of this enhancement/defect has an inactive Bugzilla account.  If this enhancement/defect is still unresolved and reproducible, please re-open.