IV25915: SERIALBLOB.GETBINARYSTREAM(LONG POS, LONG LENGTH) DOES NOT CHECK INPUT RANGE AND HAS ARRAY INDEX ERROR

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

  • Error Message: SerialBlob.getBinaryStream requires an input
    argument that is a starting index based on 1 but an incorrect
    ByteArrayInputStream is returned, constructed from SerialBlob
    with starting index based on 0.  User gets the returned
    InputStream that has one element shift.  In addtional, prior to
    the fix, no proper range check which is stated in its javadoc is
    performed.  When the range is invalid, SQLException should be
    thrown.
    .
    Stack Trace: N/A
    .
    N/A
    

Local fix

  • N/A
    

Problem summary

  • The problem is caused when calling SQL api,
    SerialBlob.getBinaryStream(long pos, long length).  An incorrect
    ByteArrayInputStream instance is returned.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR11
    6.0.1 SR4
    .
    Fix the following 2 problems for SerialBlob.getBinaryStream(long
    pos, long length): SQLException is thrown when the input range
    is not valid.  Correct ByteArrayInputStream instance is
    returned.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV25915

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-09

  • Closed date

    2012-08-09

  • Last modified date

    2012-08-09

  • 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

  • R600 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Runtimes for Java Technology
Java Class Libraries

Software version:

6.0

Reference #:

IV25915

Modified date:

2012-08-09

Translate my page

Machine Translation

Content navigation