org.eclipse.swt.SWTException: Invalid thread access [message #99198] |
Tue, 22 July 2008 08:34 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #101491 is a reply to message #101360] |
Thu, 07 August 2008 08:52 |
Eclipse User |
|
|
|
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 #101627 is a reply to message #101573] |
Fri, 08 August 2008 08:06 |
Eclipse User |
|
|
|
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 #101700 is a reply to message #101690] |
Fri, 08 August 2008 13:45 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02869 seconds