IV12626: FAILS TO OPEN ENCRYPTED DOCUMENTS USING APACHE POI

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: An EncryptedDocumentException is received while a
    Java 6.0.1 or Java 7 application uses the org.apache.poi API to
    process encrypted documents.
    .
    Stack Trace: org.apache.poi.EncryptedDocumentException: Default
    password is invalid for docId/saltData/saltHash
    at
    org.apache.poi.hssf.record.RecordFactoryInputStream$StreamEncryp
    tionInfo.createDecryptingStream
    at org.apache.poi.hssf.record.RecordFactoryInputStream.<init>
    at
    org.apache.poi.hssf.eventusermodel.HSSFEventFactory.genericProce
    ssEvents
    at
    org.apache.poi.hssf.eventusermodel.HSSFEventFactory.abortablePro
    cessEvents
    at
    org.apache.poi.hssf.eventusermodel.HSSFEventFactory.abortablePro
    cessWorkbookEvents
    .
    

Local fix

  • This issue can be avoided using the
    -Xjit:disableRematerialization option. Note that this might
    cause a minor impact on the application's performance.
    

Problem summary

  • The problem is caused when the JIT compiler incorrectly
    optimizes a method which both reads and writes from a byte
    array. The resulting compiled code performs an invalid read
    after the byte array has been modified, leading to incorrect
    behaviour.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.1 SR1 FP1
    7.0.0 SR1
    .
    The JIT compiler has been updated to eliminate the problematic
    code transformation.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV12626

  • Reported component name

    JIT

  • Reported component ID

    620700124

  • Reported release

    260

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-01-05

  • Closed date

    2012-01-13

  • Last modified date

    2012-05-22

  • 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

    JIT

  • Fixed component ID

    620700124

Applicable component levels

  • R260 PSY

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

Runtimes for Java Technology
Just In Time (JIT) Compiler

Software version:

260

Reference #:

IV12626

Modified date:

2012-05-22

Translate my page

Machine Translation

Content navigation