Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » (no subject)
(no subject) [message #696774] Thu, 14 July 2011 19:36 Go to next message
Jeroen Peelaerts is currently offline Jeroen Peelaerts
Messages: 8
Registered: July 2011
Junior Member
Dear,

I have been using Eclipselink 2.3 for a while in my standalone J2SE swing application, communicating with a remote MySQL database. Lately I have been experiencing some problems with merging entities. It seems that when calling merge, Eclipselink sometimes does not commit changes made to recently detached persisted entities. Here a log dump showing the exact problem

12:01:08,078 [INFO] [JpaDao#pool-1-thread-2] - Merging Gert Eyskens
12:01:08,078 [DEBUG] [RunwalkVideoApp$RunwalkLogger#pool-1-thread-2] - SELECT 1
12:01:08,078 [DEBUG] [RunwalkVideoApp$RunwalkLogger#pool-1-thread-2] - communication_failure_attempting_begintransaction_retry
12:01:08,078 [DEBUG] [RunwalkVideoApp$RunwalkLogger#pool-1-thread-2] - disconnect
12:01:08,078 [DEBUG] [RunwalkVideoApp$RunwalkLogger#pool-1-thread-2] - connecting
12:01:08,109 [INFO] [StatusPanel#AWT-EventQueue-0] - Wijzigingen bewaren..
12:01:08,234 [DEBUG] [RunwalkVideoApp$RunwalkLogger#pool-1-thread-2] - connected_user_database_driver
12:01:08,250 [DEBUG] [RunwalkVideoApp$RunwalkLogger#pool-1-thread-2] - UPDATE phppos_people SET VERSION = ? WHERE ((person_id = ?) AND (VERSION = ?))
bind => [2, 5155, 1]
12:01:08,281 [DEBUG] [RunwalkVideoApp$RunwalkLogger#pool-1-thread-2] - UPDATE analysis SET COMMENTS = ? WHERE (id = ?)
bind => [2160 m 10 narrow , 8011]

Entity and DAO source code can be found in attachment.

When creating a person entity in my swing application, it is persisted to the database first with an empty last name and firstname. This way it can have an id generated for the hashcode and equals to be consistent. After this, it is detached (tx after persist is closed) and added to a List which is shown in the GUI using the beans binding framework.

At that time, the user can edit the entity, and when he is done, save and merge the changes using the entityManager.merge opertation.

the entityManager.merge operation starts at the first line. There a person.toString() is dumped to the log, where one can clearly see that the name and the first name of the person entity are set by the user. 80% of the time the changed first name and last name are commited to the db.

By analyzing the eclipselink logging for a while now, I found that Eclipselink sometimes seems to refresh the entity from the database before performing an UPDATE, and sometimes not.

Can anybody here tell me when Eclipselink decides to check the values of an entity with the database when using the AUTO (=DEFERRED) change tracking setting ? I feel that this can be a possible reason to this issue. that Eclipselink thinks the entity in its cache is the latest version and takes the state of the entity as it was persisted at first to make the merge (so with empty last name and first name). Does anybody know a programmatical way to invalidate the cache here and force eclipselink to make a lookup before merging (so bypassing the change tracking algorithm)?

At this moment, I do not use any weaving for compatbility reasons (beans bindings seems to have trouble with it), so changeTracking should prolly stick with DEFERRED. I have heavily optimized the logic behind the merging, and only entities that are really dirty (edited by the user) are merged to the db. So invalidating the cache should not have too much of a performance impact here.



Thanks in advance

begin 644 JpaDao.java
M<&%C:V%G92!C;VTN<G5N=V%L:RYV:61E;RYD86\N:6UP;#L-"@T*:6UP;W)T
M(&IA=F$N=71I;"Y!<G)A>4QI<W0[#0II;7!O<G0@:F%V82YU=&EL+DQI<W0[
M#0II;7!O<G0@:F%V82YU=&EL+E-E=#L-"@T*:6UP;W)T(&IA=F%X+G!E<G-I
M<W1E;F-E+D5N=&ET>4UA;F%G97([#0II;7!O<G0@:F%V87@N<&5R<VES=&5N
M8V4N16YT:71Y36%N86=E<D9A8W1O<GD[#0II;7!O<G0@:F%V87@N<&5R<VES
M=&5N8V4N16YT:71Y5')A;G-A8W1I;VX[#0II;7!O<G0@:F%V87@N<&5R<VES
M=&5N8V4N3&]C:TUO9&54>7!E.PT*:6UP;W)T(&IA=F%X+G!E<G-I<W1E;F-E
M+E!E<G-I<W1E;F-E17AC97!T:6]N.PT*:6UP;W)T(&IA=F%X+G!E<G-I<W1E
M;F-E+E%U97)Y.PT*#0II;7!O<G0@;W)G+F%P86-H92YL;V<T:BY,979E;#L-
M"FEM<&]R="!O<F<N87!A8VAE+FQO9S1J+DQO9V=E<CL-"@T*:6UP;W)T(&-O
M;2YG;V]G;&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ER97-U;'0@)CT@9V5T260H*2`A/2!N=6QL
M(#\@9V5T260H*2YE<75A;',H;W1H97(N9V5T260H*2D@.B!R97-U;'0[#0H)
M"7T-"@D)<F5T=7)N(')E<W5L=#L-"@E]#0H-"@D-"@E`3W9E<G)I9&4-"@EP
M=6)L:6,@4W1R:6YG('1O4W1R:6YG*"D@>PT*"0ER971U<FX@9V5T1FER<W1N
M86UE*"D@*R`B("(@*R!G971.86UE*"D[#0H)?0T*#0H)<'5B;&EC(&EN="!C
M;VUP87)E5&\H4&5R<V]N(&\I('L-"@D)<F5T=7)N('1H:7,N97%U86QS*&\I
M(#\@,"`Z(&=E=$ED*"D@(3T@;G5L;"`_(&=E=$ED*"DN8V]M<&%R951O*&\N
M9V5T260H*2D@.B`Q.PT*"7T-"@D-"@DO*BH-"@D@*B!%;G5M(&9O<B!D96YO
M=&EN9R!T:&4@9V5N9&5R(&]F('1H92!C;&EE;G0-"@D@*B`-"@D@*B!705).
M24Y'.B!T:&ES(&9I96QD(&ES(&UA<'!E9"!T;R!T:&4@9&%T86)A<V4@8GD@
M;W)D:6YA;"X-"@D@*B!#:&%N9VEN9R!T:&4@;W)D97(@;V8@9&5C;&%R871I
M;VX@;V8@=&AE(&-O;G-T86YT<R!W:6QL(&-H86YG92!T:&4@<&%R<V5D('9A
M;'5E<R!I;B!T:&4@87!P;&EC871I;VXA#0H)("HO#0H)<'5B;&EC(&5N=6T@
M1V5N9&5R('L-"@D)1D5-04Q%+"!-04Q%.PT*"7T-"@D-"@EP=6)L:6,@96YU
M;2!097)S;VY4>7!E('L-"@D)0U535$]-15(L($5-4$Q/645%+"!355!03$E%
-4CL-"@E]#0H-"GT-"@``
`
end
(no subject) [message #698026 is a reply to message #696774] Mon, 18 July 2011 15:40 Go to previous message
Gordon Yorke is currently offline Gordon Yorke
Messages: 77
Registered: July 2009
Member
Can you verify that the Entity loaded by EclipseLink does not have the name set? Can you do a em.find().toString() and then the merge? Also try removing the lock code. If the Entity has changes the version value will be updated automatically.
Previous Topic:(no subject)
Next Topic:EclipseLink 2.3 PL/SQL enhancements available for DB2?
Goto Forum:
  


Current Time: Wed Oct 22 00:23:06 GMT 2014

Powered by FUDForum. Page generated in 0.04653 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software