IBM Support

PM56786: ORG.APACHE.OPENJPA.PERSISTENCE.ARGUMENTEXCEPTION YOU HAVE SUPPLIED COLUMNS...BUT... MAPPING CANT HAVE COLUMNS...

Fixes are available

7.0.0.23: WebSphere Application Server V7.0 Fix Pack 23
8.0.0.4: WebSphere Application Server V8.0 Fix Pack 4
7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
8.0.0.5: WebSphere Application Server V8.0 Fix Pack 5
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
8.0.0.6: WebSphere Application Server V8.0 Fix Pack 6
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
8.0.0.7: WebSphere Application Server V8.0 Fix Pack 7
8.0.0.8: WebSphere Application Server V8.0 Fix Pack 8
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
8.0.0.9: WebSphere Application Server V8.0 Fix Pack 9
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
8.0.0.10: WebSphere Application Server V8.0 Fix Pack 10
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
8.0.0.11: WebSphere Application Server V8.0 Fix Pack 11
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
8.0.0.12: WebSphere Application Server V8.0 Fix Pack 12
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
8.0.0.13: WebSphere Application Server V8.0 Fix Pack 13
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
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

  • In WebSphere Application Server version 7 with Java
    Persistence API (JPA)
    
    [12/29/11 0:02:30:841 EST] 0000001b BusinessExcep E   CNTR0020E:
    EJB threw an unexpected (non-declared) exception during
    invocation of method "getUserDetails" on bean
    "BeanId(GluiEar#GluiServices.jar#AuthorizationServiceBean,
    null)". Exception data: javax.persistence.PersistenceException:
    Provider error. Provider:
    com.ibm.websphere.persistence.PersistenceProviderImpl
    at
    javax.persistence.Persistence.createFactory(Persistence.java:176
    )
    at
    javax.persistence.Persistence.createEntityManagerFactory(Persist
    ence.java:112)
    at
    javax.persistence.Persistence.createEntityManagerFactory(Persist
    ence.java:66)
    ...
    Caused by: <openjpa-1.2.3-SNAPSHOT-r422266:1152904 fatal user
    error> org.apache.openjpa.persistence.ArgumentException: Errors
    encountered while resolving metadata.  See nested exceptions for
    details.
    at
    org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepos
    itory.java:658)
    at
    org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(M
    etaDataRepository.java:393)
    at
    org.apache.openjpa.meta.MetaDataRepository.getMetaDataLocking(Me
    taDataRepository.java:366)
    at
    org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataR
    epository.java:360)
    at
    org.apache.openjpa.meta.MetaDataRepository.resolveAll(MetaDataRe
    pository.java:1926)
    at
    org.apache.openjpa.meta.MetaDataRepository.preload(MetaDataRepos
    itory.java:341)
    at
    org.apache.openjpa.persistence.PersistenceProviderImpl.preloadMe
    taDataRepository(PersistenceProviderImpl.java:210)
    at
    org.apache.openjpa.persistence.PersistenceProviderImpl.createEnt
    ityManagerFactory(PersistenceProviderImpl.java:88)
    at
    com.ibm.websphere.persistence.PersistenceProviderImpl.createEnti
    tyManagerFactory(PersistenceProviderImpl.java:71)
    at
    com.ibm.websphere.persistence.PersistenceProviderImpl.createEnti
    tyManagerFactory(PersistenceProviderImpl.java:41)
    at
    org.apache.openjpa.persistence.PersistenceProviderImpl.createEnt
    ityManagerFactory(PersistenceProviderImpl.java:117)
    at
    org.apache.openjpa.persistence.PersistenceProviderImpl.createEnt
    ityManagerFactory(PersistenceProviderImpl.java:59)
    at
    javax.persistence.Persistence.createFactory(Persistence.java:172
    )
    ... 33 more
    Caused by: <openjpa-1.2.3-SNAPSHOT-r422266:1152904 fatal user
    error> org.apache.openjpa.persistence.ArgumentException: You
    have supplied columns for
    "com.ibm.finance.glui.db.entity.journal.JournalHeader.journalAcc
    ountLinesList", 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.RelationToManyTableFieldStra
    tegy.map(RelationToManyTableFieldStrategy.java:96)
    at
    org.apache.openjpa.jdbc.meta.strats.RelationCollectionTableField
    Strategy.map(RelationCollectionTableFieldStrategy.java:94)
    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.resolveMapping(ClassMa
    pping.java:855)
    at
    org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java
    :1651)
    at
    org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDat
    aRepository.java:812)
    at
    org.apache.openjpa.meta.MetaDataRepository.resolveMapping(MetaDa
    taRepository.java:772)
    at
    org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepos
    itory.java:650)
    ... 45 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: XML overriding column names for 1xM     *
    *                      attributes causes exception.            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Entity with 1xm relationship define in orm.xml causes the
    following exception during emf.createEntityManager.
    + //Removing the XML from the orm.xml file, and using this fixes
    the issue:
    + //@OneToMany(fetch=FetchType.LAZY,cascade=CascadeType.ALL)
    + private List<XMLManyToOneEntity> xmlManyToOneList = new
    ArrayList<XMLManyToOneEntity>(0);
    And this mapping in the orm.xml:
    + <one-to-many name="xmlManyToOneList" fetch="LAZY">
    + <join-column name="IDENTITY" />
    + <cascade>
    + <cascade-all/>
    + </cascade>
    <openjpa-2.2.0-SNAPSHOT-r422266:1235624 fatal user error>
    org.apache.openjpa.persistence.ArgumentException: You have
    supplied columns for
    "org.apache.openjpa.persistence.arrays.model.XMLOneToManyEntity.
    xmlManyToOneList", but this mapping cannot have columns in this
    context.
    at
    org.apache.openjpa.jdbc.meta.MappingInfo.assertNoSchemaComponent
    s(MappingInfo.java:382)
    at
    org.apache.openjpa.jdbc.meta.strats.RelationToManyTableFieldStra
    tegy.map(RelationToManyTableFieldStrategy.java:97)
    at
    org.apache.openjpa.jdbc.meta.strats.RelationCollectionTableField
    Strategy.map(RelationCollectionTableFieldStrategy.java:95)
    at
    org.apache.openjpa.jdbc.meta.FieldMapping.setStrategy(FieldMappi
    ng.java:146)
    at
    org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStr
    ategy(RuntimeStrategyInstaller.java:82)
    at
    org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(FieldMa
    pping.java:496)
    at
    org.apache.openjpa.jdbc.meta.FieldMapping.resolve(FieldMapping.j
    ava:461)
    at
    org.apache.openjpa.jdbc.meta.ClassMapping.resolveMapping(ClassMa
    pping.java:865)
    at
    org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java
    :1802)
    at
    org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDat
    aRepository.java:821)
    at
    org.apache.openjpa.meta.MetaDataRepository.resolveMapping(MetaDa
    taRepository.java:776)
    at
    org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepos
    itory.java:656)
    at
    org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(M
    etaDataRepository.java:410)
    at
    org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataR
    epository.java:383)
    at
    org.apache.openjpa.jdbc.meta.MappingRepository.getMapping(Mappin
    gRepository.java:352)
    at
    org.apache.openjpa.jdbc.meta.MappingTool.getMapping(MappingTool.
    java:682)
    at
    org.apache.openjpa.jdbc.meta.MappingTool.buildSchema(MappingTool
    .java:754)
    at
    org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:65
    2)
    at
    org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMapp
    ings(JDBCBrokerFactory.java:154)
    

Problem conclusion

  • Updated the XML Persistence Mapping parser so to gate on
    isSerialized rather than on isElementCollection.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 7.0.0.23 and 8.0.0.4.  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

    PM56786

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-01-26

  • Closed date

    2012-05-07

  • Last modified date

    2012-05-07

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

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

    PM59274

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R700 PSY

       UP

  • R800 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 7.0

Reference #: PM56786

Modified date: 07 May 2012