IBM Support

PK96379: NULLPOINTEREXCEPTION WHEN CREATING WORKSPACE FOR REQUEST WITH NO PRINCIPAL ASSOCIATED

 

APAR status

  • Closed as program error.

Error description

  • Problem Description:
    NullPointerException when creating WCM API workspace for
    anonymous principal
    
    When creating a WCM API workspace using the principal from a
    request, for example:
    
    Workspace wcmWorkspace = null;
    try {
     wcmWorkspace =
    WCM_API.getRepository().getWorkspace(request.getUserPrincipal())
    ;
     wcmWorkspace.setCurrentDocumentLibrary(wcmWorkspace.getDocument
    Library("CKTestLib"));
    
    A NullPointer exception is encountered:
    
                                     java.lang.NullPointerException
                at
    com.presence.connect.wmmcomms.UserManagementUtils.getPrincipalIn
    fo(UserManagementUtils.java:635)
                at
    com.ibm.workplace.wcm.api.WCM_Workspace.<init>(WCM_Workspace.jav
    a:260)
                at
    com.ibm.workplace.wcm.api.WCM_Repository.getWorkspace(WCM_Reposi
    tory.java:125)
    
    
    The expected behavior is that a workspace for the anonymous user
    is returned.
    

Local fix

Problem summary

  • NULLPOINTEREXCEPTION WHEN CREATING WORKSPACE FOR REQUEST WITH NO
    PRINCIPAL ASSOCIATED
    

Problem conclusion

  • WCM will now check for null principal on the request, and return
    an anonymous workspace.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK96379

  • Reported component name

    LOTUS WEB CONT

  • Reported component ID

    5724I2900

  • Reported release

    61A

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-09-16

  • Closed date

    2009-09-16

  • Last modified date

    2009-09-16

  • 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

    LOTUS WEB CONT

  • Fixed component ID

    5724I2900

Applicable component levels

  • R61A PSY

       UP

  • R61B PSY

       UP

[{"Business Unit":{"code":"BU051","label":"N\/A"},"Product":{"code":"SUPPORT","label":"IBM Web Content Manager"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1.0.1","Line of Business":{"code":"LOB33","label":"N\/A"}}]

Document Information

Modified date:
20 December 2021