JDK-6297934 : COMPATIBILITY: iWon- Spelling Bee applet loading problem
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-07-17
  • Updated: 2010-04-04
  • Resolved: 2005-08-31
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
6 b50Fixed
Related Reports
Relates :  
Description
Tested OS/Browser:      
                        XP-Home, XP-pro(sp2)/IE6
                        win 2000 pro(sp4)/Firefox 1.0.2
                                    

Tested build:           j2re 1.6.0- build 43

Problem:
-------
The game fails to load with  'Uncaught error fetching image:' exception. The same problem occurs (with different error messages)  when caching is disabled or enabled. It works fine with MS VM.

Steps to reproduce:
------------------
1) Install j2re1.6.0-build 43 into the test system 
2) Browse to http://games.iwon.com
3) Login as user 'applabsuser' with password 'app123' 
4) Click on 'Spelling Bee' under the 'Card & Board' section.

The game fails to load with Sun JVM -b43

Here's the message from the Java console  (in the case of the caching is ENABLED)
-------------------------------------------------------------------------------

 Uncaught error fetching image:
java.lang.NullPointerException at sun.net.www.protocol.http.HttpURLConnection.followRedirect(Unknown Source)at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)at sun.awt.image.URLImageSource.getDecoder(Unknown Source)atsun.awt.image.InputStreamImageSource.doFetch(UnknownSource)atsun.awt.image.ImageFetcher.fetchloop(UnknownSource)atsun.awt.image.ImageFetcher.run(Unknown Source)

Here's the message from the Java console  (in the case of the caching is DISABLED)
---------------------------------------------------------------------------------

Uncaught error fetching image:
java.lang.SecurityException
	at java.lang.SecurityManager.checkPermission(Unknown Source)
	at java.lang.SecurityManager.checkConnect(Unknown Source)
	at sun.awt.image.URLImageSource.checkSecurity(Unknown Source)
	at sun.awt.image.ImageRepresentation.imageComplete(Unknown Source)
	at sun.awt.image.InputStreamImageSource.errorConsumer(Unknown Source)
	at sun.awt.image.InputStreamImageSource.errorAllConsumers(Unknown Source)
	at sun.awt.image.InputStreamImageSource.badDecoder(Unknown Source)
	at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
	at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
	at sun.awt.image.ImageFetcher.run(Unknown Source)




###@###.### 2005-07-17 22:42:07 GMT

Comments
EVALUATION the bug is caused by problem in both deploy and j2se workspace. For the j2se workspace, please refer to bug 6299712: NullPointerException in sun.net.www.protocol.http.HttpURLConnection.followRedirect. For the deploy workspace problem, we should download the image using plugin code in AppletImageFactory, instead of delegating the download to Toolkit.getImage.
25-07-2005

SUGGESTED FIX http://web-east.east/deployment/www/webrevs/ngthomas/6297934/webrev/
25-07-2005