Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 235557

Summary: Launcher includes org.eclipse.osgi.services 2 time in config.ini
Product: [RT] RAP Reporter: Adrian Stefanescu <stefanescu.a>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Adrian Stefanescu CLA 2008-06-04 05:55:29 EDT
Build ID: eclipse 3.4 RC2

Steps To Reproduce:
1.Remove the launch configuration.
2.Create a new RAP launch configuration. org.eclipse.osgi.services will be added 2 times to the config.ini and this causes an error with the service registry because it adds 16 service in staid of 8 and it generates and array exception 
If org.eclipse.osgi.services plugin is removed from launch, both entries from config.ini are removed, and they are added back when org.eclipse.osgi.services is added back to the launch in the bundles tab


More information:
Comment 1 Adrian Stefanescu CLA 2008-06-04 06:00:53 EDT
java.lang.ArrayStoreException
	at java.lang.System.arraycopy(Native Method)
	at java.util.ArrayList.toArray(Unknown Source)
	at org.eclipse.ui.internal.services.WorkbenchServiceRegistry.getSourceProviders(WorkbenchServiceRegistry.java:140)
	at org.eclipse.ui.internal.services.SourceProviderService.readRegistry(SourceProviderService.java:104)
	at org.eclipse.ui.internal.Workbench$38.runWithException(Workbench.java:1598)
	

This is the exception.

there is a providers array that contains double the number of services
Comment 2 Benjamin Muskalla CLA 2009-08-07 09:19:39 EDT

*** This bug has been marked as a duplicate of bug 270884 ***