Yes, I know I posted this in the clients forum already.But no responses and the idea that this is a problem and should have posted here, I hope excuses me.
Recently after a few server restarts. Many, but not all of our clients are loading not as “Servoy Client”, but as a Java app with the application name “com.sun.javaws.Main” instead. Also it usually, but not always ends up with Java menu’s rather than Mac menu’s. Its only a mjor issue for those users that require the name “Servoy Client”( we use a couple of Applescripts that pass in commands). Its also rather ugly and confusing to our users.
If we delete the Java cache, and redownload he client, resaving the desktop app, it usually works. Yesterday that didn’t work and we had to reinstall the latest Java update from Apple to make things work again.
So, I’m looking for a reason for the problem and a real fix that doesn’t keep us running around all day. The java logs are not showing me anything I can see. They look the same for a “good” launch and a bad.
Couple of relevent details.
We use desktop “servoy client.app” for all our users. Saved on the early launch from the web
Mac OSX 10.4.8 Java J2SE 5.0 version 1.5.0_07
Server OSX 10.4.8 Java J2SE 5.0 version 1.5.0_07
2x Dual Core Intel Xserve with 4 g RAM
Servoy 3.0.1 build 372, rep v29
MySql 5.0.27 on the same server as Servoy
Don’t run many windows machines, so I can’t say if its happening there. We are running
Hey Mike…a few things to look at to see if there are any differences across the machines…just some guesses…
Take a look at the info.plist file inside of the application on the desktop (~/Desktop/Servoy Client.app/Contents/info.plist) Any difference between the ones that work and don’t work?
You can see a little more about what exactly is going on at lauch by manually double-clicking on the file at ~/Desktop/Servoy Client.app/Contents/MacOS/Servoy Client . It will show you some stuff in the terminal that may be helpful. (or just turn on the java console in your java preferences)
Also, you can manually launch the client by executing the jnlp file located in the user’s cache (you can see the exact path in the info.plist). On my install it is /Users/sbutler/Library/Caches/Java/cache/javaws/http/Dservoy.dnacenter.com/P8080/DMservoy-client/AMservoy_client.jnlp
Check to see if it opens with Java Web Start, or Java Cache Viewer…as that may be the difference.
It was a OS version / java version combo problem. Do all the clients have their java preferences set to J2SE 5.0 in the Applet Runtime Settings, AND the Webstart order (5.0 should be first/on top)?
This is still a perdiodic problem. And for a few apps, a major issue since they depend on Apple menus. Anyway, after much scratching of heads, deleting of caches, etc. I think I am maybe getting somewhere in at least better defining the problem.
When it fails the console log tells us: 2007-07-24 09:32:28.086 Servoy Client[701] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x11403, name = ‘com.apple.jnlp-file___localhost_Users_mikemcmanus_Library_Caches_java_cache_javaws_http_Dservoy.dnacenter.com_P8080_DMservoy-cli’ See /usr/include/servers/bootstrap_defs.h for the error codes. 2007-07-24 09:32:28.094 Servoy Client[701] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (com.apple.jnlp-file___localhost_Users_mikemcmanus_Library_Caches_java_cache_javaws_http_Dservoy.dnacenter.com_P8080_DMservoy-cli)
The Java Console is much less helpful.
Jul 24, 2007 9:34:00 AM com.servoy.j2db.util.Debug log
INFO: Starting Servoy from /Users/mikemcmanus/Desktop
Jul 24, 2007 9:34:01 AM com.servoy.j2db.util.Debug log
INFO: Servoy 3.1.6 build-410 on Mac OS X using Java 1.5.0_07
getWebStartURL http://servoy.dnacenter.com:8080/ getWebStartURL http://servoy.dnacenter.com:8080/
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
INFO: JAVA version is 1.5.0_07
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
INFO: Extension /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/apple_provider.jar being added to classpath
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.util.ExtensionClassLoader add
INFO: Adding /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/apple_provider.jar to the extension classpath
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
INFO: Extension /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/dnsns.jar being added to classpath
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.util.ExtensionClassLoader add
INFO: Adding /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/dnsns.jar to the extension classpath
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
INFO: Extension /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/localedata.jar being added to classpath
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.util.ExtensionClassLoader add
INFO: Adding /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/localedata.jar to the extension classpath
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
INFO: Extension /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/sunjce_provider.jar being added to classpath
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.util.ExtensionClassLoader add
INFO: Adding /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/sunjce_provider.jar to the extension classpath
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
INFO: Extension /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/sunpkcs11.jar being added to classpath
Jul 24, 2007 9:34:03 AM com.sshtools.j2ssh.util.ExtensionClassLoader add
INFO: Adding /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/sunpkcs11.jar to the extension classpath
getWebStartURL http://servoy.dnacenter.com:8080/
Only the bolded line seems different from a “working” launch.
I have been able to get the same cleint to launch correctly and incorrectly on the same machine. The code is the same in the jnlp files and the client pslist files.
Finally, I have started the cleint successfully, then tried to launch the jnlp file and it creates the error situation that I started this thread with.
Ideas folks? This is a major issue for us, when we have about 50 users now. Doing a cache delete and redownload of the client 2 or three times a week is getting tedious.
We have upgraded to 3.1.6. Runnning on tiger server and all machines are tiger with latest Java.
I restarted. I continue to get the erros in console.log and the apparent double launch in Java console. But now it starts properly. With the Servoy Cliet name and proper Apple menus etc.
A confusing issue.
Hopefully someone has seen this and has some sort of an answer.
I guess I don’t know if I should put in a report on this. But here is the lastest info, still without a solution. Any advice?
If we hard reboot the server. Things go fine on servoy client restarts. If we restart servoy, we have the problem I indicated previously. Honestly not sure what that means, but obviously servoy server is telling the client 2 different things.
I have had an issue where I really lost days over.
It was because I was working with sshtools for the ftp plug-in and switched to different versions of the libraries.
I wish it was. But I haven’t made ant changes on htat servers config for at least 3 weeks. Really sdince I did the upgrades and we still have the problems. All that kind of messy stuff gets done aon a separate server.
I just cann’t recall when this started to happen. Since I know that for a while after first deployment it worked fine.