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: 4690831
Votes 0
Synopsis Game applets fail to repaint properly with internet explorer
Category java:classes_awt
Reported Against merlin-rc1 , hopper-beta
Release Fixed 1.4.1(hopper-rc)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 4626130 , 4688735 , 4690619 , 4689787 , 4690220 , 4722949
Submit Date 23-MAY-2002
Description
If you run any of the following applets by using hopper b12 on internet explorer

"Go with the flow" from http://www.real.com/games/webgames/puzzle.html?src=webgames-main
or
"War Zone" from http://www.iwin.com/games/cat_arcade.asp
or
"Knock 'Em Out" from http://www.gamehouse.com
or
"Family feud" from http://www.uproar.com/games/cat_gameshows_flash.asp

one can observe that the applet does not show up. However if you use the java console and list the threads, it is clear that the applet has been loaded properly but not repainted. In all these cases, applet is not shown directly, when the applet is being initialized, they draw the applet offscreen and show ads. Finally, the applet is shown once it is ready.
Work Around
N/A
Evaluation
This bug is similar to the bug #4627627, re-assigning to AWT team for more investigation.
 xxxxx@xxxxx  2002-05-28 

I'll commit to fix in Hopper for now.  The plugin team would like a fix for 
Hopper because this could be a high-profile applet compatibility issue.    
 xxxxx@xxxxx  2002-05-30

May be the same as 4688962.
 xxxxx@xxxxx  2002-06-03




 xxxxx@xxxxx 
The cause for knockemout applet is determined.
The applet defines methods getWidth() and getHeight().
It is not exactly obvious what they do, but they perform
some applet-specific calculations, and it seems that the
results are not exactly screen width and height of applet,
but some other values.
The applet was written for JDK 1.1, where no such methods
were defined in java.awt.Component. In 1.2, these methods
were added to Component, and so, if run with 1.2 or higher
version, the applet ***overrides*** those methods, but
applet's authors surely didn't intend it this way.
Anyways, this only becomes noticeable in 1.4, when 2D starts
depending (indirectly, via SurfaceData) on these methods:

<breakpoint>
 at knockemout.KnockEmBuffer.getWidth(KnockEmBuffer.java:129)
 at sun.awt.windows.WComponentPeer.getBounds(WComponentPeer.java:283)
 at sun.awt.windows.Win32SurfaceData.getBounds(Win32SurfaceData.java:439)
 at sun.java2d.SunGraphics2D.<init>(SunGraphics2D.java:245)

So now instead of the size that 2D is interested in, they get
some applet data that isn't related to its size the way we
expect.

======================================================================

This fix is for the "Knock 'Em Out" failure. The "Go with the flow" failure 
was fixed with 4688962 putback. 

The "War Zone" applet has been removed from the website.  

The "Family Feud" applet is working after this fix and the one for 4688962.  

 xxxxx@xxxxx  2002-06-28

Note: this fix seems to have caused a regression: 4710984.  

 xxxxx@xxxxx  2002-07-07

======================================================================

For hopper build 16, the "Family Feud" applet is still failing with the same
symptoms.  The applet never loads and appears as a gray box. There is sound that occurs and it appears that the applet is running because the Java Console is has continual output, but nothing can be seen and the game can't be played.

Info on Java Console output is as follows:

java.lang.StringIndexOutOfBoundsException and netscape.javascript.JSException both occur
when launching the applet. netscape.javascript.JSException also occurs when exiting.

It was tested on WinXP Pro/IE6 for build 16 and retested on W2K Pro with IE 5.5
with the problem being duplicated on both configurations using a resolution of
1024x768 and 32 bit color.  It was also retested on the original OS and browser with the following resolution/colors of 1024x768 - 16 Colors, 800x600 - 16 Colors, and 800x600 - 32 Colors. Changing the Screen Area and color does not change the behavior of the applet.

The following applets are also failing with the same symptoms.  These applets
don't produce any errors in the Java console Output or Trace Log output:

From location:  http://www.real.com/games/webgames/index.html
Go with The Flow
Find the Difference Animal
Find the Difference Art
Find the Difference International - this applet passed with build 11.
Find the Difference Nature
Removi

These applets were also testing using the different resolutions/colors listed
above.
 xxxxx@xxxxx  2002-07-18 

The "Find the Difference" applets listed above are not related to this bug 
report.  We have filed a separate bug about them: 4722949.  
 xxxxx@xxxxx  2002-07-30
Comments
  
  Include a link with my name & email   

Submitted On 03-JUN-2002
Airchango
I have encountered a problem like this, i try to run a game 
and it shows the blank screen with the square box at the 
top left i dont know about the repaint or anything because 
i know nothing about it, i just know its not working 
correctly.


Submitted On 09-OCT-2002
hodown
I have an applet with this problem.  Since I can not control
the clients plug-in bug, how can I fix this in my applet? 
What do I need to override?  Could someone send me a code
fragment?

The applet is on my home page at, http://www.NitzSpace.com/

Thanks.


Submitted On 13-JAN-2003
lparker8
i lost my java.lang.class-y.do.0 can you send me something 
to fix problem,please thank you.


Submitted On 20-FEB-2003
Denise26
My java applet is corrupted, how do I fix it?The following error 
has occurred:
Java Corrupted or Misinstalled 
Explanation:
This error occurs when your Java software has been either 
misinstalled on your browser or if Java software has been 
corrupted in some way. Some of the symptoms include a large 
number of "exception errors", applets not showing up (or 
showing up as a blank or gray frame), and other crash 
problems.

How to Fix the Problem:
Please go to help.pogo.com for assistance.


Submitted On 17-APR-2003
pklott68
I get a grey screen and a warning flashes across the screen 
that says: java.lang.Null Pointer Exception
       and also another warning sign that says:
nanoxml.XML Parse Exception during parsing.


Submitted On 31-JUL-2005
PILE UP  WILL NOT DOWNLOAD IT SAYS APPLET IS STARTED BUT ALL THERE IS IS A BLACK BOX THE SAME WITH SHAPE SHIFTER.  CAN YOU PLEASE SEND ME SOMETHING TO FIX IT    I AM A GAME JUNKIE


Submitted On 17-JAN-2006
anniebell2cu@aol.com
i cant play my pogo games they want load becous my applet and java arnt working



PLEASE NOTE: JDK6 is formerly known as Project Mustang