Web Start error when starting servoy client

Hi All

We have a severe problem were the customer is waiting to be able to start our application (again) and we can’t find why it doesn’t.

The problem:
Having a Mac OS X server with 10.6.3 and Java 1.6.0_17, it’s not possible to start (via Web Start) a Servoy client on Mac OS X 10.5.8 with Java 1.5.0_24.

Error reported in the tab Launch File of Web Start

<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://62.167.9.102:8080" href="/servoy-client/TrackIT.jnlp">
   <information> 
      <title>Servoy Client - TrackIT</title>
      <vendor>Servoy</vendor>
      <homepage href="http://www.servoy.com/"/>
      <description>Database client</description>
      <icon href="/lib/images/servoy_client_icon.gif"/>
      <icon kind="splash" href="/lib/splashclient.gif" width="64" height="64"/>
   	<shortcut online="true">
   	<desktop/>
   	</shortcut>
   </information>
   <resources>
      <j2se version="1.5+" initial-heap-size="64m" max-heap-size="128m" java-vm-args="-XX:SoftRefLRUPolicyMSPerMB=3600000" />
      <j2se version="1.6+" initial-heap-size="64m" max-heap-size="128m" java-vm-args="-XX:SoftRefLRUPolicyMSPerMB=3600000" />
      <property name="apple.laf.useScreenMenuBar" value="true"/>
      <jar href="/lib/j2db.jar" main="true" version="1270016388000" download="eager"/>
      <jar href="/lib/js.jar" version="1270016388000" download="eager"/>
      <jar href="/lib/jabsorb.jar" version="1270016388000" download="eager"/>
      <jar href="/lib/BrowserLauncher2.jar" version="1270016388000" download="eager"/>
      <jar href="/lib/commons-logging.jar" version="1270016388000" download="eager"/>
      <jar href="/lib/MRJAdapter.jar" version="1270016388000" download="eager"/>
      <extension name="LAFS_and_BEANS" href="/servoy-client/unsigned.jnlp" version="1270016388000"/>
      <extension name="dialog.jar" href="/servoy-client/plugins/dialog.jar.jnlp" version="1270016388000"/>
      <extension name="udp.jar" href="/servoy-client/plugins/udp.jar.jnlp" version="1270016388000"/>
      <extension name="headlessclient.jar" href="/servoy-client/plugins/headlessclient.jar.jnlp" version="1270016388000"/>
      <extension name="maintenance.jar" href="/servoy-client/plugins/maintenance.jar.jnlp" version="1270016388000"/>
      <extension name="converters.jar" href="/servoy-client/plugins/converters.jar.jnlp" version="1270016388000"/>
      <extension name="tabxport.jar" href="/servoy-client/plugins/tabxport.jar.jnlp" version="1270016388000"/>
      <extension name="mail.jar" href="/servoy-client/plugins/mail.jar.jnlp" version="1270016388000"/>
      <extension name="rawSQL.jar" href="/servoy-client/plugins/rawSQL.jar.jnlp" version="1270016388000"/>
      <extension name="agent.jar" href="/servoy-client/plugins/agent.jar.jnlp" version="1270016388000"/>
      <extension name="http.jar" href="/servoy-client/plugins/http.jar.jnlp" version="1270016388000"/>
      <extension name="file.jar" href="/servoy-client/plugins/file.jar.jnlp" version="1270016388000"/>
      <extension name="images.jar" href="/servoy-client/plugins/images.jar.jnlp" version="1270016388000"/>
      <extension name="serialize.jar" href="/servoy-client/plugins/serialize.jar.jnlp" version="1270016388000"/>
      <extension name="pdf_output.jar" href="/servoy-client/plugins/pdf_output.jar.jnlp" version="1270016388000"/>
      <extension name="xmlreader.jar" href="/servoy-client/plugins/xmlreader.jar.jnlp" version="1270016388000"/>
      <extension name="scheduler.jar" href="/servoy-client/plugins/scheduler.jar.jnlp" version="1270016388000"/>
      <extension name="excelxport.jar" href="/servoy-client/plugins/excelxport.jar.jnlp" version="1270016388000"/>
      <extension name="window.jar" href="/servoy-client/plugins/window.jar.jnlp" version="1270016388000"/>
      <extension name="spellcheck.jar" href="/servoy-client/plugins/spellcheck.jar.jnlp" version="1270016388000"/>
      <extension name="amortization.jar" href="/servoy-client/plugins/amortization.jar.jnlp" version="1270016388000"/>
      <extension name="default_validators.jar" href="/servoy-client/plugins/default_validators.jar.jnlp" version="1270016388000"/>
   </resources>
   <application-desc main-class="com.servoy.j2db.J2DBClient">
		<argument>CI:C28576BA-8A35-435A-B3BD-C0A72BDD9769</argument>
		<argument>s:TrackIT</argument>
		<argument>solution:TrackIT</argument>
	</application-desc>
	<security>
   	<all-permissions/>
	</security>
</jnlp>

Error reported in the tab Exception of Web Start

com.sun.deploy.net.FailedDownloadException: Unable to load resource: (http://62.167.9.102:8080/beans/swingbeans.jar?version-id=1258368294000, 1258368294000)
	at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1376)
	at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1529)
	at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1507)
	at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1613)
	at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1538)
	at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
	at com.sun.javaws.LaunchDownload$DownloadTask.call(LaunchDownload.java:1739)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
	at java.lang.Thread.run(Thread.java:613)

Error reported in the tab Wrapped Exception of Web Start

java.io.IOException
	at com.sun.deploy.cache.CacheEntry$9.run(CacheEntry.java:1793)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.deploy.cache.CacheEntry.writeFileToDisk(CacheEntry.java:1687)
	at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Cache.java:596)
	at com.sun.deploy.cache.Cache.downloadResourceToCache(Cache.java:529)
	at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1351)
	at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1529)
	at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1507)
	at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1613)
	at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1538)
	at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
	at com.sun.javaws.LaunchDownload$DownloadTask.call(LaunchDownload.java:1739)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
	at java.lang.Thread.run(Thread.java:613)

Can anyone help with an idea, hint, …?

The strange thing is that with a client having Mac OS X 10.4.11 and Java 1.5.0_19 there is no problem starting a Servoy client with Web Start.

Regards, Robert

This has everything to do with the whole new Java security!

which Servoy version is this?
you have to update Servoy to the latest versions, and update all 3th party plugins, or sign everything yourself.

Hi Harjo

Harjo:
This has everything to do with the whole new Java security!

which Servoy version is this?

I am not sure it’s this as I still use Java 1.6.0_17 on the server (and JAva 1.5 on the said client). Please correct me, but I thought the signing thing starts with Java 1.6.0_20 on the Mac!?

It’s Servoy 5.1.1, sorry forgot to mention that.

Harjo:
you have to update Servoy to the latest versions, and update all 3th party plugins, or sign everything yourself.

As above said, I assume having still Java 1.6.0_17 it can’t be a signing problem of plug-ins, can it?

Regards, Robert

the SERVER java version has nothing to do with that!

it’s all about the java CLIENT version.
Also the latest java 1.5_20 (on the client) and higher have those new security.

Hi Harjo

Is the signing problem solvable by only updating Servoy to version 5.1.4 (we don’t use third party plug-ins)?

Thanks, Robert

Harjo:
the SERVER java version has nothing to do with that!

it’s all about the java CLIENT version.
Also the latest java 1.5_20 (on the client) and higher have those new security.

If you dont use ANY 3th party plugins, in general yes!
please make backups before, so in case you bump into something, you can rollback easy.

After upgrade, please clear the catalina/local folder, under servoy/server/work, and clear you java cache on the clients.

Thanks Harjo

You mean the content of the localhost folder? Located at …/Servoy/application_server/server/work/Catalina/localhost

Best regards, Robert

BTW, what is Catalina all about?

Harjo:
If you dont use ANY 3th party plugins, in general yes!
please make backups before, so in case you bump into something, you can rollback easy.

After upgrade, please clear the catalina/local folder, under servoy/server/work, and clear you java cache on the clients.

yes, that folder,

it’s a folder, where Servoy packs/zips every jar as soon as the first client connects (that’s why it is a little bit slower, when you start for the first time a client!)
This reduces the download to the client.

Harjo, just to be sure, you mean cleaning the …/Catalina/… folder on the client, do you? Not on the server?

Thanks, Robert

Harjo:
If you dont use ANY 3th party plugins, in general yes!
please make backups before, so in case you bump into something, you can rollback easy.

After upgrade, please clear the catalina/local folder, under servoy/server/work, and clear you java cache on the clients.

Hi Robert,

there’s no such thing as a Catalina folder on a client (unless they installed a Servoy Server or a Tomcat distribution!)
Catalina is the servlet container of Tomcat which is build of a many layers: http://en.wikipedia.org/wiki/Apache_Tomcat#Catalina

Hope this helps,
-Patrick

indeed, on the server!