Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » org.eclipse.swt.SWTException: Invalid thread access
org.eclipse.swt.SWTException: Invalid thread access [message #99198] Tue, 22 July 2008 08:34 Go to next message
Eclipse UserFriend
Originally posted by: mike.xmos.com

Hi,

I'm trying to understand the exception handling behaviour in RAP and
noticed that if I throw a null pointer exception inside
postWindowCreate() then all susequent session creations result in:

Jul 22, 2008 9:29:49 AM org.mortbay.jetty.servlet.ServletHandler handle
SEVERE: /ide?session_id=6178:
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:1683)
at org.eclipse.swt.SWT.error(SWT.java:1603)
at org.eclipse.swt.SWT.error(SWT.java:1574)
at org.eclipse.swt.widgets.Widget.error(Widget.java:775)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:718)
at org.eclipse.swt.widgets.Control.getBounds(Control.java:692)
at
....

Is this a bug?

Mike
Re: org.eclipse.swt.SWTException: Invalid thread access [message #99316 is a reply to message #99198] Tue, 22 July 2008 09:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

I think this could be solved in CVS-Head (see Bug #232289).


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Mike Wrighton [mailto:mike@xmos.com]
Bereitgestellt: Dienstag, 22. Juli 2008 10:35
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: org.eclipse.swt.SWTException: Invalid thread access
Betreff: org.eclipse.swt.SWTException: Invalid thread access

Hi,

I'm trying to understand the exception handling behaviour in RAP and
noticed that if I throw a null pointer exception inside
postWindowCreate() then all susequent session creations result in:

Jul 22, 2008 9:29:49 AM org.mortbay.jetty.servlet.ServletHandler handle
SEVERE: /ide?session_id=6178:
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:1683)
at org.eclipse.swt.SWT.error(SWT.java:1603)
at org.eclipse.swt.SWT.error(SWT.java:1574)
at org.eclipse.swt.widgets.Widget.error(Widget.java:775)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:718)
at org.eclipse.swt.widgets.Control.getBounds(Control.java:692)
at
....

Is this a bug?

Mike
Re: org.eclipse.swt.SWTException: Invalid thread access [message #101360 is a reply to message #99316] Wed, 06 August 2008 13:51 Go to previous messageGo to next message
George Rus is currently offline George RusFriend
Messages: 14
Registered: July 2009
Junior Member
Hello!

I have the same problem, and, I don't know how to solve it.

Please help me!

Thanks!
Re: org.eclipse.swt.SWTException: Invalid thread access [message #101491 is a reply to message #101360] Thu, 07 August 2008 08:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

please provide a little more information about you problem, because the
question in this thread is about understanding the exception handling
mechanism of RAP. Mike has thrown deliberately an NPE, so I don't think
that this is really what you are doing. Do you have any stacktraces
available for example?

Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: george [mailto:rusgeorgedaniel@yahoo.com]
Bereitgestellt: Mittwoch, 6. August 2008 15:51
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: org.eclipse.swt.SWTException: Invalid thread access
Betreff: Re: org.eclipse.swt.SWTException: Invalid thread access

Hello!

I have the same problem, and, I don't know how to solve it.

Please help me!

Thanks!
Re: org.eclipse.swt.SWTException: Invalid thread access [message #101573 is a reply to message #101491] Thu, 07 August 2008 13:10 Go to previous messageGo to next message
George Rus is currently offline George RusFriend
Messages: 14
Registered: July 2009
Junior Member
I have a search box, and it works a while and after it returns this
exception.
I search in a database and if the first thing I do when I start the app is
the search it works, but if I do anything else and then I try to search it
crashes.

org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:1683)
at org.eclipse.swt.SWT.error(SWT.java:1603)
at org.eclipse.swt.SWT.error(SWT.java:1574)
at org.eclipse.swt.widgets.Widget.error(Widget.java:775)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:718)
at org.eclipse.swt.widgets.Table.deselectAll(Table.java:1490)
at
org.eclipse.jface.viewers.TableViewer.doDeselectAll(TableVie wer.java:271)
at
org.eclipse.jface.viewers.AbstractTableViewer.setSelectionTo Widget(AbstractTableViewer.java:894)
at
org.eclipse.jface.viewers.StructuredViewer.setSelectionToWid get(StructuredViewer.java:1678)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1370)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1326)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:1426)
at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer. java:542)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:1385)
at
org.eclipse.jface.viewers.ContentViewer.setContentProvider(C ontentViewer.java:229)
Re: org.eclipse.swt.SWTException: Invalid thread access [message #101627 is a reply to message #101573] Fri, 08 August 2008 08:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

is the search performed in a background thread/job?


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: george [mailto:rusgeorgedaniel@yahoo.com]
Bereitgestellt: Donnerstag, 7. August 2008 15:11
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: org.eclipse.swt.SWTException: Invalid thread access
Betreff: Re: org.eclipse.swt.SWTException: Invalid thread access

I have a search box, and it works a while and after it returns this
exception.
I search in a database and if the first thing I do when I start the app
is
the search it works, but if I do anything else and then I try to search
it
crashes.

org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:1683)
at org.eclipse.swt.SWT.error(SWT.java:1603)
at org.eclipse.swt.SWT.error(SWT.java:1574)
at org.eclipse.swt.widgets.Widget.error(Widget.java:775)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:718)
at org.eclipse.swt.widgets.Table.deselectAll(Table.java:1490)
at
org.eclipse.jface.viewers.TableViewer.doDeselectAll(TableVie wer.java:271
)
at
org.eclipse.jface.viewers.AbstractTableViewer.setSelectionTo Widget(Abstr
actTableViewer.java:894)
at
org.eclipse.jface.viewers.StructuredViewer.setSelectionToWid get(Structur
edViewer.java:1678)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(Structure
dViewer.java:1370)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(Structure
dViewer.java:1326)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java
:1426)
at
org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer. java:542)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java
:1385)
at
org.eclipse.jface.viewers.ContentViewer.setContentProvider(C ontentViewer
..java:229)
Re: org.eclipse.swt.SWTException: Invalid thread access [message #101690 is a reply to message #101627] Fri, 08 August 2008 11:25 Go to previous messageGo to next message
George Rus is currently offline George RusFriend
Messages: 14
Registered: July 2009
Junior Member
Hello!

The search is running in the main thread.
Re: org.eclipse.swt.SWTException: Invalid thread access [message #101700 is a reply to message #101690] Fri, 08 August 2008 13:45 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hm,

that's strange. Currently I don't have a clue how this could happen
without any background threads involved. Is it possible for you to
extract a little demo plug-in that simulates the search and reproduces
the problem? If so you could post the plug-in at this newsgroup, and we
could do a further investigation.


Ciao
Frank


-----Ursprüngliche Nachricht-----
Von: george [mailto:rusgeorgedaniel@yahoo.com]
Bereitgestellt: Freitag, 8. August 2008 13:25
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: org.eclipse.swt.SWTException: Invalid thread access
Betreff: Re: org.eclipse.swt.SWTException: Invalid thread access

Hello!

The search is running in the main thread.
Previous Topic:Platform.getProduct() alternative...
Next Topic:SpringSecurity (Acegi) integration
Goto Forum:
  


Current Time: Thu Apr 25 07:55:07 GMT 2024

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

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

Back to the top