JDK-4909383 : REGRESSION: Regression-cte CTE_REGTEST/Generic/4498286/FontSelection.java fails
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-08-20
  • Updated: 2009-04-08
  • Resolved: 2003-10-01
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
5.0 tigerFixed
Related Reports
Relates :  
Description

Name: mmR10223			Date: 08/19/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b15, JDK1.5.0-b13, JDK1.5.0-b14
Testbase       : Regression-cte
Platform[s]    : Solaris (sparc, x86)
switch/Mode    : -client
Falling test[s]: CTE_REGTEST/Generic/4498286/FontSelection.java 

This test passes using JDK1.5.0-b12, JDK1.4.2-b28 on Solaris and it passes
on Linux and Windows platforms using all JDK1.5.0, JDK1.4.2. 

Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.5.0/test/CTE_REGTEST/Generic/4498286/FontSelection.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b15/regtest/sparc/sol10_sparc_gnome_linux-8/workDir/cte/CTE_REGTEST/Generic/4498286/FontSelection.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="/net/linux-15/export/home/java/jct"
JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/sparc"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/cte"

TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME

JTOPTS="-client"
TESTVMOPTS="-client"

CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/jemmy/jemmy.jar"

export JAVA_HOME
export JT_HOME
export TESTWITH
export CLASSPATH

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 -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-8" -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/CTE_REGTEST/Generic/4498286/FontSelection.java"

--- script end ---

Script output:
==============

Test output (jtr part):
=======================
----------System.out:(35/3837)----------
Trace:
Start to wait frame "Frame with title "FontSelection"" opened
Trace:
Frame "Frame with title "FontSelection"" has been opened in 10 milliseconds
    javax.swing.JFrame[frame0,0,24,550x250,layout=java.awt.BorderLayout,title=FontSelection,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,5,21,539x223,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
Trace:
Start to wait action "Wait Any javax.swing.JComboBox loaded"
Trace:
"Wait Any javax.swing.JComboBox loaded" action has been produced in 11 milliseconds with result 
    : javax.swing.JComboBox[,0,25,229x25,layout=javax.swing.plaf.metal.MetalComboBoxUI$MetalComboBoxLayoutManager,alignmentX=0.0,alignmentY=0.0,border=,flags=16777544,maximumSize=,minimumSize=,preferredSize=,isEditable=false,lightWeightPopupEnabled=true,maximumRowCount=8,selectedItemReminder=AngsanaUPC]
Trace:
Start to wait action "Wait Any javax.swing.JComboBox loaded"
Trace:
"Wait Any javax.swing.JComboBox loaded" action has been produced in 3 milliseconds with result 
    : javax.swing.JComboBox[,0,25,42x25,layout=javax.swing.plaf.metal.MetalComboBoxUI$MetalComboBoxLayoutManager,alignmentX=0.0,alignmentY=0.0,border=,flags=16777544,maximumSize=,minimumSize=,preferredSize=,isEditable=false,lightWeightPopupEnabled=true,maximumRowCount=9,selectedItemReminder=10]
Trace:
Start to wait action "Wait Any javax.swing.JComboBox loaded"
Trace:
"Wait Any javax.swing.JComboBox loaded" action has been produced in 5 milliseconds with result 
    : javax.swing.JComboBox[,0,25,268x25,layout=javax.swing.plaf.metal.MetalComboBoxUI$MetalComboBoxLayoutManager,alignmentX=0.0,alignmentY=0.0,border=,flags=16777544,maximumSize=,minimumSize=,preferredSize=,isEditable=false,lightWeightPopupEnabled=true,maximumRowCount=9,selectedItemReminder=PLAIN]
Select "14" item in combobox
    : javax.swing.JComboBox[,0,25,42x25,layout=javax.swing.plaf.metal.MetalComboBoxUI$MetalComboBoxLayoutManager,alignmentX=0.0,alignmentY=0.0,border=,flags=16777544,maximumSize=,minimumSize=,preferredSize=,isEditable=false,lightWeightPopupEnabled=true,maximumRowCount=9,selectedItemReminder=10]
Select 2'th item in combobox
    : javax.swing.JComboBox[,0,25,42x25,layout=javax.swing.plaf.metal.MetalComboBoxUI$MetalComboBoxLayoutManager,alignmentX=0.0,alignmentY=0.0,border=,flags=16777544,maximumSize=,minimumSize=,preferredSize=,isEditable=false,lightWeightPopupEnabled=true,maximumRowCount=9,selectedItemReminder=10]
Waiting for "Button for combobox popup menu opening" subcomponent
Trace:
Start to wait action "Wait for "Button for combobox popup menu opening" subcomponent to be displayed"
Trace:
"Wait for "Button for combobox popup menu opening" subcomponent to be displayed" action has been produced in 4 milliseconds with result 
    : javax.swing.plaf.metal.MetalComboBoxButton[,0,0,42x25,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@52c6b4,flags=12583208,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=java.awt.Insets[top=0,left=1,bottom=1,right=3],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=,defaultCapable=true]
Trace:
Scroll JList to 2'th item
    : javax.swing.plaf.basic.BasicComboPopup$2[ComboBox.list,0,0,40x90,alignmentX=0.0,alignmentY=0.0,border=,flags=50331944,maximumSize=,minimumSize=,preferredSize=,fixedCellHeight=-1,fixedCellWidth=-1,horizontalScrollIncrement=-1,selectionBackground=javax.swing.plaf.ColorUIResource[r=153,g=153,b=204],selectionForeground=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],visibleRowCount=8,layoutOrientation=0]
java.lang.NullPointerException
Test Failed
----------System.err:(13/673)----------
java.lang.RuntimeException: Failed
	at Test4498286.main(Test4498286.java:119)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
	at java.lang.Thread.run(Thread.java:549)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failed
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failed


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failed


Specific machine info:
======================
Hostname: linux-6
OS: Solaris 9 (x86) (CDE)
Hostname: linux-8
OS: Solaris 10 (sparc) (GNOME)



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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger VERIFIED IN: tiger-beta
14-06-2004

EVALUATION Name: ssR10077 Date: 08/29/2003 ###@###.### 2003-08-29 Can't reproduce in my environment. From the bug description it looks like the problem is in jemmy, not in AWT. Can't say for sure as test doesn't print the stack trace for NullPointerException which actually caused the test failure. Comment: ###@###.### 2003-08-29 Please modify and run the test and update the bug with results. ------- Test4498286.java ------- *** //D/cygwin/tmp/sccs.c01000 Fri Aug 29 14:54:53 2003 --- Test4498286.java Fri Aug 29 14:45:16 2003 *************** *** 106,111 **** --- 106,112 ---- } catch (Exception e) { System.out.println(e.toString()); + e.printStackTrace(); testStatus = false; } ====================================================================== Name: ssR10077 Date: 09/01/2003 ###@###.### 2003-09-01 Bug is probably in Swing or Jemmy. As seen form the comment the exception ocures in JScrollPaneOperator.initOperators(JScrollPaneOperator.java:707) if(hScrollBarOper == null && getHorizontalScrollBar().isVisible()) { getHorizontalScrollBar() is a wrapper for JScrollPane.getHorizontalScrollBar() which returns null ====================================================================== Name: apR10133 Date: 09/09/2003 JScrollPane allows the null horizontal scrollbar. It was introduced with the fix for bug 4864304 to improve the memory consumption. The doc doesn't guarantee that JScrollPane.getHorizontalScrollBar() will always return non-null value. This is not a bug. Jemmy's JScrollPaneOperator.initOperators() needs to check that scrollbar isn't null. ###@###.### ====================================================================== Jemmy has been updated with this new feature and now the test is passing with latest Jemmy. Latest jemmy.jar has been updated in /net/jdk/export/jpse04/Jemmy/jemmy.jar location. ###@###.### 2003-10-01
01-10-2003