Mac OSX - SmartClient won't start application

We can’t start the smart-client anymore with Java 1.7.0_25 on OSX also… :evil:

We are using Servoy 6.0.5 (WE use a selfsigned certificate & signtester, to sign everything)
We tried all kinds of security settings in Java (suggested by Hans in another thread, but no solution yet.

this is what we see in the console, after that the smart-client shows up, but stays grey. (we can just hit close button, and the smart-client doe close nicely)

Java Web Start 10.25.2.15
Using JRE version 1.7.0_25-b15 Java HotSpot(TM) 64-Bit Server VM
User home directory = /Users/harjokompagnie
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
JNLP JREDesc in Component ignored: https://login.directmanager.nl:443/servoy-client/plugins/it2be-word/aspose-words.jar.jnlp
JNLP JREDesc in Component ignored: https://login.directmanager.nl:443/servoy-client/plugins/it2be-word/aspose-words.jar.jnlp
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/lib/j2db.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/lib/j2db.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/lib/js.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/lib/js.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/lib/commons-logging.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/lib/commons-logging.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/lib/rmitnl.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/lib/rmitnl.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/lib/networktnl.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/lib/networktnl.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/lib/httpclient.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/lib/httpclient.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/lib/httpcore.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/lib/httpcore.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/log4j.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/log4j.jar
INFO  - r                          - using direct connection
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/lib/jcifs.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/lib/jcifs.jar
INFO  - r                          - jcifs library found; NTLM support enabled
INFO  - r                          - using direct connection
INFO  - r                          - jcifs library found; NTLM support enabled
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/lib/MRJAdapter.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/lib/MRJAdapter.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/agent.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/agent.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/amortization.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/amortization.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/busy-v2.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/busy-v2.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/converters.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/converters.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/dateUtils.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/dateUtils.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/default_validators.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/default_validators.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/dialog.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/dialog.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/excel.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/excel.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/excelxport.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/excelxport.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/exchange.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/exchange.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/file.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/file.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/fileWatcher.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/fileWatcher.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/google.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/google.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/headlessclient.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/headlessclient.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/lib/jabsorb.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/lib/jabsorb.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/http.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/http.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/images.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/images.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-calendar.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-calendar.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-core/core-common.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-core/core-common.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-cryptor.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-cryptor.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-tools.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-tools.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-word.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-word.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/log.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/log.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/mail.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/mail.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/mailpro.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/mailpro.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/maintenance.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/maintenance.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/pdf_output.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/pdf_output.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/rawSQL.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/rawSQL.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/scanner_pro.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/scanner_pro.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/scheduler.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/scheduler.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/screenshot.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/screenshot.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/serialize.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/serialize.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/servoy_jasperreports.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/servoy_jasperreports.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/spellcheck.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/spellcheck.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/tabxport.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/tabxport.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/udp.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/udp.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/usermanager.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/usermanager.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/window.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/window.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/xmlreader.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/xmlreader.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/servoy_jasperreports/jasperreports-4.0.0.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/servoy_jasperreports/jasperreports-4.0.0.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-word/aspose-words-jdk16.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/it2be-word/aspose-words-jdk16.jar
Registering Commercial IT2BE Component runtime licenses for Direct ICT
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/support.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/support.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/servoy6support.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/servoy6support.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/mac_widgets.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/mac_widgets.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/mail.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/mail.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-core-1.0.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-core-1.0.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-calendar-2.0.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-calendar-2.0.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-contacts-3.0.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-contacts-3.0.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-docs-3.0.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-docs-3.0.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-media-1.0.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-media-1.0.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-client-1.0.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-client-1.0.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/ical4j.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/ical4j.jar
Missing Permissions manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-spreadsheet-3.0.jar
Missing Codebase manifest attribute for: https://login.directmanager.nl:443/plugins/drmaison-lib/google/gdata-spreadsheet-3.0.jar

Seems to have to do with checking self signed certificates. As a quick fix you can turn the check on that of:

http://screencast.com/t/vGWcstnO34

Just tried Harjo’s application and starts up fine after I changed this.

After a whole day of research i’ve recognized that the Browser Suite is the problem.
When the Servoy 5.2.16 installation does not contain Browser Suite all works fine and i can select my login fields.
But when Browser Suite is installed, i get the behaviour, that in my login solution the fields are disabled (i don’t know if the main solution works better).
I’ve tried it with Browser Suite 0.9.55 and 0.9.75 on Servoy 5.2.16 on a Mac with Java 1.6.0_51 (we still use this version, because on Mac it seems the only version which works on Servoy 5.2.x correctly in Dialogs with HTMLEditor).

The problem is, that we need the Browser Suite in our SmartClient Solution :(

I also tried it with Servoy 6.1.5 and Browser Suite 0.9.75 on the same Mac with Java 1.6.0_51 with the same results.
The login fields are not accessible.
So it seems that the Browser Suite does not work with Java 1.6.0_51 on any Servoy version :(

what kind of system args do you push to the client? do you have those special mac settings defined on the admin page? (servoy.vmClientArgs property)

remove that for a moment only have the default in there.

i’m using a fresh Servoy 6.1.5 installation and installed the Browser Suite. Now the vmArgs contains are the following:
-XX:SoftRefLRUPolicyMSPerMB=3600000 -XstartOnFirstThread -Dsun.awt.disableMixing=true -Djavaws.useDJNativeSwing=true -Djnlp.nativeswing.dependencies.checkVersions=false -Dhttp.agent=DJ

When i delete all args and save, there are still those args left:
-XX:SoftRefLRUPolicyMSPerMB=3600000

But it seems, that the args are the problem! Using Browser Suite 0.9.55 and 0.9.75 without the other arguments i can edit my login fields!! :)
Do you know what these arguments are good for or if they are needed?

-XstartOnFirstThread was a SWT requirement on Mac OS X up until recently. There’s been report that it’s no longer needed with Java 7, but it’s still needed with Java 6

-Dsun.awt.disableMixing=true is there because they’ve introduce the lightweight heavyweight component mixing in Java 6, except that the implementation is not entirely full proof and the DJNativeSwing lib have some code specifically for that which is dealing with lightweight component painting over heavyweight (like a menu on top of a SWT bean) that is working better, only you need to disable the default one.

-Djavaws.useDJNativeSwing=true is there so that the NativeInterface.initialize() iscalled from the main Thread (some code for this is part of Servoy’s J2DBClient code) which on Mac OS X (at least with previous versions of Java) is a requirement along with -XStartOnFirstThread for the beans to work.

-Djnlp.nativeswing.dependencies.checkVersions=false is probably no longer needed with the latest NativeSwing lib but certainly not doing any harm.

-Dhttp.agent=DJ is inoffensive, it’s only there to make certain version of java web start recognize the previous non ‘secure’ arguments.

So the issue is that if you want the BrowserSuite to work on MacOS X Java 6, you will want these arguments, but you will not want them with Java 7… I guess the way to go would be to create a profile and have your client with Java 6 use this profile which would have these arguments declared as servoy.vmargs

Hi Johan

The message I had ( See first message of thread) points to 3rd party problems, so will try set up another solution to test.
I am upgrading to Servoy 7 to see if that will help, as really need to upgrade moving forward.
I will get back to you as soon a s I know.

Regards Mark

We also get this problem not being able to login to the application. Can anyone please give an info about the best way to solve it when using Servoy 5.2.16?
Thanks in advance, Robert

Hi Robert,

Are you using the BrowserSuite ?

We are using the BrowserSuite, Robert. I read it’s a problem, but what is the currents state and possible solution(s) for Servoy 5.2.16 and Java 1.6.0_51 on OS X 10.8.4?

Regards, Robert

ROCLASI:
Hi Robert,

Are you using the BrowserSuite ?

the client vm args seems to be the problem:

viewtopic.php?f=15&t=19631&start=15#p105842

When you remove the parameters, you can login again in your solution.
If you want, you can remove only one parameter, try it and so on. Perhaps it is only one of theese parameters.

It looks like I identified the culprit (Thanks to Alexanders’s (LXS) post leading me into the right direction).

It’s the -XstartOnFirstThread switch.
When I leave that out everything works again (and the BrowserSuite bean also keeps working).

So now my settings look like this:

-XX:SoftRefLRUPolicyMSPerMB=3600000 -Dsun.awt.disableMixing=true -Djavaws.useDJNativeSwing=true -Djnlp.nativeswing.dependencies.checkVersions=false -Dhttp.agent=DJ

(Servoy Server 5.2.16, Browser Suite v0.9.73)

Hope this helps.

It appears that opening the about window does kill the client in the sense that it doesn’t paint the dialog correctly and freezes.
Can anyone else confirm this behavior ?

Hi Robert

Thanks a lot, this works for our installations here as well :-)
I just noticed, that in Servoy 7.2 rc there is only this argument left in servoy.vmClientArgs: -XX:SoftRefLRUPolicyMSPerMB=3600000
So it seems that even with Java 1.6.0_xx there is no need of the other arguments any more.
@Servoy: Is that assumption correct?

Regards, Robert

yes, i’ve seen such things too. We have a question dialog onClose() where the user is ask, if he really wants to close.
Some users do not see anything in the dialog. We have no solution yet :(

we don’t add all those vm args (except the default softref thing)
those vm args are the browser suite.

Robert

I can confirm this. Opening the About dialog (not showing the correct content) freezes everything associated with the client except the applications menu bar, so at least I can Quit the application.
My About looks like this (see appendix).

Regards, Robert

ROCLASI:
It appears that opening the about window does kill the client in the sense that it doesn’t paint the dialog correctly and freezes.
Can anyone else confirm this behavior ?

Hi Robert,

huber:
I just noticed, that in Servoy 7.2 rc there is only this argument left in servoy.vmClientArgs: -XX:SoftRefLRUPolicyMSPerMB=3600000
So it seems that even with Java 1.6.0_xx there is no need of the other arguments any more.
@Servoy: Is that assumption correct?

The other arguments are put there by the BrowserSuite installer. They are required to make the bean work.
And as far as I know the BrowserSuite doesn’t really work on Mac using Java 7 (it does on other platforms).

huber:
My About looks like this (see appendix).

Yep, that’s what I see as well.