IBM Support

PI28693: OPENJPA ERROR: ORG.APACHE.OPENJPA.PERSISTENCE.ARGUMENTEXCEPTION:CANNOT MANIPULATE IDENTITY OF TYPE <TYPE>

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Web Applicatons that are using openJPA in WAS v8.5.5.3 can break
    with "org.apache.openjpa.persistence.ArgumentException: Cannot
    manipulate identity of type <type>". Such applications may work
    with WAS v8.5.5.2, but if the environment is updated to WAS
    v8.5.5.3 such error may occur. The exception stack-trace is:
    
    [10/13/14 6:03:31:275 EDT] 0000006f ServletWrappe E
    com.ibm.ws.webcontainer.servlet.ServletWrapper service
    SRVE0068E: An exception was thrown by one of the service methods
    of the servlet
    [javax.ws.rs.core.Application] in application
    [TESTEJBEAR].
    Exception created : [<openjpa-2.2.3-SNAPSHOT-r422266:1595313
    nonfatal user error>
    org.apache.openjpa.persistence.ArgumentException: Cannot
    manipulate identity of type
    "my.app.type.Type": it's identity type is unknown.
    at
    org.apache.openjpa.kernel.BrokerImpl.persistInternal(BrokerImpl.
    java:265
    9)
    at
    org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:258
    6)
    at
    org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:256
    9)
    at
    org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:255
    9)
    ....
    

Local fix

  • The cascade-persist option in the persistence unit default has
    something to do with this issue.  If the option will be
    removed all works fine.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: An OpenJPA operation fails with an      *
    *                      unknown identity type error.            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    An operation, such as EntityManager.persist(), fails with an
    ArgumentException stating that the identity type is unknown.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI28693

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-10-31

  • Closed date

    2015-01-07

  • Last modified date

    2015-01-07

  • 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

  • R850 PSY

       UP

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

Document Information

Modified date:
28 April 2022