JDK-4684615 : JCK1.4: api/java_awt/interactive/PrintDialogTest.html
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_98
  • CPU: x86
  • Submitted: 2002-05-14
  • Updated: 2002-10-23
  • Resolved: 2002-10-11
Related Reports
Relates :  
Relates :  
Description

Name: kaR10181			Date: 05/14/2002



Filed By       : J2SE-SQA [###@###.###
JDK            : jdk1.4.1-b11
JCK            : JCK1.4-b17
Platform[s]    : Windows 98
switch/Mode    : -client -Xmixed
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test   : api/java_awt/interactive/PrintDialogTest.java


Test source location:
=====================
 
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_awt/interactive/PrintDialogTest.java

jtr file location:
==================

/net/jtgb4u4c.eng/export/sail15/results/hopper/b11/win32/win98_plugin_ns4.77_linux-17/workDir/api-interactive/java_awt/interactive/PrintDialogTest.jtr

How to reproduce:
=================
---------Script start-------------------
#!/bin/sh
JAVA_HOME="c:/jdk1.4.1"
JCK="c:/jck1.4/JCK-runtime-14"
export CLASSPATH="$JCK/classes;$JCK/javatest.jar"
executeClass="javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest"
executeArgs="-platform.hasPrinter true"
$JAVA_HOME/bin/java -client -Xmixed -showversion ${executeClass} ${executeArgs}


---------Script end  -------------------

Press "printDialog()" button. After print dialog creating, try to move 
this dialog. Panel with "printDialog" button should be repainted after 
moving, but it does not, and user can see pictures like a screenshot on 
the test panel until print dialog exist. It seems test panel is not 
repainting until print dialog destroing. 

Specific Machine Info:
======================
Hostname: linux-17
OS: Windows 98

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

Comments
EVALUATION I wonder if this is the cause: D 1.10 02/02/04 10:13:43 rray 11 10 00017/00001/00099 MRs: COMMENTS: [rray] Fix 4632159 - Lightweight repaint problem after dismissing heavyweight PrintDialog Note: we made a similar change to awt_FileDialog.cpp. ###@###.### 2002-05-14 This test cannot be run within the harness (other tests are running fine within jtreg) with the following error: no test descriptions found while reading C:\JCK-Runtime-14\tests\api\java_awt\interactive\PrintDialogTest.html no tests found or selected I have checked and double-checked the file and pathname, and even copied the test from the directory in the description, but to no avail. ###@###.### 2002-05-15 The test itself was in the exclude list and is failing with a NullPointerException. Reassigning this bug to JCK. ###@###.### 2002-05-21 Correction: The test in NOT in the exclude list. ###@###.### 2002-05-21 Here is the stack trace of the NullPointerException that is being thrown in the test: java.lang.NullPointerException at javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest.invokeTestCase(PrintDialogTest.java:100) at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:203) at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:135) at javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest.parseAndRun(PrintDialogTest.java:73) at javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest.main(PrintDialogTest.java:142) PrintDialogTest0001: Failed. Could not access the test case: java.lang.NullPointerException java.lang.NullPointerException at javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest.invokeTestCase(PrintDialogTest.java:100) at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:203) at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:135) at javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest.parseAndRun(PrintDialogTest.java:73) at javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest.main(PrintDialogTest.java:142) PrintDialogTest0002: Failed. Could not access the test case: java.lang.NullPointerException STATUS:Failed.tests: 2; failed: 2; first test case failure: PrintDialogTest0001 ###@###.### 2002-05-21 Gauri.sharma from JCK-dev team tried to reproduce the null pointer exception, but she doesn't seem to get it. According to her input, this test earlier used to throw the exception, but the test was fixed in JCK1.4 Please make sure you are using the JCK1.4-FCS. [which has the fixed version of this test.] Let us know if you are having trouble finding the FCS version of JCK1.4 We have a copy at: /net/jtgb4u4c.sfbay/export/sail16/JCK/jck14/JCK-runtime-14 As the test is valid, I am reassigning it back to J2SE. ###@###.### 2002-05-21 Since the bug is reproducible in merlin FCS and is not a hopper regression, I am downgrading the priority and committing to mantis. ###@###.### 2002-05-22 Name: ssR10077 Date: 10/03/2002 Looks very similar to 4374079 which is recategorized to classes_2D ====================================================================== Name: ssR10077 Date: 10/08/2002 The WPrintDialog blocks event pump if displayed on EventDispatchThread. Simplified testcase: import java.awt.*; import java.awt.print.*; public class PrintTest extends Frame { public PrintTest() { setSize(500, 500); setVisible(true); EventQueue.invokeLater( new Runnable() { public void run() { PrinterJob job = PrinterJob.getPrinterJob(); job.printDialog(); } } ); } public static void main(String ars[]) { PrintTest test = new PrintTest(); } } ====================================================================== Name: ssR10077 Date: 10/08/2002 It is not a WPrintDialog. It WPrintJob.jobSetup ###@###.### 2002-10-08 ====================================================================== Name: ssR10077 Date: 10/09/2002 Bug is not reproducible with Mantis b02 due to fix 4692074 in awt_Canvas.cpp ======================================================================
11-06-2004