Java OS X problem NEW!

Questions, answers, tips and ideas on Servoy Client

Re: Java OS X problem NEW!

Postby swingman » Thu Mar 21, 2013 1:18 pm

Hi all,

I can't load Servoy Smart Client 6.1.4 with latest Safari on Mac OS X 10.8.3 with latest Java 7, although the coffee-cup images comes up on the Servoy java tester.
However, I can access Servoy fine via Firefox, so it may be a Safari-specfic problem.

C
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: 1320
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Java OS X problem NEW!

Postby LXS » Thu Mar 21, 2013 2:35 pm

Entering the 4 commands again doen't help :(

When i install the latest Java 7 and try to start the jnlp the Java 7 splash screen is be shown, but it never disapears and no application will be started.
After that i entered the 4 commands again and up to now it happens nothing, when i start a jnlp file.

Does nobody else has any Web Start issues?
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 133
Joined: Thu Mar 01, 2007 12:00 am

Re: Java OS X problem NEW!

Postby LXS » Thu Mar 21, 2013 2:49 pm

I noticed when you have a working desktop icon and start with it, it still works. But when you go to the browser and try to start the jnlp file it fails.

Can please test somebody with the latest Mac OS X (10.8.3) to start a jnlp from the browser?

Thanks!
Alex
Last edited by LXS on Thu Mar 21, 2013 4:54 pm, edited 1 time in total.
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 133
Joined: Thu Mar 01, 2007 12:00 am

Re: Java OS X problem NEW!

Postby ptalbot » Thu Mar 21, 2013 3:01 pm

Could it be related to the new Mac OS "security" update:
https://threatpost.com/en_us/blogs/appl ... led-031513

I fear that once again Apple determination to get rid of any developer's freedom and turns us all into avid consumers of their greatness is showing again with a vengeance. What happened to 'Think different'? Looks like today it's turned into 'Think like a sheep'! :(
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
http://www.servoy-stuff.net
https://www.servoyforge.net
--------------------------------------------
Servoy 5.2.16 / 6.0.9 / 6.1.6 / 7.3.1
All OSes / Java 5 & 6 & 7
User avatar
ptalbot
 
Posts: 1616
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Java OS X problem NEW!

Postby ROCLASI » Fri Mar 22, 2013 12:34 pm

LXS wrote:I noticed when you have a working desktop icon and start with it, it still works. But when you go to the browser and try to start the jnlp file it fails.

Can please test somebody with the latest Mac OS X (10.8.3) to start a jnlp from the browser?

I just had an opportunity to test this and indeed it uses Java 7 for new downloads. Already downloaded clients continue to work with Java 6.
Servoy 6 and up seem to work fine with Java 7 on the Mac. Servoy 5.2 however seem to have some issues.
I guess it's really time to upgrade everything to Servoy 6.1.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Twitter: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5343
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Java OS X problem NEW!

Postby david » Fri Mar 22, 2013 7:38 pm

ROCLASI wrote:I guess it's really time to upgrade everything to Servoy 6.1.


To 6.1 and web client.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Java OS X problem NEW!

Postby rafig » Sat Mar 23, 2013 5:18 pm

ROCLASI wrote:I just had an opportunity to test this and indeed it uses Java 7 for new downloads. Already downloaded clients continue to work with Java 6.
Servoy 6 and up seem to work fine with Java 7 on the Mac. Servoy 5.2 however seem to have some issues.
I guess it's really time to upgrade everything to Servoy 6.1.

I think the latest versions of 5.2 work ok with Java 7 (I have an issue at a client with 5.2.6 with a form not loading, but once I updated to newest 5.2.x it was fine), but I am also trying to move everything to 6.1 (just in time for Servoy 7 :lol: ).

Rafi
Servoy Certified Developer
Image
rafig
 
Posts: 562
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Java OS X problem NEW!

Postby LXS » Mon Mar 25, 2013 11:24 am

Now we have a really strange behaviour...
The last way i tried was to restore the TimeMachine Backup to 2013-03-12. On this date the customer had a working Servoy 5.2.15 client on the Mac.
But now when you click the Servoy desktop icon it says again that no JRE is installed!
When you go to Safari and start via jnlp file the file only will be downloaded. When you doubleclick the jnlp in Finder, nothing happens. :(
I've no idea what's going on! Maybe Apple has made a silent update just after the restore?! How can it be when we make a TimeMachine restore that the issue still occurs?

Now we have 2 customers with this issues and in our company are also 3 workmates (2 Macs and 1 Linux with Java 1.7.0_17).
After one week of trying this is a serious problem for us now!
I can't believe that we are the only one with this problems (Servoy 5.2.15).
Any ideas how to solve this problem? :(

Thanks a lot!
Alex
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 133
Joined: Thu Mar 01, 2007 12:00 am

Re: Java OS X problem NEW!

Postby ROCLASI » Mon Mar 25, 2013 12:56 pm

Hi Alex,

Is Java enabled in Safari ?
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Twitter: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5343
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Java OS X problem NEW!

Postby LXS » Mon Mar 25, 2013 1:29 pm

Yes, Java is enabled in the Safari settings.
I've noticed an interesting thing:

We are using Servoy 5.2.15 and now i've copied this installation and updated to Servoy 5.2.16.
We clicked the jnlp file in Safari and the file was downloaded. After going to Finder and Open with -> Java Web Start the Java 6 splash and the download window was shown.
I thought that Servoy 5.2.16 would be the solution of the problem, but after completing the download, the window disappears but no Servoy Smart Client was started.

When you start the same jnlp file again no splash is shown. There's just a very short time the javaws process visible in the Activity monitor of Mac OS X and nothing happens again.

On the same machine i've tried to start a Java Web Start demo solution from Oracle:
http://www.pscode.org/jws/printtest.jnlp (from this website: http://www.pscode.org/jws/api.html#cbs)

This works without any problems. So i think it's related to Servoy?
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 133
Joined: Thu Mar 01, 2007 12:00 am

Re: Java OS X problem NEW!

Postby jcompagner » Mon Mar 25, 2013 2:21 pm

what do you have specified as vm args in the admin page?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8302
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Java OS X problem NEW!

Postby LXS » Mon Mar 25, 2013 2:41 pm

the vm args are the following:

servoy.vmClientArgs:
-XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=3600000 -XstartOnFirstThread -Dsun.awt.disableMixing=true -Djavaws.useDJNativeSwing=true -Dhttp.agent=DJ

servoy.initialClientHeap: 256
servoy.maxClientHeap: 768

Meanwhile i've tested with a new Servoy 5.2.16 installation with the sample crm. Here the click on the jnlp file works.
So i also think, it must be a difference in the servoy.properties between our installation and the new fresh installation.

I've added the jnlp file from our Servoy 5.2.15 server, which isn't working as attachment in a zip file.
Attachments
servoy_client_Spotlight.zip
jnlp which isn't working
(2.06 KiB) Downloaded 134 times
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 133
Joined: Thu Mar 01, 2007 12:00 am

Re: Java OS X problem NEW!

Postby jcompagner » Mon Mar 25, 2013 2:59 pm

delete: -Dsun.awt.disableMixing=true -Djavaws.useDJNativeSwing=true -Dhttp.agent=DJ

that is somehow causing issues especially in the latest releases, this is because of the BrowserSuite but that doesn't really work i think in java 7 (on the mac) that good if at all.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8302
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Java OS X problem NEW!

Postby LXS » Mon Mar 25, 2013 3:15 pm

I've tried it with only

-XX:SoftRefLRUPolicyMSPerMB=3600000

which is the default in a new installation and it works. So the vm args seems to be the problem. Thanks for you hint Johan! I'll try deleting it!
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 133
Joined: Thu Mar 01, 2007 12:00 am

Re: Java OS X problem NEW!

Postby LXS » Mon Mar 25, 2013 3:45 pm

It seems to be the the parameter -XX:MaxPermSize=128m and it's position in the args is the problem.
In my config the parameter was the first one. When i move it to the end, the smart client starts.
So this vm args string seems to work:

-XX:SoftRefLRUPolicyMSPerMB=3600000 -XstartOnFirstThread -Dsun.awt.disableMixing=true -Djavaws.useDJNativeSwing=true -Dhttp.agent=DJ -XX:MaxPermSize=128m

I've expected that the order of the argument isn't important. What do you think about it? Is this really the solution? It seems to be...
Nevertheless i'll remove the other parameter how you've recommended.

I'll test this on the customers server and i hope it solves the problem.
Thank you very much!
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 133
Joined: Thu Mar 01, 2007 12:00 am

PreviousNext

Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 1 guest