EclipseLink-6044 QueryException:Primary keys must not contain null (Doc ID 1483384.1)

Last updated on JUNE 03, 2014

Applies to:

Oracle TopLink - Version 11.1.1.6.0 to 12.1.1.0 [Release Oracle11g to 12c]
Information in this document applies to any platform.
***Checked for relevance on 03-Jun-2014***

Symptoms

When executing a query with  Eclipselink 2.3.1 (Toplink 11.1.1.6) , 2.3.2 (Toplink 12.1.1) versions
the following  exception is occuring :

Exception [EclipseLink-6044] (Eclipse Persistence Services -
2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.QueryException
Exception Description: The primary key read from the row [DatabaseRecord(
VS_BORROWER.SEQ_NUM => 1
VS_BORROWER.REFERENCE_ID => 5027
VS_BORROWER.COMPANY_CDE => SomeCorp
VS_BORROWER.BUSINESS_NAME => null
VS_BORROWER.FIRST_NAME => VBTEST
VS_BORROWER.LAST_NAME => VBTEST
VS_BORROWER.LAST_UPDATED => 2011-09-23 14:52:21.458
VS_BORROWER.VERSION => 1
VS_BORROWER.CITY => SomeCity
VS_BORROWER.STATE_CDE => PA
VS_BORROWER.ZIPCODE => 15108
VS_BORROWER.VERSION => 1)] during the execution of the query was detected to
be null.  Primary keys must not contain null.

 Note that descriptor mappings comply to the rules for primary keys (unique and each field is not null).
The related sequence of code is :

 

This exception does not occur against  Eclipselink 2.0.2 ( Toplink 11.1.1.3).

 

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