Ciao, I port some seaside 3.1 application from Pharo to gemstone seaside 3.2.12 environment. I have the code: html anchor All works fine into pharo. In gemstone where i run 3 seasideFastCGI gem, when i click on the anchor sometime the object log report the error: warn Commit failure - retrying Any click on the anchor report two line: the callback action and the browser update. The relative object log is: 2)transcript '1 Time: 20:27:43 CashBinSelection:
redbull2' 12943 06/19/2017 20:27:43:985 4) transcript '1 Time: 20:27:45 CashBinSelection:
latte+menta' 12991 06/19/2017 20:27:45:173 7)transcript '1 Time: 20:27:46 CashBinSelection:
bevande3' 13037 06/19/2017 20:27:46:109 9)transcript '1 Time: 20:27:47 CashBinSelection:
bevande1' 12943 06/19/2017 20:27:47:307 11)transcript '1 Time: 20:27:48 CashBinSelection:
bevande2' 12991 06/19/2017 20:27:48:231 13)transcript '1 Time: 20:27:49 CashBinSelection:
spremuta' 13037 06/19/2017 20:27:49:087 15)transcript '1 Time: 20:27:51 CashBinSelection:
succo1' 12943 06/19/2017 20:27:51:093 17)transcript '2 Time: 20:27:52 BR VoceAttiva
succo1' 13037 06/19/2017 20:27:52:342 18)transcript '1 Time: 20:27:52 CashBinSelection:
estathebicchi... 12991 06/19/2017 20:27:52:389 At line 5 i found the commit failure error in the 13037 gem and at line 17 i have a relative ( asyncron ??) 13037 action. But the next 18 line is a single line and the browser is not right update. The ol commit failure is:
the relative -> #'WriteWrite_minusRcReadSet' is: .
It's right to have two WAComponent subclass aWA*View in
this list? Thanks for considerations, Dario _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Ciao,
i do some test about this problematic. As Esteban suggested i redefined the anchor code with: html anchor onClick: (html jQuery ajax callback: [ each isDisabledSale ifFalse: [ self setupVoceAttiva: each ] ]; onSuccess: (html jQuery ajax script: [ :s | s << (s jQuery: #'idVoceAttiva') load html: [ :h | self masterView renderVoceAttivaOn: h ]. s << (s jQuery: #'idCassaRiepilogo') load html: [ :h | self masterView renderCashCartPlusDettailOn: h ]. s << ((html jQuery: #'dockcontainerR') find: 'a.active') removeClass: 'active'. s << (s jQuery this addClass: (each isDisabledSale ifFalse: [ 'active' ] ifTrue: [ 'disabled' ])) ])); This code works fine and the browser is right update at any click on the anchors. But the object log sometime in a causal way, ( i don't understand when and because ) report the errors: warn Commit failure - retrying 13037 06/20/2017 17:03:41:028 ........................... ............................ warn Commit failure - retrying 13037 06/20/2017 17:05:13:010 ................................... ....................................... warn Commit failure - retrying 12943 06/20/2017 17:32:43:166 .................................... warn Commit failure - retrying 12991 06/20/2017 17:32:44:849 ................... ..................... warn Commit failure - retrying 12943 06/20/2017 17:40:30:160 It's a normal behavior or are wrongs status - exceptions? Thanks, Dario
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Seems normal. Seaside on GS is set up to automatically retry a request up to 10 times on commit failure errors. Looks like your commit failures are happening minutes apart. As long as the work you want gets completed for each request I wouldn't worry about it for now.
|
In reply to this post by GLASS mailing list
Ciao, i analyzed the object log. I note the error: The warn Commit failure - retrying 13037 06/20/2017 17:03:41:028 in the most cases follow this behavior: transcript '1 Time: 21:01:34 CashBinSelection:
brioches3' 13037 06/20/2017 21:01:34:428 The warn Commit failure is generated by the gem ( 13037 ) which manage the first ajax ( the callback ) but after the 2 ajax ( gem 12991) which update the browser
and create some other callback. As if the commit of the first gem 13037 is do too late. All test are do with only one web session open. Every consideration are welcome. Thanks, Dario Ciao, _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Free forum by Nabble | Edit this page |