Headless client problem on Mac OS X 10.5.3

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

Headless client problem on Mac OS X 10.5.3

Postby swingman » Sat Jul 05, 2008 11:20 am

We have switched a production server from Windows 2003 to Mac OS X;

Servoy version 3.5.6-build 519, repository version 31
java.vm.version=1.5.0_13-119
os.name=Mac OS X
os.version=10.5.3
os.arch=i386

We have some code which has worked fine on Windows 2003:

A call to plugins.file.createTempFile() is failing... looks like it is calling some UI stuff...

Code: Select all
java.awt.HeadlessException
       at java.awt.dnd.DropTarget.<init>(DropTarget.java:79)
       at java.awt.dnd.DropTarget.<init>(DropTarget.java:121)
       at apple.laf.CUIAquaFileChooser.installListeners(CUIAquaFileChooser.java:165)
       at apple.laf.CUIAquaFileChooser.installUI(CUIAquaFileChooser.java:122)
       at javax.swing.JComponent.setUI(JComponent.java:653)
       at javax.swing.JFileChooser.updateUI(JFileChooser.java:1795)
       at javax.swing.JFileChooser.setup(JFileChooser.java:366)
       at javax.swing.JFileChooser.<init>(JFileChooser.java:332)
       at javax.swing.JFileChooser.<init>(JFileChooser.java:285)
       at com.servoy.extensions.plugins.file.FileProvider.<init>(Unknown Source)
       at com.servoy.extensions.plugins.file.FilePlugin.getScriptObject(Unknown Source)
       at com.servoy.j2db.scripting.i.get(Unknown Source)
       at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:726)
       at org.mozilla.javascript.gen.c541.call(save_temp_image:3)
       at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1254)
       at org.mozilla.javascript.gen.c538.call(process_book:63)
       at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1254)
       at org.mozilla.javascript.gen.c537.call(process_updates:8)
       at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1254)
       at org.mozilla.javascript.gen.c295.call(aut_process_web_updates:3)
       at com.servoy.j2db.scripting.f.executeFunction(Unknown Source)
       at com.servoy.j2db.plugins.ClientPluginAccessProvider$a.run(Unknown Source)
       at com.servoy.j2db.server.headlessclient.g.invokeLater(Unknown Source)
       at com.servoy.j2db.plugins.ClientPluginAccessProvider$1.run(Unknown Source)
       at com.servoy.j2db.util.as.run(Unknown Source)
       at java.lang.Thread.run(Thread.java:613)



Any ideas?
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Postby IT2Be » Sat Jul 05, 2008 7:39 pm

I've seen the same behavior too this week Christian.

I even wrote my own little file plug-in, as part of the project, to overcome this issue.

What happens is that, at initialization of the plug-in class, the class tries to call/create a filechooser.
I don't know why though.
I think you need to create a case for it...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby swingman » Sat Jul 05, 2008 8:48 pm

Interesting.

I was thinking it might be some kind of permissions problem... the headless client not being able to write to /tmp...
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Postby IT2Be » Sat Jul 05, 2008 9:06 pm

but did you switch versions?

because I discovered this on my server running windows server 2003...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby swingman » Sun Jul 06, 2008 1:39 am

We went from 3.5.2 or 3.5.3 on Windows 2003 to 3.5.5/3.5.6 on OS X.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Postby IT2Be » Sun Jul 06, 2008 6:04 am

I have it with 3.5.6...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby swingman » Mon Jul 07, 2008 11:10 am

Created case 145872
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Postby swingman » Wed Jul 09, 2008 1:15 am

Servoy has fixed this issue. Thanks Rob, for the quick response.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Postby rgansevles » Wed Jul 09, 2008 8:50 am

An updated version can be downloaded from

http://downloads.servoy.com/downloads/b ... n/file.jar

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


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 6 guests

cron