IBM Support

PK95520: ENTITY ALIASES ARE NOT PROPERLY REGISTERED BEFORE USE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@58d658d6.
    [8/24/09 9:20:11:045 EDT] 0000004e ExceptionUtil E   CNTR0020E:
    EJB
    threw an unexpected (non-declared) exception during invocation
    of
    method "getCompanyMetaInfoByProcessingRegion" on bean "BeanId
    (IntegrationProcessorEAR#PayrollSystem.jar#LogonService, null)".
    Exception data: <openjpa-1.0.4-SNAPSHOT-r420667:736493 fatal
    user
    error> org.apache.openjpa.persistence.ArgumentException: Could
    not
    locate metadata for the class using alias "CompanyMetaInfo".
    This could
    mean that the OpenJPA enhancer or load-time weaver was not run
    on the
    type whose alias is "CompanyMetaInfo". Registered alias
    mappings:
    "{ClientDatabase=[class
    com.xxxx.yyyyyy.model.system.ClientDatabase],
    ClientSchema=[class com.xxxx.yyyyyy.model.system.ClientSchema],
    BatchTaskParameter=[class com.xxxx.yyyyyy.model.system.
    BatchTaskParameter], CompanyMetaInfo=[class
    com.xxxx.yyyyyy.model.
    system.CompanyMetaInfo], ClientCompany=[class
    com.xxxx.yyyyyy.model.
    system.ClientCompany], BatchTask=[class
    com.xxxx.yyyyyy.model.system.
    BatchTask], BatchJob=[class
    com.xxx.yyyyyy.model.system.BatchJob],
    PcpwMigrationStatus=[class com.xxxx.yyyyyy.model.system.
    PcpwMigrationStatus], GlobalProp=[class
    com.xxxx.yyyyyy.model.system.
    GlobalProp], Pod=[class com.xxxx.yyyyyy.model.system.Pod]}"
    at org.apache.openjpa.meta.MetaDataRepository.getMetaData
    (MetaDataRepository.java:362)
    at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.
    getClassMetaData(JPQLExpressionBuilder.java:169)
    at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.
    resolveClassMetaData(JPQLExpressionBuilder.java:147)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Feature Pack for EJB 3.0             *
    ****************************************************************
    * PROBLEM DESCRIPTION: Java Persistence API (JPA) fails to     *
    *                      map an alias name to an entity type.    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A part of the metadata processing algorithm in OpenJPA had a
    race condition concerning the logic that maps entity aliases
    to the entity's class.  The following Exception is a potential
    indicator of this problem:
    
    <openjpa-2.0.0-SNAPSHOT-r422266:824454M fatal user error>
    org.apache.openjpa.util.MetaDataException: Could not locate
    metadata for the class using alias "MdrTestEntity". Perhap
    s you meant MdrTestEntity, which is a close match. This could
    mean that you have mis-spelled the alias, or that OpenJPA
    failed to properly load the metadata for the type whose
    alias is "MdrTestEntity". Registered alias mappings:
    "{MdrTestEntity=[class
    org.apache.openjpa.persistence.meta.MdrTestEntity]}"
    

Problem conclusion

  • The race condition that created this problem has been updated
    such that concurrent access is properly synchronized.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 6.1.0.31.  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

    PK95520

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-09-04

  • Closed date

    2009-12-14

  • Last modified date

    2010-02-01

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

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

    PM04860 PM04861

Fix information

  • Fixed component name

    WAS EJB3 FEATUR

  • Fixed component ID

    5724J0851

Applicable component levels

  • R610 PSY

       UP

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

Document Information

Modified date:
10 February 2022