[TOPLINK-7051] ValidationException: Missing Attribute For Descriptor

(Doc ID 1075905.1)

Last updated on OCTOBER 11, 2010

In this Document
  Symptoms
  Cause
  Solution


Symptoms

The TopLink application, under peak loads, encounters:

Exception [TOPLINK-7051] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.ValidationException
Exception Description: Missing attribute [mySizeType] for descriptor
[RelationalDescriptor(com.test.Object --> [DatabaseTable(OBJ_DETAIL)])], called from [ObjectBuilder(RelationalDescriptor(com.test.Object --> [DatabaseTable(OBJ_DETAIL)]))]

The application works fine at normal user loads.

You have configured batch reading on an attribute (say, 'mySizeType') with one-to-one mapping but you have not used indirection.
The batch read statement is as follows: 
query.addBatchReadAttribute(src.getExpBuilder().get("myList").get("mySizeType"));

The message will have the form:
"Missing attribute [{1}] for descriptor [{0}], called from [{2}]"


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms