Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Update application Eclipse Mars from Eclipse Kepler
Update application Eclipse Mars from Eclipse Kepler [message #1720988] Fri, 22 January 2016 10:36 Go to next message
labine labine is currently offline labine labineFriend
Messages: 10
Registered: December 2015
Junior Member

I'm trying to update my application to Eclipse Mars from Eclipse Kepler.

After I updated my target platform, i launch the application and the following exception is catched.
org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.widgets.Display.error(
	at org.eclipse.swt.widgets.Display.checkDevice(
	at org.eclipse.swt.widgets.Display.getHighContrast(
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.setCSSContextVariables(
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(
	at org.eclipse.ui.internal.Workbench$
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
	at my.MyApplication.start(

Seems like my startup configuration is missing something.

Have you an idea ?


Re: Update application Eclipse Mars from Eclipse Kepler [message #1721529 is a reply to message #1720988] Thu, 28 January 2016 04:24 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 877
Registered: January 2012
Senior Member

You haven't provided enough detail to help. What platform is this on? If OS X, make sure you run with -XstartOnFirstThread.

Are you sure your my.MyApplication.start() is being started on the main thread? Otherwise, this indicates that you're (accidentally) creating a Display instance from another thread, such as by calling Display.getDefault(). Put a breakpoint on Display's constructors and see how/when they're being created.

Previous Topic:Disappearing Error Dialog
Next Topic:How does one launch an E4 Application from another?
Goto Forum:

Current Time: Wed Jun 29 05:08:57 GMT 2022

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

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

Back to the top