IBM Support

LO72475: XPAGES: GETDOCUMENT THROWS EXCEPTION AT SECOND TIME

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

  • Customer create a Xpage that checks the document size with
    "getDocument - getSize" before saving.
    When user creates a new document that is over size limit, at
    saving first time the size check works fine. But if user save it
    second time, exception occurs at "getDocument".
    
    "Error while executing JavaScript action expression
    Script interpreter error, line=2, col=21: [TypeError] Exception
    occurred calling method NotesXspDocument.getDocument(boolean)
    null"
    
    JavaScript code on the Save button is the following.
    ----------------
    var doc = document1.getDocument(true);
    if( doc.getSize() > 10240 ){
      requestScope.rsMsg = "Over the size limit";
    }else{
      document1.save();
      context.redirectToPage("xpVwAll.xsp",true);
    }
    ----------------
    
    Steps to reproduce:
    1. Create a Form and a Xpage
    2. Create a Richtext control
    3. Create Save Button that execute the following
    ----------------
    var doc = document1.getDocument(true);
    if( doc.getSize() > 10240 ){
      requestScope.rsMsg = "Over the size limit";
    }else{
      document1.save();
      context.redirectToPage("xpVwAll.xsp",true);
    }
    ----------------
    4. Create a new document via Notes client, and save it
    5. Edit the document via Browser
    6. Insert an image that size is more than 20KB
    7. Click "Save" Button
    8. The following message is displayed, and click OK
    "Saving this document will change its format from native Notes
    rich text to HTML. This may cause a change or loss of formatting
    if opened again in the regular Notes client."
    9. "Over the size limit" message is displayed correctly
    10. Click "Save" Button again
    11. Exception is displayed
    
    At second time getDocument is null.
    

Local fix

Problem summary

  • A programming error was found and will be corrected in a future
     release.
    

Problem conclusion

  • A programming error was found and will be corrected in a future
     release.
    

Temporary fix

Comments

  • This APAR is associated with SPR# MNAA8ZSAK2.
    A programming error was found and will be corrected in a future
     release.
    

APAR Information

  • APAR number

    LO72475

  • Reported component name

    DOMINO SERVER

  • Reported component ID

    5724E6200

  • Reported release

    853

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-11-06

  • Closed date

    2012-11-21

  • Last modified date

    2012-11-21

  • 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

    DOMINO SERVER

  • Fixed component ID

    5724E6200

Applicable component levels

  • R853 PSN

       UP

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSKTMJ","label":"Lotus Domino"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5.3","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
21 November 2012