Headless client problem on Mac OS X 10.5.3

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…

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?

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…

Interesting.

I was thinking it might be some kind of permissions problem… the headless client not being able to write to /tmp…

but did you switch versions?

because I discovered this on my server running windows server 2003…

We went from 3.5.2 or 3.5.3 on Windows 2003 to 3.5.5/3.5.6 on OS X.

I have it with 3.5.6…

Created case 145872

Servoy has fixed this issue. Thanks Rob, for the quick response.

An updated version can be downloaded from

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

Rob