Share

Jalopy Java Source Code Formatter

Tracker: Bugs

1 Eclipse: Invalid thread access - ID: 567314
Last Update: Settings changed ( marcohu )

When using jalopy ffor the first time after startup in
eclipse ( Version F2 ) I get the following error :

org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:1887)
at org.eclipse.swt.SWT.error(SWT.java:1819)
at org.eclipse.swt.widgets.Display.error(Display.java:501)
at
org.eclipse.swt.widgets.Display.checkDevice(Display.java:368)
at
org.eclipse.swt.widgets.Display.getSystemColor(Display.java:1020)
at
org.eclipse.jface.action.StatusLine.updateMessageLabel(StatusLine.java:468)

at
org.eclipse.jface.action.StatusLine.setMessage(StatusLine.java:368)
at
org.eclipse.jface.action.StatusLineManager.setMessage(StatusLineManager.jav
a:117)
at
org.eclipse.jface.action.SubStatusLineManager.setVisible(SubStatusLineManag
er.java:111)
at
org.eclipse.ui.internal.SubActionBars.getStatusLineManager(SubActionBars.ja
va:190)
at
de.hunsicker.jalopy.plugin.eclipse.EclipsePlugin.getStatusLine(EclipsePlugi
n.java:199)
at
de.hunsicker.jalopy.plugin.eclipse.EclipsePlugin.access$600(EclipsePlugin.j
ava:53)
at
de.hunsicker.jalopy.plugin.eclipse.EclipsePlugin$EclipseStatusBar.setText(E
clipsePlugin.java:426)
at
de.hunsicker.jalopy.plugin.AbstractPlugin.getJalopy(AbstractPlugin.java:434
)
at
de.hunsicker.jalopy.plugin.AbstractPlugin.access$600(AbstractPlugin.java:91
)
at
de.hunsicker.jalopy.plugin.AbstractPlugin$ActionWorker.construct(AbstractPl
ugin.java:918)
at
de.hunsicker.ui.util.SwingWorker$2.call(SwingWorker.java:318)
at
de.hunsicker.util.concurrent.FutureResult$1.run(FutureResult.java:224)
at
de.hunsicker.ui.util.SwingWorker.run(SwingWorker.java:339)
at java.lang.Thread.run(Unknown Source)



Dirk Jacobs ( dirkjacobs ) - 2002-06-11 08:50

1

Closed

Fixed

Marco Hunsicker

None

None

Public


Comments ( 7 )

Date: 2002-10-15 06:04
Sender: wsargent

Logged In: YES
user_id=47007

Happens to me too.


Date: 2002-09-03 18:36
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

I think I fixed it (as it don't happen for me, I'm not only pretty
sure :)

Will appear with the next release.


Date: 2002-08-27 08:17
Sender: rbtasker

Logged In: YES
user_id=593652

In my case it is happening only the first time your use Jalopy
after a fresh restart of Eclipse.

JDK = 1.3.0 Sun
OS = NT4 sp5

Richard


Date: 2002-08-27 06:39
Sender: rbtasker

Logged In: YES
user_id=593652

I have the same problem the first time I run Jalopy after I have
launched Eclipse (R2.0) with Jalopy 0.2.1

Here is the stacktrace:

org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:2117)
at org.eclipse.swt.SWT.error(SWT.java:2049)
at org.eclipse.swt.widgets.Display.error(Display.java:501)
at org.eclipse.swt.widgets.Display.checkDevice
(Display.java:368)
at org.eclipse.swt.widgets.Display.getSystemColor
(Display.java:1020)
at org.eclipse.jface.action.StatusLine.updateMessageLabel
(StatusLine.java:506)
at org.eclipse.jface.action.StatusLine.setMessage
(StatusLine.java:406)
at org.eclipse.jface.action.StatusLineManager.setMessage
(StatusLineManager.java:117)
at org.eclipse.jface.action.SubStatusLineManager.setVisible
(SubStatusLineManager.java:111)
at
org.eclipse.ui.internal.SubActionBars.getStatusLineManager
(SubActionBars.java:190)
at
de.hunsicker.jalopy.plugin.eclipse.EclipsePlugin.getStatusLin
e(EclipsePlugin.java:199)
at
de.hunsicker.jalopy.plugin.eclipse.EclipsePlugin.access$600
(EclipsePlugin.java:53)
at
de.hunsicker.jalopy.plugin.eclipse.EclipsePlugin$EclipseStatu
sBar.setText(EclipsePlugin.java:426)
at de.hunsicker.jalopy.plugin.AbstractPlugin.getJalopy
(AbstractPlugin.java:434)
at de.hunsicker.jalopy.plugin.AbstractPlugin.access$600
(AbstractPlugin.java:91)
at
de.hunsicker.jalopy.plugin.AbstractPlugin$ActionWorker.cons
truct(AbstractPlugin.java:918)
at de.hunsicker.ui.util.SwingWorker$2.call
(SwingWorker.java:318)
at de.hunsicker.util.concurrent.FutureResult$1.run
(FutureResult.java:224)
at de.hunsicker.ui.util.SwingWorker.run
(SwingWorker.java:339)
at java.lang.Thread.run(Thread.java:484)

Hope that helps
Richard


Date: 2002-06-15 10:18
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

So, after setting up Eclipe F2 under Sun JDK 1.3.1 on W2K I
could not reproduce this behaviour.

Could you please describe the exact steps that lead to the
error with your system?

Thanks.


Date: 2002-06-12 07:08
Sender: dirkjacobs

Logged In: YES
user_id=561237

It only happens once, after startup of eclipse. I'm working with
JDK 1.3.1 on Windows 2000


Date: 2002-06-11 20:18
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

Does is happen only once or continously after startup? What
JDK/platform?



Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
status_id Open 2002-11-13 00:03 marcohu
close_date - 2002-11-13 00:03 marcohu
summary Invalid thread access 2002-09-18 19:06 marcohu
resolution_id None 2002-09-03 18:36 marcohu
priority 5 2002-09-03 18:36 marcohu
assigned_to nobody 2002-06-11 20:18 marcohu