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

Test java/awt/print/PrinterJob/TestPgfmtSetMPA.java may fail w/o printer

XMLWordPrintable

    • 2d
    • b08
    • generic
    • linux, os_x_10.15

        The test java/awt/print/PrinterJob/TestPgfmtSetMPA.java
        fails on linux in headless mode without printer:

        ----------System.out:(2/32)----------
        1.0 1.0 6.5 9.0
        1.0 1.0 6.5 9.0
        ----------System.err:(13/944)----------
        java.lang.RuntimeException: getPageFormat doesn't apply specified MediaPrintableArea attribute
        at TestPgfmtSetMPA.main(TestPgfmtSetMPA.java:68)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
        at java.base/java.lang.Thread.run(Thread.java:841)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: getPageFormat doesn't apply specified MediaPrintableArea attribute
        JavaTest Message: shutting down test

              psadhukhan Prasanta Sadhukhan
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: