Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6332934

4886069 testcase is failing for 1.4.2_xx on linux but passing on solaris

XMLWordPrintable

    • 2d
    • x86
    • linux_suse_sles_9

      4886069/PrintTest.java is failing on all linux platforms with 1.4.2_xx but passing on Solaris.


      Testcase Location:
      =================
      /net/urts071.india/export6/testSuites/Regression/workspace_142/test/CTE_REGTEST/Generic/4886069/PrintTest.java

      JDK:
      ===
      java version "1.4.2_10"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_10-b02, mixed mode)

      Operating System: SLES9.0, Madhatter-Cinnabar-Linux & RHEL 3.0
      =================

      Testcase Location:
      =================
      /net/urts071.india/export6/testSuites/Regression/workspace_142/test/CTE_REGTEST/Generic/4886069/PrintTest.java

      Steps to reproduce:
      ===================

      1) Please copy the attached PrintTest.java file &

         Please copy the attached TestConsole.java

      2) compile it
      <jdk location>/j2sdk1.4.2_10/bin/javac TestConsole.java

      <jdk location>/j2sdk1.4.2_10/bin/javac PrintTest.java

      3) Run it
      <jdk location>/j2sdk1.4.2_10/bin/java PrintTest

      4) Pop-up and test instructions window will open.

      5)Select Print in File menu option as per the instructions given in instruction window.

      Expected behaviour:
      ==================
      a. 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)
      b. Click on 'Print' button to print a page
      c. Look at the printed paper

      Actual behaviour:
      =================
      a) print dialog did not popup , following error came in the console


      ERROR:
      =====
      Warning: Missing charsets in String to FontSet conversion
      Warning: Missing charsets in String to FontSet conversion
      java.lang.IllegalArgumentException: services must be non-null and non-empty
              at javax.print.ServiceUI.printDialog(ServiceUI.java:143)
              at PrintTest$PrintUtils.print(PrintTest.java:155)
              at PrintTest$PrintUtils.printComponent(PrintTest.java:140)
              at PrintTest.jMenuItem1_actionPerformed(PrintTest.java:131)
              at PrintTest$1.actionPerformed(PrintTest.java:80)
              at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
              at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
              at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
              at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
              at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
              at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
              at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
              at java.awt.Component.processMouseEvent(Component.java:5100)
              at java.awt.Component.processEvent(Component.java:4897)
              at java.awt.Container.processEvent(Container.java:1569)
              at java.awt.Component.dispatchEventImpl(Component.java:3615)
              at java.awt.Container.dispatchEventImpl(Container.java:1627)
              at java.awt.Component.dispatchEvent(Component.java:3477)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
              at java.awt.Container.dispatchEventImpl(Container.java:1613)
              at java.awt.Window.dispatchEventImpl(Window.java:1606)
              at java.awt.Component.dispatchEvent(Component.java:3477)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

            Unassigned Unassigned
            ssubhanisunw Shaik Subhani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: