IBM Support

PK65429: WCM API CANCLEAR() METHOD THROWS JAVA.LANG.ILLEGALSTATEEXCEPTION WHEN USED WITH PORTLET

 

APAR status

  • Closed as program error.

Error description

  • WCM API reference canclear method canClear()
    throws below exception, when JSP deployed as Portlet
    
    java.lang.IllegalStateException: Repository is not logged in.
    
            at
    com.ibm.workplace.wcm.services.repository.WorkspaceManager.getAc
    tiveCredentials(WorkspaceManager.java(Compiled Code))
            at
    com.ibm.workplace.wcm.services.repository.WorkspaceManager.getWo
    rkspace(WorkspaceManager.java(Compiled Code))
            at
    com.ibm.workplace.wcm.services.reference.ContentLinkReference.is
    Clearable(ContentLinkReference.java:52)
    

Local fix

  • Test Fix provided
    

Problem summary

  • Affected users all.
    CANCLEAR() METHOD THROWS JAVA.LANG.ILLEGALSTATEEXCEPTION WHEN
    USED WITHIN a Portlet.  The code was trying to get the active
    credentials from the stack but that were not accessible via
    the stack.
    

Problem conclusion

  • Corrected the code to use the system workspace.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK65429

  • Reported component name

    WRKPLC WEB CON

  • Reported component ID

    5724I2900

  • Reported release

    60G

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-05-05

  • Closed date

    2008-08-18

  • Last modified date

    2008-08-18

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

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

Modules/Macros

  • WCM
    

Fix information

  • Fixed component name

    WRKPLC WEB CON

  • Fixed component ID

    5724I2900

Applicable component levels

  • R60G 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.0.1.3","Line of Business":{"code":"LOB33","label":"N\/A"}}]

Document Information

Modified date:
21 December 2021