Buggy code:
public class FieldMapping extends FieldMetaData implements FieldStrategy , ValueMapping { private static final Localizer _loc = Localizer . forPackage ( FieldMapping . class ) ; private final ValueMapping _val ; private final ValueMapping _key ; private final ValueMapping _elem ; private final FieldMappingInfo _info ; private final JDBCColumnOrder _orderCol = new JDBCColumnOrder ( ) ; private FieldStrategy _strategy = null ; private ForeignKey _fk = null ; private ColumnIO _io = null ; private Unique _unq = null ; private Index _idx = null ; private boolean _outer = false ; private int _fetchMode = Integer . MAX_VALUE ; private Unique [ ] _joinTableUniques ; private Boolean _bidirectionalJoinTableOwner = null ; private Boolean _bidirectionalJoinTableNonOwner = null ; public FieldMapping ( String name , Class type , ClassMapping owner ) { } public FieldMappingInfo getMappingInfo ( ) { } public FieldStrategy getStrategy ( ) { } public void setStrategy ( FieldStrategy strategy , Boolean adapt ) { } public Table getTable ( ) { } public ColumnIO getJoinColumnIO ( ) { } public void setJoinColumnIO ( ColumnIO io ) { } public ForeignKey getJoinForeignKey ( ) { } public void setJoinForeignKey ( ForeignKey fk ) { } public Unique getJoinUnique ( ) { } public void setJoinUnique ( Unique unq ) { } public Unique [ ] getJoinTableUniques ( ) { } public void setJoinTableUniques ( Unique [ ] unqs ) { } public Index getJoinIndex ( ) { } public void setJoinIndex ( Index idx ) { } public boolean isJoinOuter ( ) { } public void setJoinOuter ( boolean outer ) { } public Column getOrderColumn ( ) { } public void setOrderColumn ( Column order ) { } public ColumnIO getOrderColumnIO ( ) { } public void setOrderColumnIO ( ColumnIO io ) { } public void refSchemaComponents ( ) { } public void clearMapping ( ) { } public void syncMappingInfo ( ) { } public boolean isMapped ( ) { } public int getEagerFetchMode ( ) { } public void setEagerFetchMode ( int mode ) { } public MappingRepository getMappingRepository ( ) { } public ClassMapping getDefiningMapping ( ) { } public ClassMapping getDeclaringMapping ( ) { } public ValueMapping getKeyMapping ( ) { } public ValueMapping getElementMapping ( ) { } public ValueMapping getValueMapping ( ) { } public FieldMapping getMappedByMapping ( ) { } public FieldMapping [ ] getInverseMappings ( ) { } public boolean resolve ( int mode ) { } private void resolveMapping ( ) { } public void copyMappingInfo ( FieldMapping fm ) { } private void initializeMapping ( ) { _val . resolve ( MODE_MAPPING_INIT ) ; _key . resolve ( MODE_MAPPING_INIT ) ; <START_BUG> _val . resolve ( MODE_MAPPING_INIT ) ; <END_BUG> if ( ( _strategy ) != null ) _strategy . initialize ( ) ; } public void copy ( FieldMetaData fmd ) { } protected boolean validateDataStoreExtensionPrefix ( String prefix ) { } public String getAlias ( ) { } public void map ( boolean adapt ) { } public void mapJoin ( boolean adapt , boolean joinRequired ) { } public void mapPrimaryKey ( boolean adapt ) { } public void initialize ( ) { } public void insert ( OpenJPAStateManager sm , JDBCStore store , RowManager rm ) throws SQLException { } private void setPKValueFromMappedByIdField ( OpenJPAStateManager sm ) { } private Object getPKValue ( StateManagerImpl pkSm ) { } private void setPKValue ( StateManagerImpl sm , Object pkVal ) { } public void setMappedByIdValue ( Object target , Object val , String mappedByIdFieldName ) { } public void update ( OpenJPAStateManager sm , JDBCStore store , RowManager rm ) throws SQLException { } public void delete ( OpenJPAStateManager sm , JDBCStore store , RowManager rm ) throws SQLException { } public void deleteRow ( OpenJPAStateManager sm , JDBCStore store , RowManager rm ) throws SQLException { } public Row getRow ( OpenJPAStateManager sm , JDBCStore store , RowManager rm , int action ) throws SQLException { } private boolean isNullValue ( OpenJPAStateManager sm ) { } public Boolean isCustomInsert ( OpenJPAStateManager sm , JDBCStore store ) { } public Boolean isCustomUpdate ( OpenJPAStateManager sm , JDBCStore store ) { } public Boolean isCustomDelete ( OpenJPAStateManager sm , JDBCStore store ) { } public void customInsert ( OpenJPAStateManager sm , JDBCStore store ) throws SQLException { } public void customUpdate ( OpenJPAStateManager sm , JDBCStore store ) throws SQLException { } public void customDelete ( OpenJPAStateManager sm , JDBCStore store ) throws SQLException { } public void setFieldMapping ( FieldMapping owner ) { } public int supportsSelect ( Select sel , int type , OpenJPAStateManager sm , JDBCStore store , JDBCFetchConfiguration fetch ) { } public void selectEagerParallel ( SelectExecutor sel , OpenJPAStateManager sm , JDBCStore store , JDBCFetchConfiguration fetch , int eagerMode ) { } public void selectEagerJoin ( Select sel , OpenJPAStateManager sm , JDBCStore store , JDBCFetchConfiguration fetch , int eagerMode ) { } public boolean isEagerSelectToMany ( ) { } public int select ( Select sel , OpenJPAStateManager sm , JDBCStore store , JDBCFetchConfiguration fetch , int eagerMode ) { } public Joins join ( Select sel ) { } public void wherePrimaryKey ( Select sel , OpenJPAStateManager sm , JDBCStore store ) { } public void orderLocal ( Select sel , ClassMapping elem , Joins joins ) { } public void orderRelation ( Select sel , ClassMapping elem , Joins joins ) { } public Object loadEagerParallel ( OpenJPAStateManager sm , JDBCStore store , JDBCFetchConfiguration fetch , Object res ) throws SQLException { } public void loadEagerJoin ( OpenJPAStateManager sm , JDBCStore store , JDBCFetchConfiguration fetch , Result res ) throws SQLException { } public void load ( OpenJPAStateManager sm , JDBCStore store , JDBCFetchConfiguration fetch , Result res ) throws SQLException { } public void load ( OpenJPAStateManager sm , JDBCStore store , JDBCFetchConfiguration fetch ) throws SQLException { } public Object toDataStoreValue ( Object val , JDBCStore store ) { }

Fix:
_elem . resolve ( MODE_MAPPING_INIT ) ;