IBM Support

PI21816: JAVA.LANG.STRINGINDEXOUTOFBOUNDSEXCEPTION THROWN WHEN USING CUSTOMIZED DMHPREX PREPROCESSOR

Fixes are available

Rational Asset Analyzer for System z Fix Pack 6 (6.1.0.6) for 6.1
Rational Asset Analyzer Fix Pack 6 (6.1.0.6) for 6.1
Rational Asset Analyzer Fix Pack 7 (6.1.0.7) for 6.1
Rational Asset Analyzer for System z Fix Pack 7 (6.1.0.7) for 6.1
Rational Asset Analyzer for System z Fix Pack 8 (6.1.0.8) for 6.1
Rational Asset Analyzer Fix Pack 8 (6.1.0.8) for 6.1
Rational Asset Analyzer for System z Fix Pack 9 (6.1.0.9) for 6.1
Rational Asset Analyzer Fix Pack 9 (6.1.0.9) for 6.1
Rational Asset Analyzer Fix Pack 10 (6.1.0.10) for 6.1
Rational Asset Analyzer for System z Fix Pack 10 (6.1.0.10) for 6.1
Rational Asset Analyzer Fix Pack 11 (6.1.0.11) for 6.1
Rational Asset Analyzer for System z Fix Pack 11 (6.1.0.11) for 6.1
Rational Asset Analyzer Fix Pack 12 (6.1.0.12) for 6.1
Rational Asset Analyzer for System z Fix Pack 12 (6.1.0.12) for 6.1
Rational Asset Analyzer Fix Pack 13 (6.1.0.13) for 6.1
Rational Asset Analyzer for System z Fix Pack 13 (6.1.0.13) for 6.1
Rational Asset Analyzer Fix Pack 14 (6.1.0.14) for 6.1
Rational Asset Analyzer for System z Fix Pack 14 (6.1.0.14) for 6.1
Rational Asset Analyzer Fix Pack 15 (6.1.0.15) for 6.1
Rational Asset Analyzer for System z Fix Pack 15 (6.1.0.15) for 6.1
Rational Asset Analyzer Fix Pack 16 (6.1.0.16) for 6.1
Rational Asset Analyzer for System z Fix Pack 16 (6.1.0.16) for 6.1
Rational Asset Analyzer for System z Fix Pack 17 (6.1.0.17) for 6.1
Rational Asset Analyzer Fix Pack 17 (6.1.0.17) for 6.1
Rational Asset Analyzer Fix Pack 18 (6.1.0.18) for 6.1
Rational Asset Analyzer for System z Fix Pack 18 (6.1.0.18) for 6.1
Rational Asset Analyzer Fix Pack 19 (6.1.0.19) for 6.1
Rational Asset Analyzer for System z Fix Pack 19 (6.1.0.19) for 6.1
Rational Asset Analyzer Fix Pack 20 (6.1.0.20) for 6.1
Rational Asset Analyzer for System z Fix Pack 20 (6.1.0.20) for 6.1
Rational Asset Analyzer for System z Fix Pack 21 (6.1.0.21) for 6.1
Rational Asset Analyzer Fix Pack 21 (6.1.0.21) for 6.1
Rational Asset Analyzer Fix Pack 22 (6.1.0.22) for 6.1
Rational Asset Analyzer for System z Fix Pack 22 (6.1.0.22) for 6.1
Rational Asset Analyzer for System z Fix Pack 23 (6.1.0.23) for 6.1
Rational Asset Analyzer Fix Pack 23 (6.1.0.23) for 6.1

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Exception like the following is thrown when scanning files with
    COBOL code and using a customized DMHPREX:
    
    RaaRestWar SEVERE: null
    java.lang.StringIndexOutOfBoundsException
     at java.lang.String.substring(String.java:1148)
     at
    com.ibm.dmh.programModel.statement.DmhStatementCall.checkNonRetu
    rningCallList(DmhStatementCall.java:36)
     at
    com.ibm.dmh.programModel.statement.DmhStatementCall.setNonReturn
    ing(DmhStatementCall.java:70)
     at
    com.ibm.dmh.programModel.DmhProgramModel.addStatement(DmhProgram
    Model.java:453)
     at
    com.ibm.dmh.programModel.DmhProgramModel.setSourceStatements(Dmh
    ProgramModel.java:159)
     at
    com.ibm.dmh.model.DmhComponentProgram.buildProgramModel(DmhCompo
    nentProgram.java:431)
     at
    com.ibm.dmh.aqp.HandleDynamicReferences.run(HandleDynamicReferen
    ces.java:69)
     at
    com.ibm.dmh.aqp.AnalysisQueueProcessorWork.processQueueType(Anal
    ysisQueueProcessorWork.java:598)
     at
    com.ibm.dmh.aqp.AnalysisQueueProcessorWork.startQueueProcessing(
    AnalysisQueueProcessorWork.java:551)
     at
    com.ibm.dmh.aqp.AnalysisQueueProcessorWork.processTheQueueWithJa
    va(AnalysisQueueProcessorWork.java:464)
     at
    com.ibm.dmh.aqp.AnalysisQueueProcessorWork.run2(AnalysisQueuePro
    cessorWork.java:401)
     at com.ibm.dmh.qp.DmhWork.run(DmhWork.java:23)
    etc.
    

Local fix

  • Scanning directly without preprocessing does not produce error.
    

Problem summary

  • ORDER BY phrase of affected query was not returning rows
    intended by the key of the table.
    

Problem conclusion

  • RAA code was changed to correct the ORDER BY phrase (since it
    is working now on input order and a partially correct ORDER
    BY), and filter out the USING and RETURNING phraseTypeIds
    before retrieving the correct literal for the CALL target.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI21816

  • Reported component name

    RATL ASSET ANAL

  • Reported component ID

    5724V2700

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-07-10

  • Closed date

    2014-09-10

  • Last modified date

    2014-09-26

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

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

Modules/Macros

  • dmhcore
    

Fix information

  • Fixed component name

    RATL ASSET ANAL

  • Fixed component ID

    5724V2700

Applicable component levels

  • R610 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS3JHP","label":"Rational Asset Analyzer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
17 October 2021