Headless Client use

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

Re: Headless Client use

Postby madimane » Thu Sep 09, 2010 5:15 am

Hi Rob,

I tried the solution in a real server-smartclient as you suggested and it works :!:
I hope there's an explanation for why it does longer works on developer

I opened a case about that, what should I do?

Thank you for your support
Othmane himadi
Analyst / Developper
Freelancer
---------------------
Whether we want it or not, being a developer means documenting our code is a necessity
User avatar
madimane
 
Posts: 85
Joined: Tue Oct 13, 2009 5:16 am
Location: Montréal,QC,Canada

Re: Headless Client use

Postby rgansevles » Fri Sep 10, 2010 9:35 am

This will be fixed in Servoy 5.2.2

The problem was caused by a threading difference in smart client and web client/smart client in developer

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Headless Client use

Postby madimane » Fri Sep 10, 2010 4:43 pm

Ok nice, Thank you for the information
Othmane himadi
Analyst / Developper
Freelancer
---------------------
Whether we want it or not, being a developer means documenting our code is a necessity
User avatar
madimane
 
Posts: 85
Joined: Tue Oct 13, 2009 5:16 am
Location: Montréal,QC,Canada

Re: Headless Client use

Postby ptalbot » Sat Sep 11, 2010 2:27 am

Hi Rob,

I tried the submitted sample solution in 5.2.1+ from latest SVN source (so containing your fix - rev 1031) and found that although it is now running fine in Smart client, this is still not working in web client.

In Web client, I ran into that Exception:
Code: Select all
Exception in thread "pool-5-thread-1" org.apache.wicket.WicketRuntimeException: There is no application attached to current thread pool-5-thread-1
   at org.apache.wicket.Application.get(Application.java:179)
   at com.servoy.j2db.server.headlessclient.SessionClient.unsetThreadLocals(SessionClient.java:645)
   at com.servoy.j2db.server.headlessclient.SessionClient$3.afterExecute(SessionClient.java:1252)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Which is obviously in a Runnable, but I'm not sure where it is called from.

Also after a try in web client (and the above exception occuring), relaunching Smart client and trying again fail to call the queued method (although the login works) anymore.

Any idea?
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Headless Client use

Postby rgansevles » Mon Sep 13, 2010 1:52 pm

Patrick,

The exception is a different issue, not caused by my fix.
This is fixed in next release as well.

Thanks,

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Headless Client use

Postby ptalbot » Mon Sep 13, 2010 3:22 pm

Great. Thanks Rob!
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Previous

Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 6 guests

cron