Name: aaR10208 Date: 09/24/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b20 (passed with jdk1.4.2-b28)
Testbase : RegTest-test
Platform[s] : Mercury
switch/Mode : generic
Falling test[s]: java/awt/print/PrinterJob/RemoveListener.java
javax/print/attribute/Services_getDocFl.java
javax/print/attribute/DestAttrTest.java
For example, file: java/awt/print/PrinterJob/RemoveListener.java
===
14 PrintService[] pservices = PrintServiceLookup.lookupPrintServices(null, null);
15 if (pservices.length == 0){
16 return;
17 }
! 18 DocPrintJob pj = pservices[0].createPrintJob();
===
The tests do not expect that pservices[0] could be null, so they fail with NPE.
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/all/b20/ws/j2se/test/java/awt/print/PrinterJob/RemoveListener.java
/java/re/jdk/1.5.0/promoted/all/b20/ws/j2se/test/javax/print/attribute/Services_getDocFl.java
/java/re/jdk/1.5.0/promoted/all/b20/ws/j2se/test/javax/print/attribute/DestAttrTest.java
jtr file location:
==================
/net/jtgb4u4c/export/sail15/results.2/tiger/b20/regtest/linux/mercury/workDir/test/java/awt/print/PrinterJob/RemoveListener.jtr
/net/jtgb4u4c/export/sail15/results.2/tiger/b20/regtest/linux/mercury/workDir/test/javax/print/attribute/Services_getDocFl.jtr
/net/jtgb4u4c/export/sail15/results.2/tiger/b20/regtest/linux/mercury/workDir/test/javax/print/attribute/DestAttrTest.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/sh
#JDKHOME=/net/koori/onestop/jdk/1.5.0/promoted/all/b19/
#JDKHOME=/net/koori/onestop/jdk/1.4.2/latest
JDKHOME=/net/koori/onestop/jdk/1.5.0/promoted/all/b20
JDK=${JDKHOME}/binaries/linux-i586
TESTBASE=${JDKHOME}/ws/j2se/test
#JDK=/net/jtgb4u4c/export/sail16/JDK/1.5/linux-i586
TEST=RemoveListener
TESTCLASSES=.
TESTSRC=${TESTBASE}/java/awt/print/PrinterJob
TESTJAVA=${JDK}
export TESTCLASSES
export TESTSRC
export TESTJAVA
cp ${TESTSRC}/${TEST}.java .
${JDK}/bin/javac *.java
${JDK}/bin/java -showversion ${TEST}
--- script end ---
Script output:
==============
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b20)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b20, mixed mode)
Exception in thread "main" java.lang.NullPointerException
at RemoveListener.main(RemoveListener.java:18)
Specific machine info:
======================
Hostname: jtg-li111
OS: Mercury (SuSE Linux Desktop 1.0)
Linux jtg-li111 2.4.19-4GB #1 Fri Aug 29 14:46:49 UTC 2003 i686 unknown
======================================================================