Bug 449119 - OneToOneMapping insertableField size zero but has a map entry
Summary: OneToOneMapping insertableField size zero but has a map entry
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-28 19:49 EDT by dirvan vargas CLA
Modified: 2022-06-09 10:08 EDT (History)
1 user (show)

See Also:


Attachments
map size zero and has map entry (310.17 KB, image/png)
2014-10-28 19:49 EDT, dirvan vargas CLA
no flags Details
Many fields per tenant (310.17 KB, image/png)
2014-10-28 19:50 EDT, dirvan vargas CLA
no flags Details
Map size zero and has map entry (294.62 KB, image/png)
2014-10-28 19:53 EDT, dirvan vargas CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dirvan vargas CLA 2014-10-28 19:49:22 EDT
Created attachment 248238 [details]
map size zero and has map entry

In OneToOneMapping on the Map insertableField 
many objects are added in map mantening one instance per tenant.
But after some time using the system the HashSet insertableField in OneToOneMapping presents its size zero and the internal table
contains a value look image two, and when the system will run insertableFields.contains method the field is not localized and thus is not added in the query causing the following error :

Internal Exception: org.postgresql.util.PSQLException: ERROR: null value 
in column "id_usuario" violates not-null constraint
Detalhe: Failing row contains (null, 0, 1).

INSERT INTO "99200056".cfgusuario (st_avisosonorochat, 
st_disponibilidadechat) VALUES (?, ?)
bind => [1, 0]

look images for more understanding.
Comment 1 dirvan vargas CLA 2014-10-28 19:50:34 EDT
Created attachment 248239 [details]
Many fields per tenant
Comment 2 dirvan vargas CLA 2014-10-28 19:53:07 EDT
Created attachment 248240 [details]
Map size zero and has map entry

map size zero and has map entry is a ire bug or syncronized access bug
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:06:18 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:08:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink