United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7064861 : CacheUtilTest.testRemove hangs

Details
Type:
Bug
Submit Date:
2011-07-09
Status:
Resolved
Updated Date:
2011-09-22
Project Name:
JDK
Resolved Date:
2011-08-17
Component:
deploy
OS:
generic
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7-client
Fixed Versions:
7u2 (b03)

Related Reports
Backport:
Relates:

Sub Tasks

Description
After fix 7062597 CacheUtilTest starts to fail/hang.

There are multiple issues:

1) We now launch new thread in the Launcher but if main method throws uncatched exception then launch thread will not get notified about this

2) If applet desc in the test has codebase="." it will cause malformed URL exception
   If applet desc has no codebase or codebase="" then it will eventually fail with "codebase can not be empty for applet"
    in the XMLFormat:145

3) It seem that security manager installed will impact Junit tests as they will throw security exceptions all over the place.
   This may be related to the fact it code path now goes through new useappletLifecycle() method

I've not tested it but it may also mean that shortcuts to AWT applets do not work?

I'll temporary disable this test assertion to get other tests to run but we need to find out what is going on and fix it.

                                    

Comments
SUGGESTED FIX

http://jfxsrc.us.oracle.com/javafx/client/7-client/deploy/deploy/javafx/client/7-client/deploy/deploy/rev/a54212ca21df
                                     
2011-07-15
EVALUATION

A few problems that is fixed:

1.  import of applet-desc or javafx-desc is broken because of the webstart changes.  the code path got incorrectly bypassed.

2.  remove throwing of MissingFieldException in XMLFormat - it's not correct.  codebase is not required in JNLP file.

3.  changed test jnlp to not specify any codebase - it's not needed.

4. Add testNoCodeBaseJNLP in XMLFormatTest to make sure we do not throw MissingFieldException when parsing no-codebase JNLP file
                                     
2011-07-15



Hardware and Software, Engineered to Work Together