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

Bug 292653

Summary: Exception in Fancy Theme
Product: [RT] RAP Reporter: Moritz Post <mpost>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Moritz Post CLA 2009-10-19 06:14:03 EDT
While working on RAP application using the new fancy theme design, i got occasional exceptions with the CoolBarManager. It could not be reproduced reliable but one time it showed up right after opening a view.

Oct 19, 2009 8:55:34 AM org.eclipse.rwt.internal.lifecycle.RWTLifeCycle afterPhaseExecution
SEVERE: Could not execute PhaseListener after phase 'PROCESS_ACTION'.
java.lang.ArrayIndexOutOfBoundsException: -1
	at org.eclipse.rap.internal.design.example.managers.CoolBarManager.manageOverflow(CoolBarManager.java:335)
	at org.eclipse.rap.internal.design.example.managers.CoolBarManager.update(CoolBarManager.java:319)
	at org.eclipse.rap.internal.design.example.managers.CoolBarManager$2.controlResized(CoolBarManager.java:130)
	at org.eclipse.swt.events.ControlEvent.dispatchToObserver(ControlEvent.java:68)
	at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:44)
	at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:128)
	at org.eclipse.swt.widgets.Control.notifyResize(Control.java:1915)
	at org.eclipse.swt.widgets.Composite.notifyResize(Composite.java:766)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:1906)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:803)
	at org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:348)
	at org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:276)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:434)
	at org.eclipse.swt.widgets.Composite$1.run(Composite.java:761)
	at org.eclipse.rwt.lifecycle.ProcessActionRunner.add(ProcessActionRunner.java:36)
	at org.eclipse.swt.widgets.Composite.notifyResize(Composite.java:757)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:1906)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:803)
	at org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:348)
	at org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:276)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:434)
	at org.eclipse.swt.widgets.Composite$1.run(Composite.java:761)
	at org.eclipse.rwt.lifecycle.ProcessActionRunner.add(ProcessActionRunner.java:36)
	at org.eclipse.swt.widgets.Composite.notifyResize(Composite.java:757)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:1906)
	at org.eclipse.swt.widgets.Shell$1.setBounds(Shell.java:571)
	at org.eclipse.swt.internal.graphics.TextSizeDeterminationHandler.afterPhase(TextSizeDeterminationHandler.java:140)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.afterPhaseExecution(RWTLifeCycle.java:392)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:194)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:302)
	at org.eclipse.swt.widgets.Display.sleep(Display.java:793)
	at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:361)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2404)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2362)
	at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2213)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:431)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.jface.internal.databinding.realmadapter.RealmAdapter.run(RealmAdapter.java:44)
	at org.eclipse.rap.ui.internal.RealmAdapterHook.runWithDefault(RealmAdapterHook.java:48)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:434)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
	at com.ats.ui.showcase.ShowCaseApplication.createUI(ShowCaseApplication.java:15)
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:92)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:231)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:119)
	at java.lang.Thread.run(Thread.java:619)
	at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:68)
Comment 1 Ivan Furnadjiev CLA 2009-10-19 08:58:42 EDT
.

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