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

os.name property changed on Linux in merlin build 71

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description

      Tested with merlin-beta_refresh b71 on RedHat Linux 6.2J and 6.2J Update.

      Printing causes java.awt.print.PrinterIOException as below;

      java.awt.print.PrinterIOException
              at sun.print.PSPrinterJob$PrinterSpooler.run(PSPrinterJob.java:663)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.print.PSPrinterJob.endDoc(PSPrinterJob.java:709)
              at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1067)
              at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:955)
              at PrintTest_C.actionPerformed(PrintTest_C.java:171)
              at java.awt.Button.processActionEvent(Button.java:384)
              at java.awt.Button.processEvent(Button.java:353)
              at java.awt.Component.dispatchEventImpl(Component.java:3488)
              at java.awt.Component.dispatchEvent(Component.java:3349)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
      Caused by: java.io.IOException: /usr/bin/lp: not found
              at java.lang.UNIXProcess.forkAndExec(Native Method)
              at java.lang.UNIXProcess.<init>(UNIXProcess.java:139)
              at java.lang.Runtime.execInternal(Native Method)
              at java.lang.Runtime.exec(Runtime.java:551)
              at java.lang.Runtime.exec(Runtime.java:477)
              at java.lang.Runtime.exec(Runtime.java:443)
              at sun.print.PSPrinterJob$PrinterSpooler.run(PSPrinterJob.java:658)
              ... 14 more


      To reporoduce;

      1. Compile and run attached test case (PrintTest_C.java)
         % java PrintTest_C
      2. Page Setup dialog comes up and press OK
      3. Print dialog comes up and press Print.

      Then, you can see the problem.

      This test case works correctly with merlin-beta_refresh b70.
      Therefore, this is regression.

      > java -version
      java version "1.4.0-beta_refresh"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b71)
      Java HotSpot(TM) Client VM (build 1.4-internal, mixed mode)

        Attachments

          Activity

            People

            Assignee:
            sherman Xueming Shen
            Reporter:
            rsuzukisunw Rieko Suzuki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: