Kbase P101933: 4GL-JMS: application hangs when Adapter for SonicMQ is shut down
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  09/03/2005 |
|
Status: Unverified
SYMPTOM(s):
4GL-JMS application hangs when adapter is shut down
Application makes a call to setNoErrorDisplay(TRUE) which turns off the display of exceptions via alert-boxes
Application has reconnect logic checking for ON STOP and ON ERROR conditions
Calling setNoErrorDisplay(FALSE) result in the following error:
Adapter protocol error: Connection failure for host <host> port <port> transport TCP. (9407)
CAUSE:
The error raised a QUIT condition. The combination of setErrorDisplay(TRUE) and the fact that the reconnect logic only trapped for ERROR and STOP conditions resulted in the apparent application hang.
FIX:
Trap for QUIT conditions as well. For example:
DO ON ERROR UNDO, RETRY
ON STOP UNDO, RETRY
ON QUIT UNDO, RETRY:
<4GL-JMS API call(s)>
END.