Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4291305
Votes 2
Synopsis ResourceBundle.getBundle fails when webpage downloaded with https
Category java_plugin:plugin
Reported Against 1.2.2
Release Fixed
State 11-Closed, duplicate of 4203734, bug
Priority: 4-Low
Related Bugs 4203734
Submit Date 14-NOV-1999
Description




1. write a Java 1.2.2 applet that uses ResourceBundle.getBundle().
2. jar it up
3. embed the applet in a html page.
4. download the web page using HTTPS. -- the
ResourceBundle.getBundle() line will throw a classCastException
(bad magic number).

this is NOT a problem with downloading the jar in https.  If you
download the webpage in http, but specify the jar URL as https,
then the applet will run fine.  conversely, if you download the
webpage in https, but specify the jar url as http, then the
applet will throw the exception.

the problem is dependant entirely upon the use of HTTPS in downloading
the html webpage containing the APPLET tag.  my guess is that the
ResourceBundle code fails to extract the APPLET tag parameters from
the webpage when it is downloaded using https.

other info:
I am using Netscape Communicator 4.5
with the early release Java 1.2.2 plugin
(Review ID: 88160) 
======================================================================
Work Around
N/A
Evaluation
This bug is caused by the fact that ResourceBundle will try to load several class files until it succeeds. However, when a class doesn't exist, the AppletClassLoader fails to recognize the HTTP error code, and it interprets the resulting error page as a class file. This causes a ClassCastException. It is a duplicate of 4203734.
Comments
  
  Include a link with my name & email   

Submitted On 13-DEC-1999
leberre
I 've the same problem, plus another one with proxy and localization : 
when the getBundle() tries to find a XXX_mylocale.class whereas I
use a XXX.properties, iI have also an IOexception. (I don't have it 
when I run my program as an application or  as a local applet).



PLEASE NOTE: JDK6 is formerly known as Project Mustang