My Oracle Support Banner

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

Last updated on AUGUST 21, 2020

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(
employee.EMP_ID( => 1
employee.REFERENCE_ID => 001
employee.COMPANY_CDE => Oracle
employee.BUSINESS_NAME => null
employee.F_NAME => John
employee.L_NAME => Doe
employee.LAST_UPDATED => 2011-09-23 00:00:21.452
employee.VERSION => 1
employee.CITY => Toronto
employee.STATE_CDE => ONT
employee.ZIPCODE => L5J2B5
employee.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).

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.