IBM Support

PH41630: ECLIPSELINK NULLPOINTEREXCEPTION FROM BATCHPOLICY

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

  • Running a BatchFetch query with EclipseLink that contains a
    full entity package name throws a NullPointerException
    
    ´´´
    Caused by: java.lang.NullPointerException
    at
    org.eclipse.persistence.queries.BatchFetchPolicy.getDataResults(
    BatchFetchPolicy.java:251)
    at
    org.eclipse.persistence.mappings.ForeignReferenceMapping.extract
    ResultFromBatchQuery(ForeignReferenceMapping.java:562)
    at
    org.eclipse.persistence.internal.indirection.NoIndirectionPolicy
    .valueFromBatchQuery(NoIndirectionPolicy.java:297)
    at
    org.eclipse.persistence.mappings.ForeignReferenceMapping.batched
    ValueFromRow(ForeignReferenceMapping.java:275)
    at
    org.eclipse.persistence.mappings.ForeignReferenceMapping.valueFr
    omRow(ForeignReferenceMapping.java:2176)
    at
    org.eclipse.persistence.mappings.ForeignReferenceMapping.buildCl
    oneFromRow(ForeignReferenceMapping.java:336)
    at
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.build
    AttributesIntoWorkingCopyClone(ObjectBuilder.java:2002)
    at
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.build
    WorkingCopyCloneFromRow(ObjectBuilder.java:2255)
    at
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.build
    ObjectInUnitOfWork(ObjectBuilder.java:853)
    at
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.build
    Object(ObjectBuilder.java:740)
    at
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.build
    Object(ObjectBuilder.java:694)
    at
    org.eclipse.persistence.queries.ReportQueryResult.processItem(Re
    portQueryResult.java:251)
    ´´´
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server - Java Persistence API - JPA 2.1 &   *
    *                  EclipseLink                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: EclipseLink can throw a                 *
    *                      NullPointerException executing batch    *
    *                      queries with fully qualified class      *
    *                      names                                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Example:
    ´´´
    select e from my.package.Entity e
    ´´´
    Exception:
    ´´´
    Caused by: java.lang.NullPointerException
    at
    org.eclipse.persistence.queries.BatchFetchPolicy.getDataResults(
    BatchFetchPolicy.java:251)
    at
    org.eclipse.persistence.mappings.ForeignReferenceMapping.extract
    ResultFromBatchQuery(ForeignReferenceMapping.java:562)
    at
    org.eclipse.persistence.internal.indirection.NoIndirectionPolicy
    .valueFromBatchQuery(NoIndirectionPolicy.java:297)
    at
    org.eclipse.persistence.mappings.ForeignReferenceMapping.batched
    ValueFromRow(ForeignReferenceMapping.java:275)
    at
    org.eclipse.persistence.mappings.ForeignReferenceMapping.valueFr
    omRow(ForeignReferenceMapping.java:2176)
    at
    org.eclipse.persistence.mappings.ForeignReferenceMapping.buildCl
    oneFromRow(ForeignReferenceMapping.java:336)
    at
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.build
    AttributesIntoWorkingCopyClone(ObjectBuilder.java:2002)
    at
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.build
    WorkingCopyCloneFromRow(ObjectBuilder.java:2255)
    at
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.build
    ObjectInUnitOfWork(ObjectBuilder.java:853)
    at
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.build
    Object(ObjectBuilder.java:740)
    at
    org.eclipse.persistence.internal.descriptors.ObjectBuilder.build
    Object(ObjectBuilder.java:694)
    at
    org.eclipse.persistence.queries.ReportQueryResult.processItem(Re
    portQueryResult.java:251)
    ´´´
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH41630

  • 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

    2021-10-28

  • Closed date

    2021-12-20

  • Last modified date

    2021-12-20

  • 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

[{"Line of Business":{"code":"LOB45","label":"Automation"},"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"}]

Document Information

Modified date:
21 December 2021