Unable to load resource: http://blah - java.util.zip.ZipException: inval..
843802Nov 26 2007 — edited Nov 26 2007Java Web Start deployment problem -
com.sun.deploy.net.FailedDownloadException: Unable to load resource: Unable to load resource: http://sean.freeshell.org/java/javas.jar
Wrapped Exception: java.util.zip.ZipException: invalid entry size (expected 1672216584 but got 0 bytes)
Hi all, and thanks in advance to the smart girl/guy who recognises my problem. I am a newbie, so am still a little lost on this one.
When running the jnlp file, it goes through several stages successfully,
1. Splash-Screen - Java Starting
2. Java Web Start - Downloading application
There are two .jar files. One holds the main entry point, the other is a utility the application uses. The jar holding the main is correctly downloaded, but the other not.
In the process of downloading one of the .jar files, I get an error. Details are below. One very strange thing about the 'Wrapped Exception' is the reported size of the file.
I know that the jar file is 97,655 bytes large, and is valid (as I have downloaded it manually via http). However, firstly, the expected size is reported to be in the hundreds of Megs, and the bytes able to be retrieved are ZERO. For testing purposes, i have left permissions on this file wide open, so it can not be a permissions problem. I zipped it with the standard java 'jar' tool. What can be the problem! The location of my jnlp file is:
http://sean.freeshell.org/java/javas.jar
I realise that the web server is not setup to run web start apps, but you can simply download the file and look at it, and run it and see for yourself what happens.
Now, I know that Java Web Start works fine on my machine.... as i have tried one of the test applications called 'draw.jnlp'. I am able to simply double click on the jnlp from the position on my hard drive where I saved it, and the drawing application is downloaded, and run, and I see it. Great!
However, when doing the same thing with my application (which to be honest, is just a java console app which i jarred for testing purposes) it doesn't get past the download stage.
I don't expect the application to run correctly, as it is a console app. But I am surprised that I have problems in the download phase of things.
I would be super happy if someone knows what is going on... very grateful. Thanks in advance...
svaens.
Exception
--------------
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://sean.freeshell.org/java/javas.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Wrapped Exception
----------------------------
java.util.zip.ZipException: invalid entry size (expected 1672216584 but got 0 bytes)
at java.util.zip.ZipInputStream.readEnd(Unknown Source)
at java.util.zip.ZipInputStream.read(Unknown Source)
at com.sun.deploy.net.HttpDownloadHelper.decompressWrite(Unknown Source)
at com.sun.deploy.net.HttpDownloadHelper.download(Unknown Source)
at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
----------------------------------------------------------------------------------
Edited by: svaens on Nov 26, 2007 2:01 AM
Edited by: svaens on Nov 26, 2007 2:46 AM