IBM Support

IV83542: JAVA.LANG.ARRAYINDEXOUTOFBOUNDSEXCEPTION IS THROWN OUT WHEN PRIN T SERVICE IS USED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: Steps to reproduce:
    -------------------
    1.Install IBM SDK8 build.
    2.Start SwingSet2 demo as below.
    >>java -jar $JAVA_HOME/SwingSet2.jar
    3. Click on JTable demo icon and then click on print button.
    .
    Stack Trace: Exception Details
    -----------------
    Exception in thread "AWT-EventQueue-0"
    java.lang.ArrayIndexOutOfBoundsException: Array index out of
    range: 36
            at
    sun.print.IPPPrintService.getDefaultAttributeValue(IPPPrintServi
    ce.java:1470)
            at
    sun.print.RasterPrinterJob.defaultPage(RasterPrinterJob.java:162
    6)
            at
    sun.print.RasterPrinterJob.setPrintable(RasterPrinterJob.java:10
    46)
            at javax.swing.JTable.print(JTable.java:6252)
            at javax.swing.JTable.print(JTable.java:6111)
            at javax.swing.JTable.print(JTable.java:6066)
            at TableDemo.printTable(TableDemo.java:648)
            at TableDemo.access$000(TableDemo.java:71)
            at TableDemo$14.actionPerformed(TableDemo.java:319)
            at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.ja
    va:2033)
            at
    javax.swing.AbstractButton$Handler.actionPerformed(AbstractButto
    n.java:2359)
            at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButton
    Model.java:413)
            at
    javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.jav
    a:270)
            at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicBu
    ttonListener.java:263)
            at
    java.awt.Component.processMouseEvent(Component.java:6546)
            at
    javax.swing.JComponent.processMouseEvent(JComponent.java:3335)
            at java.awt.Component.processEvent(Component.java:6311)
            at java.awt.Container.processEvent(Container.java:2247)
            at
    java.awt.Component.dispatchEventImpl(Component.java:4902)
            at
    java.awt.Container.dispatchEventImpl(Container.java:2305)
            at java.awt.Component.dispatchEvent(Component.java:4724)
            at
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java
    :4899)
            at
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:
    4536)
            at
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:4477
    )
            at
    java.awt.Container.dispatchEventImpl(Container.java:2291)
            at java.awt.Window.dispatchEventImpl(Window.java:2761)
            at java.awt.Component.dispatchEvent(Component.java:4724)
            at
    java.awt.EventQueue.dispatchEventImpl(EventQueue.java:769)
            at java.awt.EventQueue.access$500(EventQueue.java:108)
            at java.awt.EventQueue$3.run(EventQueue.java:720)
            at java.awt.EventQueue$3.run(EventQueue.java:714)
            at
    java.security.AccessController.doPrivileged(AccessController.jav
    a:620)
            at
    java.security.ProtectionDomain$1.doIntersectionPrivilege(Protect
    ionDomain.java:86)
            at
    java.security.ProtectionDomain$1.doIntersectionPrivilege(Protect
    ionDomain.java:97)
            at java.awt.EventQueue$4.run(EventQueue.java:742)
            at java.awt.EventQueue$4.run(EventQueue.java:740)
            at
    java.security.AccessController.doPrivileged(AccessController.jav
    a:620)
            at
    java.security.ProtectionDomain$1.doIntersectionPrivilege(Protect
    ionDomain.java:86)
            at
    java.awt.EventQueue.dispatchEvent(EventQueue.java:739)
            at
    java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatc
    hThread.java:212)
            at
    java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchTh
    read.java:127)
            at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatc
    hThread.java:116)
            at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
    :112)
            at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
    :104)
            at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:93)
    .
    N/A
    

Local fix

  • N/A
    

Problem summary

  • It is caused by wrongly porting an oracle changeset. In the
    changeset, changes in two java files have been merged to IBM jdk
    while another changes in native file not. As a result, the array
    index is retrieved from a wrong place and cause
    ArrayIndexOutOfBoundsException.
    

Problem conclusion

  • Port the changes in native file as well.
    .
    This APAR will be fixed in the following Java Releases:
       8    SR3       (8.0.3.0)
    .
    Contact your IBM Product's Service Team for these Service
    Refreshes and Fix Packs.
    For those running stand-alone, information about the available
    Service Refreshes and Fix Packs can be found at:
               https://www.ibm.com/developerworks/java/jdk/
    

Temporary fix

  • N/A
    

Comments

APAR Information

  • APAR number

    IV83542

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-04-07

  • Closed date

    2016-04-07

  • Last modified date

    2016-04-07

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022