Invalid thread access

Forum to discuss the Web client version of Servoy.

Invalid thread access

Postby Roberto Blasco » Tue Jan 24, 2012 1:43 am

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
Un saludo. Roberto.

Madrid - Spain
Tfno: (+34) 625653066
E-mail: [email protected]
User avatar
Roberto Blasco
007
 
Posts: 341
Joined: Tue Apr 08, 2008 7:18 pm
Location: Madrid / Spain

Re: Invalid thread access

Postby Andrei Costache » Tue Jan 24, 2012 1:25 pm

What are your web browser settings in Preferences->General->Web Browser?
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Invalid thread access

Postby vincentc » Tue Apr 30, 2013 5:26 pm

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 :

servoy_webclient_error.png


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 !
You do not have the required permissions to view the files attached to this post.
vincentc
 
Posts: 56
Joined: Thu Aug 25, 2011 11:12 am

Re: Invalid thread access

Postby Andrei Costache » Thu May 02, 2013 3:08 pm

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
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Invalid thread access

Postby vincentc » Mon May 06, 2013 4:56 pm

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 :

Code: Select all
!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) :
svy_firefox.png


svy_ie.png
You do not have the required permissions to view the files attached to this post.
vincentc
 
Posts: 56
Joined: Thu Aug 25, 2011 11:12 am

Re: Invalid thread access

Postby Andrei Costache » Tue May 07, 2013 6:01 pm

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
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Invalid thread access

Postby vincentc » Wed May 15, 2013 10:57 am

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

Here the servoy.ini :

Code: Select all
-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!
vincentc
 
Posts: 56
Joined: Thu Aug 25, 2011 11:12 am

Re: Invalid thread access

Postby Andrei Costache » Fri May 17, 2013 10:47 am

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
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 2 guests