JDK-6829489 : PrintDialog not appear on sles11
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0u19
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_suse_sles_11
  • CPU: x86
  • Submitted: 2009-04-13
  • Updated: 2010-04-07
  • Resolved: 2009-04-13
Related Reports
Duplicate :  
Description
regression test suite
os: SLES11 x64
jdk: 1.5.0_19b01
tests: sun/awt/print/4886069/PrintTest.java
      sun/awt/windows/ModalityListener/6542420/PrintDialogTest.java
      javax/print/4968560/Test4968560.java

test1
sun/awt/print/4886069/PrintTest.java
#Steps to reproduce:
1. A window 'Print Test' will appear with lines of text displayed in it
2. Click on 'File' menu and select 'Print'
    ( If Print dialog window does not show up, it might be that the
      print service is not found in the test system.
      Make sure that a default printer is installed in the system
      Look at the .jtr file for test output )
3. In the print dialog window click on 'Page Setup' tab and select 
      Size as 'Letter'
    (You can choose any printer from drop down name list)
4. Click on 'Print' button to print a page
5. Look at the printed paper
 
Check:
If the text is printed within a bordered area means have a margin
  in left, right, top, bottom - test PASSED
If the top margin of the page is NOT printed and the whole text is kind of upward shifted - test FAILED

#Actual behavior:
test failed with exception: 
java.lang.NullPointerException: null attribute
	at sun.print.IPPPrintService.isAttributeValueSupported(IPPPrintService.java:1100)
	at sun.print.ServiceDialog$OrientationPanel.updateInfo(ServiceDialog.java:2092)
	at sun.print.ServiceDialog$PageSetupPanel.updateInfo(ServiceDialog.java:1234)
	at sun.print.ServiceDialog.updatePanels(ServiceDialog.java:428)
	at sun.print.ServiceDialog.initPrintDialog(ServiceDialog.java:193)
	at sun.print.ServiceDialog.<init>(ServiceDialog.java:141)
	at javax.print.ServiceUI.printDialog(ServiceUI.java:180)
	at PrintTest$PrintUtils.print(PrintTest.java:167)
	at PrintTest$PrintUtils.printComponent(PrintTest.java:148)
	at PrintTest.jMenuItem1_actionPerformed(PrintTest.java:138)
	at PrintTest$1.actionPerformed(PrintTest.java:87)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
	at java.awt.Component.processMouseEvent(Component.java:5517)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
	at java.awt.Component.processEvent(Component.java:5282)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3984)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3819)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1791)
	at java.awt.Component.dispatchEvent(Component.java:3819)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	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)

on x64-sles10 prind dialog don't show after pressing File -> Print

test2
sun/awt/windows/ModalityListener/6542420/PrintDialogTest.java
#Steps to reproduce:
1. A small window 'Print Dialog Test' will appear
2. Click on 'Show' button
3. Print dialog window will open
   Close this print dialog window
4. Close the test 'Print Dialog Test' window
 
Press 'Done'

#Actual behavior:
Print dialog window doesn't open after clicking 'show' button.


This test passed on 150u19b01 at sles10





test3
javax/print/4968560/Test4968560.java
#Steps to reproduce:
1. A small window 'Printing Test' will appear with a button 'Print'
    (might be behind this instruction window)
2. Click 'Print' button and print dialog window will open
3. Select 'File' option to print to a file and print all the pages
   Select some file name and save it.
4. Open that file and look at the very end line of it
 
Check:
If it say '%%EOF' means the file is complete - test PASSED
If it does NOT have '%%EOF' at very last line means file is incomplete- test FAILED

#Actual behavior:
Application  crashes after clicking 'print' button.

java.lang.NullPointerException: null attribute
	at sun.print.IPPPrintService.isAttributeValueSupported(IPPPrintService.java:1100)
	at sun.print.ServiceDialog$OrientationPanel.updateInfo(ServiceDialog.java:2092)
	at sun.print.ServiceDialog$PageSetupPanel.updateInfo(ServiceDialog.java:1234)
	at sun.print.ServiceDialog.updatePanels(ServiceDialog.java:428)
	at sun.print.ServiceDialog.initPrintDialog(ServiceDialog.java:193)
	at sun.print.ServiceDialog.<init>(ServiceDialog.java:141)
	at javax.print.ServiceUI.printDialog(ServiceUI.java:180)
	at sun.print.RasterPrinterJob.printDialog(RasterPrinterJob.java:853)
	at sun.print.PSPrinterJob.printDialog(PSPrinterJob.java:414)
	at sun.print.RasterPrinterJob.printDialog(RasterPrinterJob.java:783)
	at sun.print.PrintJob2D.printDialog(PrintJob2D.java:388)
	at sun.awt.X11.XToolkit.getPrintJob(XToolkit.java:826)
	at Test4968560.actionPerformed(Test4968560.java:50)
	at java.awt.Button.processActionEvent(Button.java:388)
	at java.awt.Button.processEvent(Button.java:356)
	at java.awt.Component.dispatchEventImpl(Component.java:3984)
	at java.awt.Component.dispatchEvent(Component.java:3819)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	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)

This test passed on 150u19b01 at sles10


So it's looked like platform-regression





To reproduce log under stt-robot to
sles10_x64   stt-36.russia

cd /export/JQA/regression/150u19b01


sun/awt/print/4886069/PrintTest.java:
ksh /net/vice/export/home0/regression/run/run.ksh -c /export/jdk/jdk1.5.0_19/ -p /export/jdk/jdk1.5.0_19/ -b 32 -s true -n -m list --REG_JDK_UPDATE 1.5.0_19 -w /net/vice/export/home0/regression/workspaces/150/1.5.0_19b01_j4b/j2se/ -nl list1 -rc cur1 -rd pre

sun/awt/windows/ModalityListener/6542420/PrintDialogTest.java:
ksh /net/vice/export/home0/regression/run/run.ksh -c /export/jdk/jdk1.5.0_19/ -p /export/jdk/jdk1.5.0_19/ -b 32 -s true -n -m list --REG_JDK_UPDATE 1.5.0_19 -w /net/vice/export/home0/regression/workspaces/150/1.5.0_19b01_j4b/j2se/ -nl list2 -rc cur2 -rd pre


javax/print/4968560/Test4968560.java
ksh /net/vice/export/home0/regression/run/run.ksh -c /export/jdk/jdk1.5.0_19/ -p /export/jdk/jdk1.5.0_19/ -b 32 -s true -n -m list --REG_JDK_UPDATE 1.5.0_19 -w /net/vice/export/home0/regression/workspaces/150/1.5.0_19b01_j4b/j2se/ -nl list3 -rc cur3 -rd pre


sles11_x64   executive.russia

cd /export/JQA/regression


sun/awt/print/4886069/PrintTest.java:
ksh /net/vice/export/home0/regression/run/run.ksh -c /export/jdk/jdk1.5.0_19/ -p /export/jdk/jdk1.5.0_19/ -b 32 -s true -n -m list --REG_JDK_UPDATE 1.5.0_19 -w /net/vice/export/home0/regression/workspaces/150/1.5.0_19b01_j4b/j2se/ -nl list1 -rc cur1 -rd pre



sun/awt/windows/ModalityListener/6542420/PrintDialogTest.java:
ksh /net/vice/export/home0/regression/run/run.ksh -c /export/jdk/jdk1.5.0_19/ -p /export/jdk/jdk1.5.0_19/ -b 32 -s true -n -m list --REG_JDK_UPDATE 1.5.0_19 -w /net/vice/export/home0/regression/workspaces/150/1.5.0_19b01_j4b/j2se/ -nl list2 -rc cur2 -rd pre


javax/print/4968560/Test4968560.java:
ksh /net/vice/export/home0/regression/run/run.ksh -c /export/jdk/jdk1.5.0_19/ -p /export/jdk/jdk1.5.0_19/ -b 32 -s true -n -m list --REG_JDK_UPDATE 1.5.0_19 -w /net/vice/export/home0/regression/workspaces/150/1.5.0_19b01_j4b/j2se/ -nl list3 -rc cur3 -rd pre