Invalid thread access

Hi all.

I’ve got this message when trying to execute my solution in web-client

invalid thread access

This is the log

!ENTRY com.servoy.eclipse.model 4 0 2012-01-24 00:36:07.671
!MESSAGE Cant open external browser
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.widgets.Display.error(Display.java:1249)
at org.eclipse.swt.widgets.Display.checkDevice(Display.java:755)
at org.eclipse.swt.widgets.Display.getActiveShell(Display.java:1437)
at org.eclipse.ui.internal.browser.WebBrowserUtil.openError(WebBrowserUtil.java:86)
at org.eclipse.ui.internal.browser.ExternalBrowserInstance.openURL(ExternalBrowserInstance.java:66)
at com.servoy.eclipse.debug.actions.StartWebClientActionDelegate$2.run(StartWebClientActionDelegate.java:133)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

This error only appears in Internet Explorer, in Google Chrome works fine.

Version: 6.0.4 - build 1227
Windows XP Service Pack 3
Internet Explorer v.7.0.5730.13
MySQL 5

What are your web browser settings in Preferences->General->Web Browser?

Help, I have the same problem in my Servoy Developer since the upgrade in v7 (I have the 7.1 now) : I can’t run the debug in WebClient.

I have nothing in the log file, but only this error message :

[attachment=0]servoy_webclient_error.png[/attachment]

This message appears for any browser (I tried IE, Firefox or Google)

Strange thing : I have this problem only in one workspace. In the other workspaces, it works.

In advance, thank you !

Hi, is the error you get the same as the stack in the first post on this topic? (please refer to the workspace log)
Also, do you have any parameters added to the browser settings from Window->Preferences->General->Web Browser?

Regards,
Andrei

Excuse me, I didn’t know that it exists a log file for the workspace. I have the same thing that the first post on this topic :

!ENTRY com.servoy.eclipse.model 4 0 2013-05-06 16:38:51.688
!MESSAGE Cant open external browser
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.SWT.error(SWT.java:4168)
	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.getActiveShell(Display.java:1467)
	at org.eclipse.ui.internal.browser.WebBrowserUtil.openError(WebBrowserUtil.java:86)
	at org.eclipse.ui.internal.browser.ExternalBrowserInstance.openURL(ExternalBrowserInstance.java:53)
	at com.servoy.eclipse.debug.actions.StartWebClientActionDelegate$3.run(StartWebClientActionDelegate.java:151)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

To be precise, it works fine with Firefox but not with IE 9.

There is no parameter in the Preferences (for Firefox or IE) :
[attachment=1]svy_firefox.png[/attachment]

[attachment=0]svy_ie.png[/attachment]

Hi,

In Window->Preferences->General->Web Browser, do you have use internal or external web browser checked there?
Also, can you please copy and paste the contents of your servoy.ini file? (it should be located in the same directory your servoy.exe file is)

Regards,
Andrei

I had “internal browser” checked but if I try with “external browser” I have the same problem.

Here the servoy.ini :

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
--launcher.XXMaxPermSize
256m
-vmargs
-Dnativeswing.interface.inprocess.useExternalSWTDisplay=true
-Dnativeswing.dependencies.checkVersions=false
-Dsun.awt.disableMixing=true
-Xms40m
-Xmx512m
-XX:MaxPermSize=512M

Thank you!

I am not sure what is going on here; i think it’s best if you create a case so we can have a more detailed, in depth look.

Regards,
Andrei