[jbosstools-issues] [JBoss JIRA] (JBIDE-18681) 'Invalid thread access' error in central during shutdown

Denis Golovin (JIRA) issues at jboss.org
Mon Dec 1 15:16:40 EST 2014


     [ https://issues.jboss.org/browse/JBIDE-18681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Golovin closed JBIDE-18681.
---------------------------------


Applied fix still could have the same problems with lower probability, so it is really impossible to replicate manually now. 

I personally would  just removed code from stop method, because the only scenario when it called is closing or restarting eclipse, manual stopping is not the case for regular eclipse usage. One more option would be register workbench listener http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fui%2FIWorkbenchListener.html and that would work always.

Anyway closing it for now, because I am not able to replicate it manually anymore.


> 'Invalid thread access' error in central during shutdown
> --------------------------------------------------------
>
>                 Key: JBIDE-18681
>                 URL: https://issues.jboss.org/browse/JBIDE-18681
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: central
>    Affects Versions: 4.2.0.Final
>            Reporter: Denis Golovin
>            Assignee: Snjezana Peco
>              Labels: need-info
>             Fix For: 4.2.1.CR1, 4.3.0.Alpha1
>
>
> {code}Caused by: org.eclipse.swt.SWTException: Invalid thread access
> 	at org.eclipse.swt.SWT.error(SWT.java:4441)
> 	at org.eclipse.swt.SWT.error(SWT.java:4356)
> 	at org.eclipse.swt.SWT.error(SWT.java:4327)
> 	at org.eclipse.swt.widgets.Display.error(Display.java:1083)
> 	at org.eclipse.swt.widgets.Display.createDisplay(Display.java:840)
> 	at org.eclipse.swt.widgets.Display.create(Display.java:823)
> 	at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
> 	at org.eclipse.swt.widgets.Display.<init>(Display.java:714)
> 	at org.eclipse.swt.widgets.Display.<init>(Display.java:705)
> 	at org.eclipse.swt.widgets.Display.getDefault(Display.java:1403)
> 	at org.jboss.tools.central.JBossCentralActivator.stop(JBossCentralActivator.java:215)
> 	at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:827)
> 	at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:820)
> 	... 13 more{code}



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jbosstools-issues mailing list