Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 270884 - [Contributions] WorkbenchServiceRegistry fails with ArrayStoreException
Summary: [Contributions] WorkbenchServiceRegistry fails with ArrayStoreException
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: Workbench (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.2 M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 235557 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-01 17:13 EDT by Vasko Tchoumatchenko CLA
Modified: 2009-08-07 09:19 EDT (History)
4 users (show)

See Also:


Attachments
RAP adaptation of the 264845 patch (2.11 KB, patch)
2009-04-01 17:13 EDT, Vasko Tchoumatchenko CLA
ruediger.herrmann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vasko Tchoumatchenko CLA 2009-04-01 17:13:51 EDT
Created attachment 130621 [details]
RAP adaptation of the 264845 patch

+++ This bug was initially created as a clone of Bug #264845 +++

Build ID: 1.2.0.20081221-2301


I'm starting a RAP application and receive an ArrayStoreException almost immediately (see below). Likely this is due to some extension that does not provide a class with the correct type. IMHO this case should be checked and ignored (or failed upon) with a log entry that enables the client to find out what he is doing wrong.

java.lang.ArrayStoreException
	at java.lang.System.arraycopy(Native Method)
	at java.util.ArrayList.toArray(ArrayList.java:304)
	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)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:32)
	at org.eclipse.rwt.internal.lifecycle.UICallBackManager.addSync(UICallBackManager.java:135)
	at org.eclipse.swt.widgets.Display$2.run(Display.java:652)
	at org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler.runNonUIThreadWithFakeContext(UICallBackServiceHandler.java:457)
	at org.eclipse.rwt.lifecycle.UICallBack.runNonUIThreadWithFakeContext(UICallBack.java:44)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:650)
	at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:110)
	at org.eclipse.ui.internal.Workbench.initializeDefaultServices(Workbench.java:1594)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1294)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
	at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2200)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:425)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:408)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
	at com.yoxos.server.build.rap.BuildWorkbench.createUI(BuildWorkbench.java:17)
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:92)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:228)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:116)
	at java.lang.Thread.run(Thread.java:613)
Comment 1 Rüdiger Herrmann CLA 2009-04-02 05:17:08 EDT
Applied patch to CVS HEAD
Comment 2 Benjamin Muskalla CLA 2009-08-07 09:19:39 EDT
*** Bug 235557 has been marked as a duplicate of this bug. ***