JNLP ZipException

Hello there,

i have put my java application as jnlp on my hosting site.but when i try to run the application i see the download frame then after some seconds i get a message Installation Stalled.inthe java console i get this error.can you'll please help me to get this working

java.util.zip.ZipException: invalid entry size (expected 253122 but got 224020 bytes)
      at java.util.zip.ZipOutputStream.closeEntry(Unknown Source)
      at java.util.zip.ZipOutputStream.finish(Unknown Source)
      at java.util.zip.DeflaterOutputStream.close(Unknown Source)
      at java.util.zip.ZipOutputStream.close(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)
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

TrigunaConnect With a Mentor Commented:
>>> i have put my java application as jnlp on my hosting site
Can you check what version of Java is installed in your hosting site?

If that doesnt solve your problem, try changing the version in jnlp to 1.6 and then check whether jnlp is running.

you can observe this line as well...
expected 253122 but got 224020 bytes meaning it needs a 250Kb file but getting a 223kb file. Check for some jar which is not upto the mark. I mean some of the jars which are mentioned in the jnlp is not available in the host site.

Hope this helps.
Did you recompile the jar without changing the .jnlp?
zolfAuthor Commented:

>>Did you recompile the jar without changing the .jnlp?
what do you mean
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

I think this is the compatibility issue. Look at this error.
invalid entry size (expected 253122 but got 224020 bytes)
I suggest you download the new Java installer from java.sun.com and then try running the jnlp. If still problem persist, let me know.

Better to check with your JRE version and download that version of Java from the above website. There is a compatibility issue here. Check your Java installed version and the required version with which you are running the jnlp.

Hope this helps.
zolfAuthor Commented:


this is the version of the java i have.

>>Check your Java installed version and the required version with which you are running the jnlp.
i have created the JNLP myself.how do i know which version i need to run the JNLP
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)
humanonomicsConnect With a Mentor Commented:
This error seems more of file transfer error, the zip file being transferred, seems to be corrupted. This error is sort of CRC error that we get in my opinion.

What file are you downloading ?
zolfAuthor Commented:

i am trying to download  the jnlp application i created.it download the jar files mentioned inthe jnlp
Can you post your .jnlp file content here?
zolfAuthor Commented:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://me.com/Java/" href="erpJNLP.jnlp">
  <title>Time Check</title>
  <vendor>Java Developer Connection</vendor>
  <homepage href="/jdc" />
  <description>Demonstration of JNLP</description>
  <j2se version="1.2+" />
  <jar href="erp.jar"/>
  <jar href="looks-2.2.0.jar"/>
  <jar href="sqljdbc.jar"/>
  <jar href="calendar-0.10.jar"/>
  <jar href="commons-collections-3.2.jar"/>
  <jar href="commons-logging-1.1.jar"/>
  <jar href="iText-2.1.3.jar"/>
  <jar href="jasperreports-3.0.0.jar"/>
  <jar href="jcalendar-1.3.2.jar"/>
  <jar href="looks-2.2.0.jar"/>
  <jar href="validation-2.0.1.jar"/>
<application-desc main-class="com.MainForm" />
may be the exact version of the jar is not available in the host site. You can compare the jar sizes in your local machine and on the host site. It has to be different in some jar. Either the j2se.jar or the other jars.
Let me know the result.
zolfAuthor Commented:

thanks for your time and patience.i deleted that jar and again jarred it and signed it.now i get the jnlp download screen and it starts downloading for few seconds and then i get a message saying download stalled. then after some minutes it again downloads and now the application opnes.can you please tell me the reason for this behaviour.
hmm. Thats really a good news. Yeah I got the problem. This is because of some old jars the path where jnlp is looking to deploy and the newer jars are not getting replaced. May be you have upgraded your jar recently and start deploying jnlp on the fly? And since you deleted the old content now, it got all fresh new jars and started working.

Thanks for letting us know the answer for your query.
Triguna M S
zolfAuthor Commented:

what do i do.do i delete all the jar and again jar them
yes that would work I believe. It worked you said right? Or did I read it wrong?
zolfAuthor Commented:

>>It worked you said right? Or did I read it wrong?
yes it is working but the download is slow,sometimes with the message download stalled.what could be the reason
That might be because network problem.
You can look at this link.

Hope this helps.
All Courses

From novice to tech pro — start learning today.