IBM Support

PM33811: AN ENTITY THAT IS TRYING TO PERSIST THAT HAS AN ARRAYLIST<THROWABLE>.WHEN TRYING TO ACCESS DBGETTING ANEXCEPTION

Fixes are available

PM33811; 7.0.0.15: an entity that is trying to persist that has an arraylist
7.0.0.19: WebSphere Application Server V7.0 Fix Pack 19
7.0.0.21: WebSphere Application Server V7.0 Fix Pack 21
7.0.0.23: WebSphere Application Server V7.0 Fix Pack 23
7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
7.0.0.31: WebSphere Application Server V7.0 Fix Pack 31
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.33: WebSphere Application Server V7.0 Fix Pack 33
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
7.0.0.19: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Caused by: org.apache.openjpa.persistence.ArgumentException: You
    have supplied columns for
    "com.xxxxx.xxx.xxx.yyyy._zzzzzzz<element:class
    java.lang.Throwable>", but this mapping cannot have columns in
    this context.
    at
    org.apache.openjpa.jdbc.meta.MappingInfo.assertNoSchemaComponent
    s(Mappin
    gInfo.java:327)
    at
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V7.0.0 who use XML overrides in a JPA*
    *                  mapping file (for example, orm.xml) to      *
    *                  override a JPA entity field defined as      *
    *                  ArrayList.                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: XML overriding column names for         *
    *                      ArrayList attributes causes exception.  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Take a JPA entity class similar to the following:
    
    
    public class MyEntity implements Serializable {
       protected String _id;
       protected ArrayList<String> myStrings =
                       new ArrayList<String>();
    .......
    
    and a corresponding XML mapping in an orm.xml:
    
    
       <entity class="somepackage.MyEntity" access="FIELD">
    <table name="MY_TABLE"/>
    <attributes>
    <id name="_id">
    <column name="MYENTITY_ID" nullable="false" />
    </id>
              <basic name="myStrings">
                <column name="MY_STRINGS"/>
                <lob/>
             </basic>
    </attributes>
    </entity>
    
    
    With this configuration, the following exception can occur:
    
    org.apache.openjpa.persistence.ArgumentException: You have
    supplied columns for
    "somepackage.MyEntity.myStrings<element:class
    java.lang.String>", but this mapping cannot have columns in
    this context.
    at
    org.apache.openjpa.jdbc.meta.MappingInfo.assertNoSchemaComponent
    s(MappingInfo.java:327)
    at
    org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy.map(Han
    dlerFieldStrategy.java:77)
    at
    org.apache.openjpa.jdbc.meta.FieldMapping.setStrategy(FieldMappi
    ng.java:121)
    at
    org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStr
    ategy(RuntimeStrategyInstaller.java:80)
    at
    org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(FieldMa
    pping.java:454)
    at
    org.apache.openjpa.jdbc.meta.FieldMapping.resolve(FieldMapping.j
    ava:419)
    at
    org.apache.openjpa.jdbc.meta.ClassMapping.resolveNonRelationMapp
    ings(ClassMapping.java:881)
    at
    org.apache.openjpa.jdbc.meta.MappingRepository.prepareMapping(Ma
    ppingRepository.java:418)
    ..............
    
    
    This is caused due to a bug in OpenJPA code whereby the XML
    override of the ArrayList attribute is not properly mapped.
    

Problem conclusion

  • With this fix, code has been added to ensure an XML override
    of an entity's ArrayList field is properly mapped.
    
    The fix for this APAR is currently targeted for
    inclusion in Service Level (Fix Pack) 7.0.0.19 of
    WebSphere Application Server version 7.0.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

    PM33811

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-02-28

  • Closed date

    2011-03-14

  • Last modified date

    2011-03-21

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

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

    PM34463 PM35285

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R700 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 7.0

Reference #: PM33811

Modified date: 21 March 2011