IBM Support

PM30346: INVALIDSTATEEXCEPTION WHEN RUNNING OPENJPA APPLICATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

Local fix

  • N/A.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of the Java Persistence API       *
    *                  (JPA) 2.0 feature of the IBM WebSphere      *
    *                  Application Server V7 Feature Pack for      *
    *                  OSGi Applications and Java Persistence API  *
    *                  (JPA) 2.0 who attempt to merge (that is     *
    *                  EntityManager.merge) a JPA entity which     *
    *                  has been serialized and contains a compound *
    *                  primary key (that is, uses @IdClass).       *
    ****************************************************************
    * PROBLEM DESCRIPTION: InvalidStateException can occur when    *
    *                      merging a serialized JPA entity which   *
    *                      contain a compound primary key.         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Take an entity which contains a compound primary key,
    specifically the entity uses @IdClass.  When an instance of
    this entity is serialized (for example, part of a remote method
    call), if a user attempts to merge the instance (that is,
    EntityManager.merge), it could result in an
    InvalidStateException.
    

Problem conclusion

  • With this fix, code has been added to ensure that a JPA entity
    which contains a compount primary key can be properly merged
    after that entity has been serialized.
    
    The fix for this APAR is currently targeted for inclusion
    in Fix Pack 1.0.0.5 for Feature Pack for OSGi Applications and
    Java Persistence API 2.0.
    
    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

    PM30346

  • Reported component name

    JPA OSGI FEATUR

  • Reported component ID

    5724J0857

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-01-12

  • Closed date

    2011-03-23

  • Last modified date

    2011-03-23

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

    PM30105

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

Fix information

  • Fixed component name

    JPA OSGI FEATUR

  • Fixed component ID

    5724J0857

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 September 2020