IBM Support

PM10208: CLASSCASTEXCEPTION THROWN FOR VALIDATE IN VARIABLE DECLARATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A ClassCastException is thrown if a validate expression that
    specifies one of the optional 'lax' or 'strict' keywords
    appears in  initialization expression for a variable
    declaration.  Given any input, the following  query yields the
    error "com.ibm.xtq.ast.parsers.xpath.
    tempconstructors.ISimpleNodeWithValue
    incompatible with com.ibm.xtq.ast.nodes.Expr"
    
    
    declare variable $x := validate lax { <a/> };
    
    $x
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of IBM WebSphere Application Server   *
    *                  7.0 with Feature Pack for XML 1.0.0.3       *
    ****************************************************************
    * PROBLEM DESCRIPTION: ClassCastException for XQuery           *
    *                      validate expression                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A ClassCastException occurs if a validate expression that
    specifies one of the optional 'lax' or 'strict' keywords
    appears in initialization expression for a variable
    declaration in XQuery.  For example, given any input, the
    following query will cause a ClassCastException with the
    message
    "com.ibm.xtq.ast.parsers.xpath.tempconstructors.ISimpleNodeWithV
    alue
    incompatible with com.ibm.xtq.ast.nodes.Expr"
    
    declare variable $x := validate lax { <a/> };
    
    $x
    

Problem conclusion

  • The processor now correctly processes such variable
    initialization expressions without raising an exception and
    produces the correct result.
    
    This APAR is currently targeted for inclusion in the Feature
    Pack for XML 1.0.0.5.  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

    PM10208

  • Reported component name

    XML FEATUREPACK

  • Reported component ID

    5724J0856

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-03-17

  • Closed date

    2010-03-22

  • Last modified date

    2010-03-22

  • 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

    XML FEATUREPACK

  • Fixed component ID

    5724J0856

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022