|
Bug ID:
|
6804925
|
|
Votes
|
0
|
|
Synopsis
|
JNLPCachedJarURLConnection.getContentLength() may cause unneeded network requests for cached jars
|
|
Category
|
java_deployment:networking
|
|
Reported Against
|
|
|
Release Fixed
|
6u14(b03)
|
|
State
|
11-Closed,
Unverified,
bug
|
|
Priority:
|
2-High
|
|
Related Bugs
|
6763369
,
6797730
|
|
Submit Date
|
12-FEB-2009
|
|
Description
|
If getContentLength() is the first call after construction of JNLPCachedJarURLConnection customer then it will result delegate work to parent and this means network request will be performed even for cached jar file!
Obviously this have huge impact on performance as network requests are expensive.
It appears that FX applications may do this and this make this even more important.
Using SimpleVideoPlayer demo it happens 11 (!) times.
Posted Date : 2009-02-12 19:41:40.0
|
|
Work Around
|
Call connect() of getContentType() before calling getContentLength().
|
|
Evaluation
|
Make sure connect() was called before delegating work to parent object.
Posted Date : 2009-02-12 19:41:40.0
Follow logic implemented in the plugin's jar connection handler.
Posted Date : 2009-02-18 23:23:01.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|