United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7021429 : Jar file used by JRE1.4.2 won't be cached if it runs on New Generation Plugin.

Details
Type:
Bug
Submit Date:
2011-02-22
Status:
Closed
Updated Date:
2012-06-08
Project Name:
JDK
Resolved Date:
2012-06-08
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P3
Resolution:
Cannot Reproduce
Affected Versions:
6u22
Fixed Versions:
8

Related Reports
Backport:
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
OS: Windows XP SP2
Java: JRE1.4.2u19 + JRE6u22

Once JRE6u22 is installed and New Generation Plug-in is enabled on the system which has 
JRE1.4.2 installed, jar file used by JRE1.4.2 won't be cached and jar file is always 
downloaded from the server. 

The customer initially had JRE1.4.2 installed on the system, and jar file caching was
working as expected. It means, once jar files are cached, it won't be downloaded from 
the server and applets were invoked using local cache.
But after installing JRE1.6.0u22, jar file has never been cached and it is downloaded 
from server every time applet is called.
This causes significant delay of starting up an applet.

                                    

Comments
EVALUATION

I just confirmed that this issue is not reproducible with JDK 8 b42
due to a significant redesign of Java Deployment Cache. The resource file
(ServerJAR.jar) is downloaded only ones, and then reused in all subsequent
launches.
                                     
2012-06-08
EVALUATION

we are inclining to not fix it in 7 because 1.4.2 is EOL already.   Eventually we will drop the support of running plugin with 1.4.2.

If customer really needs this, please open subCR for 6 update and escalate.
                                     
2011-02-24
SUGGESTED FIX

when running with 1.4.2, call into downloadengine/cache directly to store into cache.  do not depend on DeployCacheHandler.
                                     
2011-02-24
WORK AROUND

run with JRE 5 or above
                                     
2011-02-24
EVALUATION

problem is due to code in sun.plugin.URLJarFileCallback, retrieve and download method.

In retrieve, we detected DeployCacheHandler is not avaliable in 1.4.2, and set resourceNotCacheable to false, and contiune to depend on downloadJAR method to download resource to cache.  But downloadJAR basically needs DeployCacheHandler in order to download into cache.

So basically when running 6/7 plugin with 1.4.2, plugin works in no-cache mode.

running with 1.4.2 is not of the highest priority right now for JDK 7.

If this needs to fixed in a 6 update release, please open subCR for 6-update.
                                     
2011-02-24



Hardware and Software, Engineered to Work Together