Problem on file browse on fileystem after update to Java 7

Questions, answers, tips and ideas on Servoy Client

Problem on file browse on fileystem after update to Java 7

Postby albace » Mon Nov 26, 2012 5:23 pm

Hello

Using java 7 (any subversion) when I try to open a file from filesystem using the funtion

Code: Select all
plugins.file.showFileOpenDialog()


The result is this always an empty browser windows.
I have done test using servoy version 5-6 and the result is always the same.
If I use java 6 (any subversion) all works has expected.

Should I modify the code for use this plugin on java 7 or this is a bug?

Regards
Attachments
err.png
err.png (12.67 KiB) Viewed 3664 times
albace
 
Posts: 11
Joined: Fri Jul 09, 2004 6:02 pm

Re: Problem on file browse on fileystem after update to Java

Postby Andrei Costache » Mon Nov 26, 2012 5:54 pm

What args do you pass to the function (on WebClient you need a callback also)?

Regards,
Andrei
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Problem on file browse on fileystem after update to Java

Postby albace » Mon Nov 26, 2012 6:08 pm

Hi

it does't works using any arument:

usually I use :

Code: Select all
plugins.file.showFileOpenDialog(0, null, false)


or


Code: Select all
plugins.file.showFileOpenDialog(1, null, false)


This error happen only of smartclient, webclinet works well passing the right arguments.

Regards
albace
 
Posts: 11
Joined: Fri Jul 09, 2004 6:02 pm

Re: Problem on file browse on fileystem after update to Java

Postby Andrei Costache » Tue Nov 27, 2012 9:28 am

Do you have any errors in the logs? (in servoy_log.txt or in the workspace/.metadata/.log file)
Using Java 7 and Servoy 6.1 I was unable to reproduce this (using code as you mentioned above, in smart client).

Regards,
Andrei
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Problem on file browse on fileystem after update to Java

Postby albace » Tue Nov 27, 2012 5:44 pm

Hello

No , there is any kind of error,
I have done some test and servoy 6.1 on windows 7 work
Servoy 5.2.15 with java 7 on windows 7 doesn’t works.
As you can see I have the same error using the default import option from menu.
I have a lot of installation with Servoy 5.2.15 and all client that have updated to java 7 have the same problem
Widnows XP, Windows 7 32 and 64 bit, Linux and Macox so I suppose the problem is spefic to the version 5

Regards
Attachments
error2.png
error2.png (39.11 KiB) Viewed 3608 times
albace
 
Posts: 11
Joined: Fri Jul 09, 2004 6:02 pm

Re: Problem on file browse on fileystem after update to Java

Postby albace » Wed Nov 28, 2012 10:28 am

Hello

Got it, the problem is caused by a LAF, removing it no issue.
This LAF is named “tiny” so if you use it please note this problem.

Thanks for help

Regards
albace
 
Posts: 11
Joined: Fri Jul 09, 2004 6:02 pm


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 10 guests