IBM Support

PI13914: JAVA.SQL.SQLEXCEPTION WHEN PERFORMING A JPA QUERY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Running WebSphere Application Server Base edition 8.0.0.5, when
    performing a JPA query, frequently receiving exception:
    
    <openjpa-2.1.2-SNAPSHOT-r422266:1384519 fatal general error>
    org.apache.openjpa.persistence.PersistenceException:
    t2.EMPMGREMPNO
    FailedObject: com.ibm.itsas.jpa.people.Person-1A4218897
    [java.lang.String]
    atorg.apache.openjpa.jdbc.sql.DBDictionary.narrow(DBDictionary
    .java:4915)
    at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException
    (DBDictionary.java:4875)
    at org.apache.openjpa.jdbc.sql.DB2Dictionary.newStoreException
    (DB2Dictionary.java:596)
    atorg.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExcept
    ions .java:136)
    atorg.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExcept
    ions.java:86)
    at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initialize
    (JDBCStoreManager.java:338)
    atcom.ibm.ws.persistence.jdbc.kernel.WsJpaJDBCStoreManager.ini
    tialize (WsJpaJDBCStoreManager.java:149)
    at org.apache.openjpa.kernel.DelegatingStoreManager.initialize
    (DelegatingStoreManager.java:112)
    at org.apache.openjpa.kernel.ROPStoreManager.initialize
    (ROPStoreManager.java:57)
    atorg.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.j
    ava:1027)
    at com.ibm.ws.persistence.kernel.WsJpaBrokerImpl.initialize
    (WsJpaBrokerImpl.java:257)
    atorg.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:98
    5)
    atorg.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:90
    7)
    atcom.ibm.ws.persistence.kernel.WsJpaBrokerImpl.find(WsJpaBrok
    erIm pl.java:199)
    ...
    Caused by:
    java.sql.SQLException: t2.aaaaa
    atorg.apache.openjpa.jdbc.sql.SelectImpl$SelectResult.findObje
    ct(SelectImpl.java:2507) Page 11 of 98
    at org.apache.openjpa.jdbc.sql.ResultSetResult.translate
    (ResultSetResult.java:497)
    atorg.apache.openjpa.jdbc.sql.AbstractResult.getString(Abstrac
    tRes ult.java:767)
    at org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy.
    getPrimaryKeyValue(StringFieldStrategy.java:217)
    atorg.apache.openjpa.jdbc.meta.ClassMapping.getObjectId(ClassM
    apping.java:188)
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: A JPA query fails with a                *
    *                      PersistenceException specifying a       *
    *                      column alias.                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The method that OpenJPA's SelectImpl caches column aliases did
    not manage certain use cases involving multiple instances of a
    specific table-column combination.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI13914

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-03-18

  • Closed date

    2014-06-16

  • Last modified date

    2014-06-16

  • 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

  • R800 PSY

       UP

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

Document Information

Modified date:
28 April 2022