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

Regression: IndexOutOfBoundsException when printing

XMLWordPrintable

    • b32
    • x86
    • solaris
    • Verified

      Following exception occur when trying to do printing.

      ----------System.err:(22/1413)----------
      java.lang.IndexOutOfBoundsException
      at java.nio.CharBuffer.wrap(CharBuffer.java:352)
      at sun.print.PSPrinterJob.textOut(PSPrinterJob.java:1146)
      at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:175)
      at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:122)
      at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:96)
      at PrintTest$_PrintTest$Printer.print(PrintTest.java:118)
      at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1916)
      at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1385)
      at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1216)
      at PrintTest$_PrintTest.actionPerformed(PrintTest.java:230)
      at java.awt.Button.processActionEvent(Button.java:388)
      at java.awt.Button.processEvent(Button.java:356)
      at java.awt.Component.dispatchEventImpl(Component.java:4036)
      at java.awt.Component.dispatchEvent(Component.java:3873)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:591)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:247)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:168)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:162)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:154)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:115)
      STATUS:Failed.Applet thread threw exception: java.lang.IndexOutOfBoundsException
      result: Failed. Execution failed: Applet thread threw exception: java.lang.IndexOutOfBoundsException

      ----------------------------------------

      The testcase is at:
      /java/j2se-sqe/i18n/workspaces/i18n_mustang_ws/i18n/bundles/b03/gs16-03.tar.gz

      To reproduce:
      1. expand above test suite.
      2. goto i18n-mustang-int/i18n/src/GS
      3. sh run_gs.sh -jdk:${JAVA_HOME}
      other-functional/awt/print/PrintTest.java

      The problem was observed on both Solaris and Linux platforms.
      This was not happening at least in b24.


      ###@###.### 2005-03-25 09:09:56 GMT

            yyamasaksunw Yuriko Yamasaki (Inactive)
            ogino Shinya Ogino (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: