IBM Support

PH45431: ECLIPSELINK CRITERIA API SUPPORT FOR PARAMETER VALUES IN CRITERIABUILDER ISNULL FUNCTION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Passing a ParameterExpression to CriteriaBuilder.isNull()
    results in EclipseLink throwing an exception when setting the
    parameter value:
    
    Exception:
    ´´´
    java.lang.IllegalArgumentException: No parameter with name :
    Parameter[name=null] was found within the query:
    ReportQuery(referenceClass=SimpleEntity ).
     at
    org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(E
    JBQueryImpl.java:548)
     at
    org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(E
    JBQueryImpl.java:1)
    ´´´
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server - Java Persistence API -             *
    *                  EclipseLink                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: Add support for parameters within       *
    *                      EclipseLink CriteriaBuilder isNull &    *
    *                      isNotNull functions                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    ExclipseLink throws an exception when parameters are used
    within CriteriaBuilder isNull & isNotNull functions. The
    support was never added to EclipseLink.
    Exception:
    ```
    java.lang.IllegalArgumentException: No parameter with name :
    Parameter[name=null] was found within the query:
    ReportQuery(referenceClass=SimpleEntity ).
    at
    org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(E
    JBQueryImpl.java:548)
    at
    org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(E
    JBQueryImpl.java:1)
    ```
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH45431

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-04-04

  • Closed date

    2022-08-05

  • Last modified date

    2022-08-05

  • 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 APP S

  • Fixed component ID

    5724J0800

Applicable component levels

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

Document Information

Modified date:
06 August 2022