java - "Unable to load resource" because of "ZipException: invalid entry size" -
i have java 8 project creates dozen jnlp applications. have built , run them on windows successfully. jnlp launches correctly through javaws. transfer .tar solaris machine via ftp (in binary mode) , sa deploys via tomcat.
when visit url launch jnlp on network, application error.
the exception is:
com.sun.deploy.net.faileddownloadexception: unable load resource: https://example.com/webstartdev10g/dev/apps/libs/xerces.jar @ com.sun.deploy.net.downloadengine.actiondownload(unknown source) @ com.sun.deploy.net.downloadengine.downloadresource(unknown source) @ com.sun.deploy.cache.resourceproviderimpl.getresource(unknown source) @ com.sun.deploy.cache.resourceproviderimpl.getresource(unknown source) @ com.sun.javaws.launchdownload$downloadtask.call(unknown source) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) the wrapped exception is:
java.util.zip.zipexception: invalid entry size (expected 19075 got 11917 bytes) @ java.util.zip.zipoutputstream.closeentry(zipoutputstream.java:287) @ java.util.zip.zipoutputstream.finish(zipoutputstream.java:360) @ java.util.zip.deflateroutputstream.close(deflateroutputstream.java:238) @ java.util.zip.zipoutputstream.close(zipoutputstream.java:377) @ com.sun.deploy.net.httpdownloadhelper.download(unknown source) @ com.sun.deploy.cache.cache.downloadresourcetotempfile(unknown source) @ com.sun.deploy.cache.cache.downloadresourcetocache(unknown source) @ com.sun.deploy.net.downloadengine.actiondownload(unknown source) @ com.sun.deploy.net.downloadengine.downloadresource(unknown source) @ com.sun.deploy.cache.resourceproviderimpl.getresource(unknown source) @ com.sun.deploy.cache.resourceproviderimpl.getresource(unknown source) @ com.sun.javaws.launchdownload$downloadtask.call(unknown source) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) all of jnlp apps depend on xerces have same error. apps don't require xerces seem working fine. checked xerces.jar file same size on windows machine , solaris machine. visited https://example.com/webstartdev10g/dev/apps/libs/xerces.jar directly , able download file , open it. replaced local copy downloaded version , ran app locally without errors. based on this, doesn't seem there wrong file.
any ideas me narrow down?
edit:
i turned on javaws -verbose flag more details happening when launch jnlp locally downloaded jar. turns out, am still getting error, isn't preventing application launching. being logged in console silently, different size listed.
java.util.zip.zipexception: invalid entry size (expected 19075 got 16384 bytes)
i'm still not sure how file has problem or why reports being same size on both machines.
i rebuilt, retransfered, , redeployed apps. seem working now. still confused how symptoms presented , interested in theories on happened (other "the file somehow corrupted during transfer").
in case, using javaws -verbose helped me clues problem , redeploying tar file resolved issue.
Comments
Post a Comment