Consultor Eletrônico



Kbase P14479: Unable to run web-object error occurs but correct output is shown in V3.1D
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/29/2008
Status: Verified

SYMPTOM(s):

Unable to run web-object "object-name"

Program name has no extension and contains relative path

Web objects developed in an old WebSpeed version, thus it includes src/web/methods/cgidefs.i

Receive unable to run web object in the browser

The output shows the right information

Running status.p in Webspeed works but gives erroneous error.

Running status.p via URL: http://localhost/scripts/cgiip.exe/WService=wsbroker1/src/web/examples/status.p

Unable to run Web object 'src/web/examples/status.p'

FACT(s) (Environment):

WebSpeed 3.1D
All Supported Operating Systems

CAUSE:

Bug# OE00087398

CAUSE:

"destroy" internal procedure does not get created in objects with src/web/methods/cgidefs.i

FIX:

Upgrade to OpenEdge 10.0A

Possible workarounds:
- Set STATE_AWARE_ENABLED environment variable to NO under WebSpeed broker environment variables list

- Ensure "destroy" procedure is present at least once in the object by doing one of the following:

1. include "destroy" internal procedure in each object, the procedure can be empty. For example,

PROCEDURE destroy:
/* empty procedure */
END.

OR

2. include src/web2/wrap-cgi.i instead of cgidefs.i

OR

3.

a. Create folder structure as "src/web/method" in the WebSpeed working directory so the method folder would be inside the web folder and the web folder would be inside the src folder.
b. Copy the cgidefs.i into the method folder you created above.
c. Edit the cgidefs.i and add the the following at the end of the file:
/* workaround for the bug 20030310-022 */
{src/web/method/admweb.i}
d. save the file.