Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Application errororg.eclipse.swt.SWTException: Invalid thread access MAC java 7(Unable to luanch java application)
Application errororg.eclipse.swt.SWTException: Invalid thread access MAC java 7 [message #1058935] Wed, 15 May 2013 20:08
lak kaz is currently offline lak kazFriend
Messages: 5
Registered: May 2013
Junior Member
I am getting Application errororg.eclipse.swt.SWTException: Invalid thread access exception while starting Jave application.I recently upgraded to Java 1.7 on MAC. It was working fine with java 1.6. But after upgrade, i am unable to launch the application.
It is working fine from windows environment even after upgrade.
I am able to luanch the application from eclipse IDE.
But it is not working if i am trying to do from SIT/local port. I added the following arguments to my VM args after googing the exception:

<resources> <j2se version="1.5+" java-vm-args="-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts"/> </resources>



Please find logs attached

WARNING: could NOT find SYSLOG for ETLOG
***WARNING: Display must be created on main thread due to Cocoa restrictions.
05/06/13 11:36:39 LogListener: WARN: One or more bundles are not resolved because the following root constraints are not resolved:
05/06/13 11:36:40 LogListener: WARN: The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
05/06/13 11:36:40 LogListener: ERROR: Application errororg.eclipse.swt.SWTException: Invalid thread access
05/06/13 11:36:40 LogListener: ERROR: >> org.eclipse.swt.SWTException: Invalid thread access
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.SWT.error(SWT.java:4282)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.SWT.error(SWT.java:4197)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.SWT.error(SWT.java:4168)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.widgets.Display.error(Display.java:1065)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.widgets.Display.createDisplay(Display.java:822)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.widgets.Display.create(Display.java:805)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.widgets.Display.<init>(Display.java:696)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.swt.widgets.Display.<init>(Display.java:687)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:711)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
05/06/13 11:36:40 LogListener: ERROR: >> at com.etrade.tops.container.TopsContainerApplication.start(Unknown Source)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
05/06/13 11:36:40 LogListener: ERROR: >> at java.lang.reflect.Method.invoke(Method.java:601)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartMain.java:79)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
05/06/13 11:36:40 LogListener: ERROR: >> at org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain.java:57)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
05/06/13 11:36:40 LogListener: ERROR: >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
05/06/13 11:36:40 LogListener: ERROR: >> at java.lang.reflect.Method.invoke(Method.java:601)
05/06/13 11:36:40 LogListener: ERROR: >> at com.sun.javaws.Launcher.executeApplication(Unknown Source)
05/06/13 11:36:40 LogListener: ERROR: >> at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
05/06/13 11:36:40 LogListener: ERROR: >> at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
05/06/13 11:36:40 LogListener: ERROR: >> at com.sun.javaws.Launcher.run(Unknown Source)
05/06/13 11:36:40 LogListener: ERROR: >> at java.lang.Thread.run(Thread.java:722)
Shutting down JMSConsumer Service Instance
  • Attachment: TXT.rtf
    (Size: 32.11KB, Downloaded 287 times)
Previous Topic:Help
Next Topic:Eclipse 4 RCP (e4) documentation
Goto Forum:
  


Current Time: Thu Apr 25 20:01:18 GMT 2024

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

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

Back to the top