IBM Support

PM39902: NULLPOINTEREXCEPTION WHEN USING CONTENT TAG IN JSPS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • This regression is encountered when using the tag library to
    render a content document and the WCM_ContentTag is bypassing
    checks added to the code to protect against the parameters that
    could affect rendering (PM23408)(e.g. the parameter that tells
    the rendering engine that we are rendering a component).
    ..
    Therefore the presentation template is null and we see the
    following exception (CF15):
    
    [5/24/11 14:06:03:240 EDT] 00000050 WCM_ContentTa W   Exception
    caught processing request. Cause: null
                                     java.lang.NullPointerException
     at com.presence.connect.data.StreamedTextMime
    .render(StreamedTextMime.java:74)
     at com.aptrix.pluto.renderer.PageRequestProcessor
    .processRequest(PageRequestProcessor.java:124)
     at com.aptrix.pluto.renderer.RendererModule
    .processNonConnectTagCacheableRequest(RendererModule.java:1167)
     at com.aptrix.pluto.renderer.RendererModule
    .processCacheableRequest(RendererModule.java:1081)
     at com.aptrix.pluto.renderer.RendererModule
    .processPageRequest(RendererModule.java:995)
     at com.ibm.workplace.wcm.api.WCM_Workspace.render(WCM_Workspace
    .java:3800)
     at com.ibm.workplace.wcm.api.WCM_ContentTag
    .doStartTag(WCM_ContentTag.java:162) . . .
    
    
    Opened for release 7001
    

Local fix

  • The customer can work around this issue by creating a new
    request parameter map and only setting the necessary parameters.
    That is ensue the component name and component id are not set in
    the parameter map.
    

Problem summary

  • Problem Summary:
     NullPointerException After CF 38 or higher while rendering a
    JSP that uses the  WCM content tag
    
    Detailed Problem Description:
    After applying wcm cumulative fix cf38 or above customers using
    the content tag:
    
    <wcm:content pageDesign="<%=presentationTemplate%>">
    Error rendering the content <%=presentationTemplate%>
    </wcm:content >
    
    May observe the following NullPointerException:
    
    00000050 WCM_ContentTa W Exception caught processing request.
    Cause: null
    java.lang.NullPointerException
    at com.aptrix.pluto.renderer.PlutoRenderer.render(PlutoRenderer
    .java:140)
    

Problem conclusion

  • Problem Analysis:
    This method of rendering in the API was overlooked when fixes
    included in the cumulative fix were made.
    The rendering engine assumes we are trying to render a component
    instead of a content document,
    resulting in the null presentation template.
    
    Problem Solution:
    The code has been updated to ensure the appropriate request
    parameters are maintained.
    
    
    Affected Users:
    All users .
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM39902

  • Reported component name

    WEBSPHERE PORTA

  • Reported component ID

    5724E7600

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-24

  • Closed date

    2011-06-28

  • Last modified date

    2011-06-28

  • 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

    WEBSPHERE PORTA

  • Fixed component ID

    5724E7600

Applicable component levels

  • R61C PSY

       UP

  • R610 PSY

       UP

  • R615 PSY

       UP

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHRKX","label":"WebSphere Portal"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
21 December 2021