JDK-6954416 : Custom progress: javascript to java error under some scenario
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6u21
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2010-05-20
  • Updated: 2010-09-17
  • Resolved: 2010-06-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u21 b05Fixed 7Fixed
Related Reports
Relates :  
Description
When using custom progress bar and trying perform liveconnect call into applet's method in the javascript onload method, it results in an javascript error with a dialog box.

The following SQE testcase demonstrates this problem:

http://sqeweb.sfbay.sun.com/deployment2/jitu/latest_ws_test/6/deployment/src/plugin/CustomProgressBar/CustomProgressBar/devsource/stub/DrawingApplet.html

Comments
EVALUATION The problem is due to at the end of custom progress, the custom progress code made a call into javascript which signals it's fine to perform a javascript to java call into the applet. However, at that moment, the applet instance hasn't been created yet and resulting throwing an exception during the handling of that call. A fix is to treat the custom progress java to javascript call specially without allowing javascript to java call until the applet is ready.
20-05-2010