-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.0
-
x86
-
windows_nt
Test : libs_api_tests/1.2_only/javax_swing/JFrame/JF_setLayeredPane
execute_positive
TestBase : /net/sqesvr.eng/export/vsn/testbase/testbase_vm
Mode : -Xint, -Xcomp, -Xmixed
Platform : win32
JAVA_HOME : /net/sqesvr.eng/export/vsn/VM/merlin/weekahead/jdk/latest/{OS}
Steps to reproduce
1) cd /net/sqesvr.eng/export/vsn/GammaBase/Bugs/{Bugid}
2) sh doit {JAVA_HOME}
Output:
java version "1.4.0-beta_refresh"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b68)
Java HotSpot(TM) Server VM (build 20010613140929.dcubed.baseline, interpreted mode)
Test 1: setLayeredPane
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77F6750B
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at sun.awt.windows.WToolkit.makeColorModel(Native Method)
at sun.awt.windows.WImage.makeImageRep(WImage.java:33)
at sun.awt.image.Image.getImageRep(Image.java:280)
- locked <08283DC8> (a sun.awt.windows.WImage)
at sun.awt.windows.WToolkit.checkScrImage(WToolkit.java:475)
at sun.awt.windows.WToolkit.checkImage(WToolkit.java:481)
at java.awt.Component.checkImage(Component.java:2740)
at java.awt.ImageMediaEntry.getStatus(MediaTracker.java:875)
at java.awt.MediaTracker.statusID(MediaTracker.java:672)
- locked <08282280> (a java.awt.MediaTracker)
at java.awt.MediaTracker.waitForID(MediaTracker.java:620)
- locked <08282280> (a java.awt.MediaTracker)
at javax.swing.ImageIcon.loadImage(ImageIcon.java:228)
- locked <08282280> (a java.awt.MediaTracker)
at javax.swing.ImageIcon.<init>(ImageIcon.java:85)
at javax.swing.ImageIcon.<init>(ImageIcon.java:105)
at JF_setLayeredPane.Test01(JF_setLayeredPane.java:134)
at JF_setLayeredPane.main(JF_setLayeredPane.java:87)
Dynamic libraries:
Local Time = Sat Jun 16 12:04:54 2001
Elapsed Time = 3
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Server VM (20010613140929.dcubed.baseline interpreted mode)
#
# An error report file has been saved as hs_err_pid313.log.
# Please refer to the file for further information.
#
exit status = 1
************************************************************************
NOTE: Test passes on other Platforms and the output is followed by.
*************************************************************************
java version "1.4.0-beta_refresh"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b68)
Java HotSpot(TM) Server VM (build 20010613140929.dcubed.baseline-debug, interpreted mode)
Test 1: setLayeredPane
getComponentCountInLayer return: 2
Test 2: layeredPane == null
Expected exception IllegalComponentStateException thrown
java.awt.IllegalComponentStateException: layeredPane cannot be set to null.
at javax.swing.JRootPane.setLayeredPane(JRootPane.java:568)
at javax.swing.JFrame.setLayeredPane(JFrame.java:617)
at JF_setLayeredPane.Test02(JF_setLayeredPane.java:229)
at JF_setLayeredPane.main(JF_setLayeredPane.java:90)
Pass count: 2
Fail count: 0
Test for JFrame.setLayeredPane Passed
exit status = 0
Simple Testcase to re-produce failure:
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.accessibility.*;
public class bug {
public static void main(String[] args) {
System.out.println("Start Test for ImageIcon Creation");
boolean status = Test01();
if (! status)
System.out.println("Status:="+status+" Test Failed!!");
else
System.out.println("Status:="+status+" Test Passed!!");
}
public static boolean Test01() {
boolean bReturn = false;
final ImageIcon icon = new ImageIcon("t:\\4470874\\dukeWaveRed.gif");
bReturn = true;
return bReturn;
}
}
execute_positive
TestBase : /net/sqesvr.eng/export/vsn/testbase/testbase_vm
Mode : -Xint, -Xcomp, -Xmixed
Platform : win32
JAVA_HOME : /net/sqesvr.eng/export/vsn/VM/merlin/weekahead/jdk/latest/{OS}
Steps to reproduce
1) cd /net/sqesvr.eng/export/vsn/GammaBase/Bugs/{Bugid}
2) sh doit {JAVA_HOME}
Output:
java version "1.4.0-beta_refresh"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b68)
Java HotSpot(TM) Server VM (build 20010613140929.dcubed.baseline, interpreted mode)
Test 1: setLayeredPane
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77F6750B
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at sun.awt.windows.WToolkit.makeColorModel(Native Method)
at sun.awt.windows.WImage.makeImageRep(WImage.java:33)
at sun.awt.image.Image.getImageRep(Image.java:280)
- locked <08283DC8> (a sun.awt.windows.WImage)
at sun.awt.windows.WToolkit.checkScrImage(WToolkit.java:475)
at sun.awt.windows.WToolkit.checkImage(WToolkit.java:481)
at java.awt.Component.checkImage(Component.java:2740)
at java.awt.ImageMediaEntry.getStatus(MediaTracker.java:875)
at java.awt.MediaTracker.statusID(MediaTracker.java:672)
- locked <08282280> (a java.awt.MediaTracker)
at java.awt.MediaTracker.waitForID(MediaTracker.java:620)
- locked <08282280> (a java.awt.MediaTracker)
at javax.swing.ImageIcon.loadImage(ImageIcon.java:228)
- locked <08282280> (a java.awt.MediaTracker)
at javax.swing.ImageIcon.<init>(ImageIcon.java:85)
at javax.swing.ImageIcon.<init>(ImageIcon.java:105)
at JF_setLayeredPane.Test01(JF_setLayeredPane.java:134)
at JF_setLayeredPane.main(JF_setLayeredPane.java:87)
Dynamic libraries:
Local Time = Sat Jun 16 12:04:54 2001
Elapsed Time = 3
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Server VM (20010613140929.dcubed.baseline interpreted mode)
#
# An error report file has been saved as hs_err_pid313.log.
# Please refer to the file for further information.
#
exit status = 1
************************************************************************
NOTE: Test passes on other Platforms and the output is followed by.
*************************************************************************
java version "1.4.0-beta_refresh"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b68)
Java HotSpot(TM) Server VM (build 20010613140929.dcubed.baseline-debug, interpreted mode)
Test 1: setLayeredPane
getComponentCountInLayer return: 2
Test 2: layeredPane == null
Expected exception IllegalComponentStateException thrown
java.awt.IllegalComponentStateException: layeredPane cannot be set to null.
at javax.swing.JRootPane.setLayeredPane(JRootPane.java:568)
at javax.swing.JFrame.setLayeredPane(JFrame.java:617)
at JF_setLayeredPane.Test02(JF_setLayeredPane.java:229)
at JF_setLayeredPane.main(JF_setLayeredPane.java:90)
Pass count: 2
Fail count: 0
Test for JFrame.setLayeredPane Passed
exit status = 0
Simple Testcase to re-produce failure:
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.accessibility.*;
public class bug {
public static void main(String[] args) {
System.out.println("Start Test for ImageIcon Creation");
boolean status = Test01();
if (! status)
System.out.println("Status:="+status+" Test Failed!!");
else
System.out.println("Status:="+status+" Test Passed!!");
}
public static boolean Test01() {
boolean bReturn = false;
final ImageIcon icon = new ImageIcon("t:\\4470874\\dukeWaveRed.gif");
bReturn = true;
return bReturn;
}
}
- duplicates
-
JDK-4464925 Some JCK1.3a tests cause java crash (sun.awt.windows.WToolkit.makeColorModel met
- Closed