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

Bug 295924

Summary: Contacts Demo throws IllegalThreadAccess
Product: [RT] RAP Reporter: Stefan Röck <stefan.roeck>
Component: DemoAssignee: Project Inbox <rap-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Stefan Röck CLA 2009-11-23 15:08:18 EST
When calling the contacts demo, I get an http 500:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.eclipse.swt.SWTException: Invalid thread access
	org.eclipse.swt.SWT.error(SWT.java:2621)
	org.eclipse.swt.SWT.error(SWT.java:2541)
	org.eclipse.swt.SWT.error(SWT.java:2512)
	org.eclipse.swt.widgets.Widget.error(Widget.java:932)
	org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:863)
	org.eclipse.swt.widgets.Decorations.getMenuBar(Decorations.java:99)
	org.eclipse.swt.widgets.Shell.getMenuBounds(Shell.java:488)
	org.eclipse.swt.widgets.Shell.access$1(Shell.java:486)
	org.eclipse.swt.widgets.Shell$1.getMenuBounds(Shell.java:554)
	org.eclipse.swt.internal.widgets.shellkit.ShellLCA.preserveMenuBounds(ShellLCA.java:349)
	org.eclipse.swt.internal.widgets.shellkit.ShellLCA.readData(ShellLCA.java:66)
	org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$1.doVisit(DisplayLCA.java:320)
	org.eclipse.swt.internal.widgets.WidgetTreeVisitor$AllWidgetTreeVisitor.visit(WidgetTreeVisitor.java:32)
	org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:46)
	org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readData(DisplayLCA.java:327)
	org.eclipse.rwt.internal.lifecycle.ReadData.execute(ReadData.java:26)
	org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:211)
	org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:118)
	java.lang.Thread.run(Thread.java:619)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
Apache Tomcat/5.5
Comment 1 Ivan Furnadjiev CLA 2009-12-01 01:23:19 EST
Is this the online e4 contacts demo - http://rap.eclipsesource.com/e4-contacts? Running for me without problems.
Comment 2 Stefan Röck CLA 2009-12-15 15:23:38 EST
It seems to be a problem if the browser window is very small. I can reproduce it with a resolution of 	~600-400 pixels.
Comment 3 Ivan Furnadjiev CLA 2009-12-16 02:58:28 EST
There was a similar problem with the Examples Demo ( see bug 292532 ), but we can't reproduce it any more.
Comment 4 Stefan Röck CLA 2010-01-27 06:30:33 EST
Ivan, I can still reproduced it very easily in Firefox 3.6 by resizing the browser to a very small height an then call the URL. What other info do you need?
Comment 5 Benjamin Muskalla CLA 2010-01-27 06:37:49 EST
Can reproduce this with a very small browser window. Will take a look as I'm just about to rework the e4-related stuff.
Comment 6 Ralf Sternberg CLA 2011-10-17 19:54:49 EDT
This problem seems to be related to the e4-contacts demo. Since this demo is not online anymore and we do not plan to evolve it, I'll close this bug now.