[Glass] Gem go down when ex retry is manage for aBlock on: do:
Dario Trussardi
dario.trussardi at tiscali.it
Tue Jan 21 05:46:51 PST 2014
HI,
i have a code to open tcp/ip connection and send data to relative printer device.
The code work fine into Pharo but i have problem into GLASS.
The code is :
[TicketBaseTipoCentriCarico newOn: dcmModel dettagli: tfDettagli onPrinter: rfrMaster aPrinterTicket ]
on: Error do: [:ex |
self jqDialog: (DTRCassaDialogConferma openOnException: ex onModel: dcmModel)
title: 'ERRORE STAMPA'.
ex retry]
A) The block :
[TicketBaseTipoCentriCarico newOn: dcmModel dettagli: tfDettagli onPrinter: rfrMaster aPrinterTicket ]
open a tcp/ip connection and send data to the printer.
B) The on: Error do: [:ex |
is define to manage some connection problem ( for example if the tcp/ip printer is off )
If this happens the jqDialog is open to indicate at the user the problem.
Now in Pharo when i have a connection problem and the: ex retry is execute all work fine,
and the retry loop with jqDialog segnalation until the connection is ok, and the ticket is printed.
Into GLASS when i have connection problem and the: ex retry is execute the relative gem go down
and i need soon to restart the GLASS environment (All WAFastCGIAdaptor is down )
Thanks for any considerations.
Dario
P.S. Of course if the connection is ok all works fine in both the environment.
More information about the Glass
mailing list