[Glass] jQuery session update

Paul DeBruicker via Glass glass at lists.gemtalksystems.com
Tue Jun 20 12:15:19 PDT 2017


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.  




GLASS mailing list wrote
> 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
>>
>> Ciao,
>>
>> I port some seaside 3.1 application from Pharo to gemstone seaside 
>> 3.2.12 environment.
>>
>> I have the code:
>>
>>  html anchor
>>         onClick:
>>             (html jQuery ajax
>>                 callback: [
>>                   each isDisabledSale
>>                     ifFalse: [ self setupVoceAttiva: each ] ]);
>>         onClick:
>>             (html jQuery ajax
>>                 script: [ :s |
>>                   s << (s jQuery: #'idVoceAttiva') load
>>                     html: [ :h | self masterView renderVoceAttivaOn: h 
>> ] ]);
>>         onClick:
>>             (html jQuery this
>>                 addClass:
>>                   (each isDisabledSale
>>                     ifFalse: [ 'active' ]
>>                     ifTrue: [ 'disabled' ]));
>>
>>         with: [ self render6Item: each on: html ].
>>
>> 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:
>>
>> 0)transcript  '1  Time: 20:27:43 CashBinSelection: redbull1'         
>> 13037  06/19/2017 20:27:43:112
>> 1)transcript  '2 Time: 20:27:43 BR VoceAttiva redbull1'              
>> 13037  06/19/2017 20:27:43:228
>>
>> 2)transcript  '1  Time: 20:27:43 CashBinSelection: redbull2'         
>> 12943  06/19/2017 20:27:43:985
>> 3)transcript  '2 Time: 20:27:44 BR VoceAttiva redbull2'              
>> 12943  06/19/2017 20:27:44:087
>>
>> 4) transcript  '1  Time: 20:27:45 CashBinSelection: latte+menta'      
>> 12991  06/19/2017 20:27:45:173
>> 5) warn        Commit failure - retrying                              
>> 13037  06/19/2017 20:27:45:179
>> 6)transcript  '2 Time: 20:27:45 BR VoceAttiva latte+menta'           
>> 12991  06/19/2017 20:27:45:339
>>
>> 7)transcript  '1  Time: 20:27:46 CashBinSelection: bevande3'         
>> 13037  06/19/2017 20:27:46:109
>> 8)transcript  '2 Time: 20:27:46 BR VoceAttiva bevande3'              
>> 13037  06/19/2017 20:27:46:213
>>
>> 9)transcript  '1  Time: 20:27:47 CashBinSelection: bevande1'         
>> 12943  06/19/2017 20:27:47:307
>> 10)transcript  '2 Time: 20:27:47 BR VoceAttiva bevande1'              
>> 12943  06/19/2017 20:27:47:427
>>
>> 11)transcript  '1  Time: 20:27:48 CashBinSelection: bevande2'         
>> 12991  06/19/2017 20:27:48:231
>> 12)transcript  '2 Time: 20:27:48 BR VoceAttiva bevande2'              
>> 12991  06/19/2017 20:27:48:340
>>
>> 13)transcript  '1  Time: 20:27:49 CashBinSelection: spremuta'         
>> 13037  06/19/2017 20:27:49:087
>> 14transcript  '2 Time: 20:27:49 BR VoceAttiva spremuta'              
>> 13037  06/19/2017 20:27:49:199
>>
>> 15)transcript  '1  Time: 20:27:51 CashBinSelection: succo1'           
>> 12943  06/19/2017 20:27:51:093
>> 16)transcript  '2 Time: 20:27:51 BR VoceAttiva succo1'                
>> 12943  06/19/2017 20:27:51:209
>>
>> 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:
>>
>>         .             -> 3 Commit failure -
>>         retrying(13037)->aSymbolDictionary
>>         (class)@      -> WAObjectLogEntry
>>         (oop)@        -> 345077249
>>         (committed)@  -> true
>>         continuation@ -> nil
>>         label@        -> 'Commit failure - retrying'
>>         object@       -> aSymbolDictionary( #'RcReadSet'->anArray(
>>         aRcCollisionBucket( aWARcLastAccessEntry), aRcCollisionBucket(
>>         aWACallbackProcessingActionContinua...
>>         pid@          -> 13037
>>         priority@     -> 3
>>         request@      ->
>>        
>> '/management?_s=0KodAEH078F0HqKr&_k=6PcQFw8uQOm_plZk&2773&_=1497895158422'
>>         resumed@      -> nil
>>         resumption@   -> nil
>>         stamp@        -> 2017-06-19T20:27:45.1792719364166+02:00
>>         tag@          -> nil
>>
>> the relative       -> #'WriteWrite_minusRcReadSet'
>>
>> is: .
>>
>>         -> anArray( aWAValueHolder contents:
>>         aWADTRCashBaseCartPlusView, aWAValueHolder contents:
>>         aWADTRCashBaseCassaComponent, aWATimingToolFilter, aW...
>>         ..           -> #'WriteWrite_minusRcReadSet'->anArray(
>>         aWAValueHolder contents: aWADTRCashBaseCartPlusView,
>>         aWAValueHolder contents: aWADTRCashBaseCassaComp...
>>         (class)@     -> Array
>>         (oop)@       -> 345074177
>>         (committed)@ -> true
>>         (size)@      -> 11
>>         1@           -> aWAValueHolder contents:
>>         aWADTRCashBaseCartPlusView
>>         2@           -> aWAValueHolder contents:
>>         aWADTRCashBaseCassaComponent
>>         3@           -> aWATimingToolFilter
>>         4@           -> aWAValueHolder contents: aWAToolDecoration
>>         5@           -> aWAValueHolder contents: aDTRLoginWebGstOrdOnLine
>>         6@           -> aWAValueHolder contents: false
>>         7@           -> aWAValueHolder contents: aWATimingToolFilter
>>         8@           -> aWAValueHolder contents: aDTRWASession
>>         9@           -> aWAValueHolder contents: aWADeprecatedToolFilter
>>         10@          -> aWACallbackProcessingActionContinuation
>>         11@          -> aWAValueHolder contents:
>>         aWADTRCashBinSelectionWidgetView
>>
>>     It's right to have two WAComponent subclass  aWA*View   in this list?
>>
>>     Thanks for considerations,
>>
>>     Dario
>>
>>
> 
> 
> _______________________________________________
> Glass mailing list

> Glass at .gemtalksystems

> http://lists.gemtalksystems.com/mailman/listinfo/glass





--
View this message in context: http://forum.world.st/jQuery-session-update-tp4951932p4952022.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list