Link to home
Create AccountLog in
Avatar of Zolf
ZolfFlag for United Arab Emirates

asked on

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)
Avatar of MicheleMarcon
MicheleMarcon
Flag of Italy image

Did you recompile the jar without changing the .jnlp?
Avatar of Zolf

ASKER


>>Did you recompile the jar without changing the .jnlp?
what do you mean
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.

Thanks.
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.
Avatar of Zolf

ASKER


Triguna:

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)
SOLUTION
Avatar of humanonomics
humanonomics
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Zolf

ASKER


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?
Avatar of Zolf

ASKER

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://me.com/Java/" href="erpJNLP.jnlp">
<information>
  <title>Time Check</title>
  <vendor>Java Developer Connection</vendor>
  <homepage href="/jdc" />
  <description>Demonstration of JNLP</description>
</information>
<offline-allowed/>
<security>
  <all-permissions/>
</security>
<resources>
  <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"/>
</resources>
<application-desc main-class="com.MainForm" />
</jnlp>
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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.
Avatar of Zolf

ASKER


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
Avatar of Zolf

ASKER


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?
Avatar of Zolf

ASKER


>>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.
http://forums.java.net/jive/message.jspa?messageID=220904

Hope this helps.