EclipseLink-6044 QueryException:Primary keys must not contain null
Last updated on JUNE 03, 2014
Applies to:Oracle TopLink - Version 126.96.36.199.0 to 188.8.131.52 [Release Oracle11g to 12c]
Information in this document applies to any platform.
***Checked for relevance on 03-Jun-2014***
When executing a query with Eclipselink 2.3.1 (Toplink 184.108.40.206) , 2.3.2 (Toplink 12.1.1) versions
the following exception is occuring :
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 220.127.116.11).
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