IBM Support

PM47594: IF AN EXTENSION FUNCTION THROWS AN EXCEPTION, NULL REFERENCES ARE PASSED AS THE MESSAGE AND THROWABLE TO ANY XMESSAGEHANDLER

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If a user-defined extension function that was invoked in an
    XSLT stylesheet, or an XQuery or XPath expression throws an
    exception, the report method of any user-supplied
    implementation of the com.ibm.xml.xapi.XMessageHandler are
    invoked.  However, the "message" argument of type
    java.lang.String and the "cause" argument of type
    java.lang.Throwable passed to the report method are null
    references.  This makes it difficult to diagnose the cause of
    the exception.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V8.0                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: If an Exception or Error is thrown      *
    *                      from a user-defined extension           *
    *                      function called from an XSLT            *
    *                      stylesheet or and XQuery or XPath       *
    *                      expression, a null reference is         *
    *                      passed to any installed                 *
    *                      XMessageHandler in the positions of     *
    *                      the message text and Throwable cause    *
    *                      arguments to the                        *
    *                      XMessageHandle.report method.           *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this       *
    *                  APAR.                                       *
    ****************************************************************
    Internally, the processor is extracting the message from any
    Throwable thrown by a user-defined extension function, and
    passes that as the message text to the XMessageHandler's
    report method, and does not pass the Throwable itself.  In
    many cases, the Throwable object has a null reference for the
    message, and so both the message text and Throwable reference
    passed to the report method are null in such cases.
    

Problem conclusion

  • The problem was resolved by ensuring that, for any Throwable
    object that it catches from calling the implementation of a
    user-defined extension function, the processor passes that
    object to the report method of any installed XMessageHandler
    object, along with any message text that the Throwable object
    contained.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.2.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM47594

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-09-12

  • Closed date

    2011-10-18

  • Last modified date

    2011-10-18

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

    PM43005

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

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 October 2021