JDK-7008513 : Case TranslucentJAppletTest.jtr automatically failed due to java.lang.RuntimeException
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_redhat_5.0
  • CPU: x86
  • Submitted: 2010-12-22
  • Updated: 2011-07-07
  • Resolved: 2011-07-07
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.
7 b140Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Test suite name: AWT
JDK/JRE tested: jdk-7-ea-bin-b122-linux-i586-16_dec_2010.bin  
Reproducible: Always
Reproducible on machine:
[If sometimes] Also reproducible on machine:
Is it a platform specific regression: N
[If yes] Is it a new platform support: N
[If yes] Regression relative to OS version:
Is it a Regression: N
[If yes] Regression introduced in release/build: 7b120
[If yes] Test result on FCS: See the actual result.
Test run log location: http://jsqalab.sfbay.sun.com/results/Evergreen/7/1.7.0b122/awt/rhel5.5-x86/work//java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.jtr
Test run result location: http://jsqalab.sfbay.sun.com/results/Evergreen/7/1.7.0b122/awt/rhel5.5-x86/work//java/awt/Window/TranslucentJAppletTest/

Steps to reproduce:

1.   Install test bundle JDK7b122 from


to =/workspaces/awt/jdk1.7.0b122

2.  Install Jtreg from http://jre.sfbay.sun.com/java/re/jtreg/4.1/promoted/latest/binaries/latest/jtreg/

 locate at /workspaces/awt/reg/jtreg

3.    Download and unzip jdk7 ws from


to  /workspaces/awt/reg/ws

4.    Modify the reg_awt.sh as:

export JAVA_HOME=/workspaces/awt/jdk1.7.0b102

/workspaces/awt/reg/jtreg/linux/bin/jtreg -g -v -m -ignore:run -jdk:/workspaces/awt/jdk1.7.0b122 -r:/workspaces/awt/reg/report -w:/workspaces/awt/reg/work /workspaces/awt/reg/ws/test Make printer work fine.

5.    From command line, run sh ./reg_awt.sh

6.    After Jtreg launched, choose Current Configuration from View Filter:Status of , 

7.    Choose  New Configuration from Configure of menu bar.

8.    Choose Yes form Specify Test to Run ,click Next button then choose From a List a File,click next button and click Browse button to choose /workspaces/awt /awt.list.

9.     Click next button and select the default option.

10.   Choose Yes button from Specify Keyword? then click next button and type manual on the textfield of Response and click Done button to save a *jti file.

11.   Click StartRunning Test  button to run the case.


Actual behavior:

The case automatically failed due to main' threw exception: java.lang.RuntimeException: Test FAILED: frame pixel at (0, 0) is not transparent

 Log file:

color1 = java.awt.Color[r=53,g=2,b=2]

newColor1 = java.awt.Color[r=255,g=255,b=255]

java.lang.RuntimeException: Test FAILED: frame pixel at (0, 0) is not transparent

  at TranslucentJAppletTest.main(TranslucentJAppletTest.java:92)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:613)

  at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)

  at java.lang.Thread.run(Thread.java:732)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test FAILED: frame pixel at (0, 0) is not transparent

JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test FAILED: frame pixel at (0, 0) is not transparent



1. On platform sles11 x86  with same build also has same issue.

2. On the same platform with build 7b120,7b121, also has same issue.

3. On platform win7-sp1-x86 with same build the case passed.

EVALUATION I've just filed 7035061 to track this fix in the plugin code.

SUGGESTED FIX --- old/test/java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java 2011-04-08 14:51:29.000000000 +0400 +++ new/test/java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java 2011-04-08 14:51:28.000000000 +0400 @@ -43,6 +43,7 @@ private static void initAndShowGUI() { frame = new JFrame(); JApplet applet = new JApplet(); + applet.setBackground(new Color(0, 0, 0, 0)); JPanel panel = new JPanel() { protected void paintComponent(Graphics g) { paintComponentCalled = true;

EVALUATION Setting the applet's background to a transparent color (new Color(0, 0, 0, 0)) makes the test pass. Perhaps this would be enough to fix this issue. However, we should also file a bug against Plugin so that they would do the same for applets detached from web pages.

EVALUATION It does not seem a regression I can reproduce the behaviour with any jdk 6 and jdk 7 builds. Can you confirm that the issue is not reproducible with 7b120 in your case?