JDK-4203734 : Bug in sun.applet.AppletClassloader class loading in JDK 1.2
  • Type: Bug
  • Component: tools
  • Sub-Component: appletviewer
  • Affected Version: 1.1.2,1.2.0,1.2.1,1.2.2
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS:
    generic,solaris_2.6,windows_95,windows_nt generic,solaris_2.6,windows_95,windows_nt
  • CPU: generic,x86,sparc
  • Submitted: 1999-01-16
  • Updated: 1999-02-04
  • Resolved: 1999-02-04
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.
Other
1.2.2 1.2.2Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Description
In JDK 1.2, there is a bug in sun.applet.AppletClassloader.getBytes(). When applet class are loaded by the appletclassloader, it uses HttpURLConnection.getInputStream() for downloading class from the codebase. However, it never checks the result of the HTTP connection. In case the file is missing on the server, HttpURLConnection.getInputStream will still return back a stream, but the stream is actually the error message. Thus, when appletclassloader tries to call defineClass on the stream that is returned from getInputStream(), it will return in exception in this case.

This bug has been doing lots of damages for Java Plug-in 1.2, and it actually causes Java Plug-in to crash in IE on Win95. 

This bug should be fixed by always checking the respond code when making the HTTP connection.

stanley.ho@eng

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.2.2 generic FIXED IN: 1.2.2 INTEGRATED IN: 1.2.2
14-06-2004

WORK AROUND None.
11-06-2004

EVALUATION It's a bug. janet.koenig@Eng 1999-01-25
25-01-1999