Consultor Eletrônico



Kbase P182212: AppServer application connects and immediately disconnects with no errors
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/9/2011
Status: Unverified

SYMPTOM(s):


AppServer application connects and immediately disconnects with no errors

Only messages 8358 and 8360 in AppServer server log.

Application Server connected with connection id: <connectionid>. (8358)

Application Server disconnected. (8360)

Test procedure that creates a file does not create the file.

FACT(s) (Environment):

Test procedure that calculates a mathematical formula runs.
Procedure that creates the file contains the following code:
DEFINE VARIABLE v AS CHAR.
v = "C:\file.txt".
OUTPUT TO v.
PUT UNFORMATTED "Hello World".
OUTPUT CLOSE.
All Supported Operating Systems
Progress/OpenEdge Product Family

CAUSE:

The OUTPUT TO statement requires an output file specification either to be a constant ("OUTPUT TO "C:\file.txt"."), or if assigned to a variable to be used with the VALUE phrase ("OUTPUT TO VALUE(v).") In this case the procedure actually did run on the AppServer, but the output was sent to a file named "v" in the AppServer working directory rather than to the intended location. No error message was written to the AppServer server log because there was in fact no error.

FIX:

Use the VALUE phrase if the output file specification is assigned to a variable. For example:
DEFINE VARIABLE v AS CHAR.
v = "C:\file.txt".
OUTPUT TO VALUE(v).
PUT UNFORMATTED "Hello World".
OUTPUT CLOSE.