IBM Support

PH16920: ECLIPSELINK: AGGREGATEOBJECTMAPPING SUPPORT FOR ECLIPSELINK.CURSOR

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

  • When using an AggregateObjectMapping (like an Embeddable) and
    EclipseLink's Cursor API to get a resultSet, EclipseLink
    calculates the wrong attribute index in the query, resulting in
    an exception:
    
     java.lang.NumberFormatException: For input
    string: "fieldName"
     at org.eclipse.persistence.exceptions.Conve
    rsionException.couldNotBeConverted(ConversionException.java:93)
    
    at org.eclipse.persistence.internal.helper.ConversionManager.con
    vertObjectToInteger(ConversionManager.java:560)
     at org.eclipse.
    persistence.internal.helper.ConversionManager.convertObject(Conv
    ersionManager.java:131)
     at org.eclipse.persistence.internal.dat
    abaseaccess.DatasourcePlatform.convertObject(DatasourcePlatform.
    java:225)
     at org.eclipse.persistence.mappings.foundation.Abstra
    ctDirectMapping.getObjectValue(AbstractDirectMapping.java:625)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server - Java Persistence API - JPA 2.1 &   *
    *                  EclipseLink                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: Using EclipseLink's QueryHint,          *
    *                      ´eclipselink.cursor´, with an           *
    *                      Embeddable results in                   *
    *                      ConversionException thrown              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When using EclipseLink's
    org.eclipse.persistence.queries.Cursor API to obtain a result
    set, EclipseLink calculates the wrong index for @Embeddable
    attributes. This causes EclipseLink to throw a
    ConversionException as the wrong index is used.
    Example:
    Query query = em.createQuery("SELECT e.mappingField1,
    e.aggregateObjectMapping FROM SimpleMappingEntity e");
    query.setHint(QueryHints.CURSOR, HintValues.TRUE);
    org.eclipse.persistence.queries.Cursor cursor =
    (org.eclipse.persistence.queries.Cursor)
    query.getSingleResult();
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH16920

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-09-16

  • Closed date

    2020-01-23

  • Last modified date

    2020-01-23

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels



Document information

More support for: WebSphere Application Server
General

Software version: 900

Reference #: PH16920

Modified date: 23 January 2020