Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Invalid Thread Access
Invalid Thread Access [message #114555] Fri, 05 December 2008 13:01 Go to next message
Andrej Dimic is currently offline Andrej DimicFriend
Messages: 77
Registered: July 2009
Member
Hi

may it be that there is a problem in RAP when a Shell-Windows is disposed
and there are disabled controls?
I used the Fileupload-Widget from the Sandbox along with the Demo-class
which i modified so that it fited my needs. When closing the window
shell.dispose() is called and afterwards, i get a "Invalid Thread Access"
if the controls were disabled.
So i do a updateEnabled() with "enabled" Flag to true before
shell.dispose() and the crash goes away.

I guess it could be a generic problem because i get "Invalid Thread
Access" from time to time in a situation that resembles the case above:
there is a Logon Winodw and when the Window is closed toolbar and menu
items are enabled / disabled. There also, i get "Invalid Thread Access".
But unfortunatly, not every time.

Thanks
Andrej
Re: Invalid Thread Access [message #114641 is a reply to message #114555] Fri, 05 December 2008 17:18 Go to previous messageGo to next message
Andrej Dimic is currently offline Andrej DimicFriend
Messages: 77
Registered: July 2009
Member
This is the Stack Trace i get:

org.eclipse.swt.SWTException: Invalid thread access
org.eclipse.swt.SWT.error(SWT.java:1757)
org.eclipse.swt.SWT.error(SWT.java:1677)
org.eclipse.swt.SWT.error(SWT.java:1648)
org.eclipse.swt.widgets.Widget.error(Widget.java:775)
org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:718)
org.eclipse.swt.widgets.Composite.getChildren(Composite.java :107)
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:49)
org.eclipse.rwt.lifecycle.WidgetUtil.find(WidgetUtil.java:19 7)
org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readF ocusControl(DisplayLCA.java:566)
org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readD ata(DisplayLCA.java:337)
org.eclipse.rwt.internal.lifecycle.ReadData.execute(ReadData .java:26)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLife Cycle(RWTLifeCycle.java:206)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:115)
java.lang.Thread.run(Thread.java:619)
Re: Invalid Thread Access [message #114752 is a reply to message #114641] Mon, 08 December 2008 08:45 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi,

looks like a bug. Could you file a bug report with a snippet?

Thanks,
Stefan.

adiinfo schrieb:
> This is the Stack Trace i get:
>
> org.eclipse.swt.SWTException: Invalid thread access
> org.eclipse.swt.SWT.error(SWT.java:1757)
> org.eclipse.swt.SWT.error(SWT.java:1677)
> org.eclipse.swt.SWT.error(SWT.java:1648)
> org.eclipse.swt.widgets.Widget.error(Widget.java:775)
> org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:718)
> org.eclipse.swt.widgets.Composite.getChildren(Composite.java :107)
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:49)
>
> org.eclipse.rwt.lifecycle.WidgetUtil.find(WidgetUtil.java:19 7)
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readF ocusControl(DisplayLCA.java:566)
>
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readD ata(DisplayLCA.java:337)
>
> org.eclipse.rwt.internal.lifecycle.ReadData.execute(ReadData .java:26)
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLife Cycle(RWTLifeCycle.java:206)
>
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:115)
>
> java.lang.Thread.run(Thread.java:619)
>
Previous Topic:Unnecessary mouseup/mousedown events in Tables
Next Topic:Failed to register resource if 2 session start simultaneously
Goto Forum:
  


Current Time: Tue Jan 31 13:06:53 GMT 2023

Powered by FUDForum. Page generated in 0.04084 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top