VOOZH about

URL: https://www.ibm.com/support/pages/apar/IJ17563

⇱ IJ17563: NULLPOINTEREXCEPTION WHEN CALLING JAVA.LANG.STRING.INDEXOF API WITH A LARGE OFFSET


IJ17563: NULLPOINTEREXCEPTION WHEN CALLING JAVA.LANG.STRING.INDEXOF API WITH A LARGE OFFSET

APAR status

  • Closed as program error.

Error description

  • Error Message: A NullPointerException is thrown and the
    java.lang.String.indexOf API appears close to the top of the
    stack backtrace.
    .
    Stack Trace: java.lang.NullPointerException
     at
    com.ibm.jit.JITHelpers.intrinsicIndexOfStringUTF16(JITHelpers.ja
    va:605)
     at java.lang.String.indexOf(String.java:2169)
    .
    This issue only happens when a very large offset is passed to
    the String.indexOf API, for example Integer.MAX_VALUE - 1.
    

Local fix

  • This issue can be worked around by passing in a smaller offset
    value or via the -Xjit:disableRecognizedMethods JVM option. Note
    however that using the -Xjit option may degrade performance.
    

Problem summary

  • The JCL code had an overflow scenario when large values are
    passed through the offset argument.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IJ17563

  • Reported component name

    JIT

  • Reported component ID

    620700124

  • Reported release

    130

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-07-11

  • Closed date

    2019-07-11

  • Last modified date

    2019-07-11

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

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

  • Fixed component name

    JIT

  • Fixed component ID

    620700124

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSC9HBA","label":"Just In Time (JIT) Compiler"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"130","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
11 July 2019