-
Bug
-
Resolution: Fixed
-
P2
-
5.0
-
tiger
-
x86
-
windows_xp
-
Verified
Name: mmR10223 Date: 09/04/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b17, JDK1.5.0-b16 (passes using JDK1.4.2-b28)
Testbase : Regression-test
Platform[s] : Windows XP
switch/Mode : default
Falling test[s]: java/awt/Frame/RemoveNotifyTest/RemoveNotifyTest.html
This test fails on Windows platform with error message:
"Applet thread threw exception: java.lang.OutOfMemoryError: null pData"
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/java/awt/Frame/RemoveNotifyTest/RemoveNotifyTest.html
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b17/regtest/win32/winXP_linux-16/workDir/test/java/awt/Frame/RemoveNotifyTest/RemoveNotifyTest.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/sh
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
JT_HOME="h:/java/jct"
JAVA_HOME="h:/java/jdk1.5.0/win32"
TEST_BASE_PATH="h:/java/regtest.tiger/test"
TESTVMOPTS="-client"
CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar"
TEST="java/awt/Frame/RemoveNotifyTest/RemoveNotifyTest.html"
mkdir -p $WORK_DIR/scratch 2>&1
mkdir -p $WORK_DIR/jtData 2>&1
mkdir -p $REPORT_DIR 2>&1
#rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
cd $WORK_DIR/scratch
$JAVA_HOME/bin/java -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,windir=$windir,SystemRoot=$SystemRoot,PATH=${SHELL%/*},CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-16" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"
--- script end ---
Script output:
==============
Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(29/1930)----------
java.lang.NullPointerException: component argument pData
at sun.awt.windows.Win32SurfaceData.initOps(Native Method)
at sun.awt.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:439)
at sun.awt.windows.Win32SurfaceData.createData(Win32SurfaceData.java:315)
at sun.awt.windows.WComponentPeer.replaceSurfaceData(WComponentPeer.java:307)
at sun.awt.windows.WComponentPeer$2.run(WComponentPeer.java:320)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:188)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:459)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
STATUS:Failed.Applet thread threw exception: java.lang.NullPointerException: component argument pData
java.lang.OutOfMemoryError: null pData
at sun.awt.windows.WFramePeer.createAwtFrame(Native Method)
at sun.awt.windows.WFramePeer.create(WFramePeer.java:159)
at sun.awt.windows.WComponentPeer.<init>(WComponentPeer.java:495)
at sun.awt.windows.WCanvasPeer.<init>(WCanvasPeer.java:29)
at sun.awt.windows.WPanelPeer.<init>(WPanelPeer.java:54)
at sun.awt.windows.WWindowPeer.<init>(WWindowPeer.java:79)
at sun.awt.windows.WFramePeer.<init>(WFramePeer.java:147)
at sun.awt.windows.WToolkit.createFrame(WToolkit.java:360)
at java.awt.Frame.addNotify(Frame.java:474)
at java.awt.Window.show(Window.java:489)
at RemoveNotifyTest.start(RemoveNotifyTest.java:81)
at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:133)
at java.lang.Thread.run(Thread.java:549)
STATUS:Failed.Applet thread threw exception: java.lang.OutOfMemoryError: null pData
result: Failed. Execution failed: Applet thread threw exception: java.lang.OutOfMemoryError: null pData
test result: Failed. Execution failed: Applet thread threw exception: java.lang.OutOfMemoryError: null pData
Specific machine info:
======================
Hostname: linux-16
OS: Windows XP Pro
Hostname: linux-22
OS: Windows 2000
======================================================================