1 Reply Latest reply: Apr 25, 2013 12:42 AM by 1005384 RSS

    JDK1.7.0_21 Latest Update having exception to read .jar.pack.gz

    1004105
      After I tried installing latest jdk 1.7.0_21 on my own PC to run some test.

      It fails to read a jar with java arguments in a jsp and having IOException on the latest build of jdk.
      However, if I switched back the plugin/jdk to 1.7.0_17 then it will not having any problem in loading .jar.pack.gz.

      Is the packEnabled function being removed in latest build ?

      Argument in JSP file to load applet with pack.gz.*
      <param name='java_arguments' value='-Djnlp.packEnabled=true'/>

      Exception in console*
      network: Disconnect connection to http://sample.com/applet.jar.pack.gz
      java.io.IOException: Invalid jar file
           at com.sun.deploy.net.HttpDownloadHelper.download(Unknown Source)
           at com.sun.deploy.net.DownloadEngine.downloadResourceToTempDir(Unknown Source)
           at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
           at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
           at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
           at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
           at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
           at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:205)
           at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:71)
           at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:73)
           at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
           at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
           at sun.plugin.net.protocol.jar.CachedJarURLConnection.getInputStream(Unknown Source)
           at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:126)
           at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:263)
           at sun.awt.image.ImageFetcher.run(ImageFetcher.java:169)
           at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:205)
      image fetch aborted or errored

      Please advise.

      Edited by: samuelwyc on Apr 19, 2013 12:32 AM