IBM Support

PH40522: JZOS STRINGFIELD THOWS AN EXCEPTION WHEN TRIMMING SPACES FROM A STRING THAT CONTAINS ONLY SPACES

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • The exception java.lang.ArrayIndexOutOfBoundsException is
    thrown. The problem is caused when using StringField.getString
    to trim leading blanks from an all-blank string with an
    offset.
    .
    Stack trace
    <stackTrace>Exception in thread "main"
    java.lang.ArrayIndexOutOfBoundsException: 200
           at
    com.ibm.jzos.fields.StringField.getString(StringField.java:171)
           at
    com.ibm.jzos.fields.StringField.getString(StringField.java:155)
    

Local fix

  • Use JZOS to trim trailing blanks, instead of leading blanks,
    from an all-blank string.
    

Problem summary

  • The problem is caused when using a JZOS class to trim leading
    blanks from an all-blank string with an offset.
    

Problem conclusion

  • The JZOS has been updated to prevent the exception from
    occurring when trimming strings of blanks.
    .
    This APAR will be fixed in the following Java Releases:
       11   SR13 FP0  (11.0.13.0)
       8    SR6 FP36  (8.0.6.36)
    .
    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

Comments

APAR Information

  • APAR number

    PH40522

  • Reported component name

    JAVA Z/OS 64

  • Reported component ID

    620700104

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-09-12

  • Closed date

    2021-09-12

  • Last modified date

    2021-09-12

  • 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 Z/OS 64

  • Fixed component ID

    620700104

Applicable component levels

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"800"}]

Document Information

Modified date:
13 September 2021