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
Hi,

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(SWT.java:4491)
	at org.eclipse.swt.SWT.error(SWT.java:4406)
	at org.eclipse.swt.SWT.error(SWT.java:4377)
	at org.eclipse.swt.widgets.Display.error(Display.java:1258)
	at org.eclipse.swt.widgets.Display.checkDevice(Display.java:764)
	at org.eclipse.swt.widgets.Display.getHighContrast(Display.java:1872)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.setCSSContextVariables(E4Application.java:312)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:293)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:620)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at my.MyApplication.start(MyApplication.java:52)


Seems like my startup configuration is missing something.

Have you an idea ?

Thanks.




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: 876
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.

Brian.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Disappearing Error Dialog
Next Topic:How does one launch an E4 Application from another?
Goto Forum:
  


Current Time: Sun Sep 20 09:14:03 GMT 2020

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

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

Back to the top