Zolf
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.ZipOutputStr eam.closeE ntry(Unkno wn Source)
at java.util.zip.ZipOutputStr eam.finish (Unknown Source)
at java.util.zip.DeflaterOutp utStream.c lose(Unkno wn Source)
at java.util.zip.ZipOutputStr eam.close( Unknown Source)
at com.sun.deploy.net.HttpDow nloadHelpe r.download (Unknown Source)
at com.sun.deploy.cache.Cache .downloadR esourceToC ache(Unkno wn Source)
at com.sun.deploy.net.Downloa dEngine.ac tionDownlo ad(Unknown Source)
at com.sun.deploy.net.Downloa dEngine.ge tCacheEntr y(Unknown Source)
at com.sun.deploy.net.Downloa dEngine.ge tResourceC acheEntry( Unknown Source)
at com.sun.deploy.net.Downloa dEngine.ge tResourceC acheEntry( Unknown Source)
at com.sun.deploy.net.Downloa dEngine.ge tResource( Unknown Source)
at com.sun.javaws.LaunchDownl oad.downlo adJarFiles (Unknown Source)
at com.sun.javaws.LaunchDownl oad.downlo adEagerorA ll(Unknown Source)
at com.sun.javaws.Launcher.do wnloadReso urces(Unkn own Source)
at com.sun.javaws.Launcher.pr epareLaunc hFile(Unkn own Source)
at com.sun.javaws.Launcher.pr epareToLau nch(Unknow n Source)
at com.sun.javaws.Launcher.la unch(Unkno wn Source)
at com.sun.javaws.Main.launch App(Unknow n Source)
at com.sun.javaws.Main.contin ueInSecure Thread(Unk nown Source)
at com.sun.javaws.Main$1.run( Unknown Source)
at java.lang.Thread.run(Unkno wn Source)
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
at java.util.zip.ZipOutputStr
at java.util.zip.ZipOutputStr
at java.util.zip.DeflaterOutp
at java.util.zip.ZipOutputStr
at com.sun.deploy.net.HttpDow
at com.sun.deploy.cache.Cache
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.javaws.LaunchDownl
at com.sun.javaws.LaunchDownl
at com.sun.javaws.Launcher.do
at com.sun.javaws.Launcher.pr
at com.sun.javaws.Launcher.pr
at com.sun.javaws.Launcher.la
at com.sun.javaws.Main.launch
at com.sun.javaws.Main.contin
at com.sun.javaws.Main$1.run(
at java.lang.Thread.run(Unkno
Did you recompile the jar without changing the .jnlp?
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.
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.
Hope this helps.
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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?
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>
<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
</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-
<jar href="commons-logging-1.1.
<jar href="iText-2.1.3.jar"/>
<jar href="jasperreports-3.0.0.
<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
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.
Let me know the result.
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
Thanks for letting us know the answer for your query.
Triguna M S
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?
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.
You can look at this link.
http://forums.java.net/jive/message.jspa?messageID=220904
Hope this helps.