Page 1 of 1

External procedure problem

Posted: Thu Sep 12, 2019 9:37 am
by aa73
Hello,

I have a problem with a program that uses UNIVERSAL to do a web service.

In my program, I use an external procedure.
When I run my program in my browser I have the following error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.




When I debug my program in my green screen, I have no error.

If I copy the external procedure in my program, I have no error in my browser.


Does this mean that we can not use a procedure in a program that makes the web service?

Thank you

Regards

Re: External procedure problem

Posted: Thu Sep 12, 2019 10:15 am
by Scott Klement
All this means is that some sort of error occurred. We don't know enough about the problem to tell you anything more.

I suggest looking in the latest error_log file when the error occurred. This is found in the IFS under /www/YOUR-INSTANCE/logs

It may tell you to look at the job log, and if so, will provide the job number. In that case, look at the job log and see if you can tell what is causing the error.

Re: External procedure problem

Posted: Fri Sep 13, 2019 4:35 am
by aa73
Hello,

I just found the log file (see attachment).

I do not understand why I have an authorization problem.



Thank you

cordially

Re: External procedure problem

Posted: Fri Sep 13, 2019 9:00 am
by Scott Klement
The error I see in your log is this one:
Impossible d'adresser objet XURL_ type et sous-type X'0203' droit X'0000'

In English that would be:
Cannot resolve to object XURL_. Type and Subtype X'0203' Authority X'0000'.

This is not related to authority. It is trying to call a service program named XURL_ but it cannot find it in your library list.

Re: External procedure problem

Posted: Mon Sep 16, 2019 3:17 am
by aa73
Hello,

"XURL_" is an "/INCLUDE" in my source file.

I do not have an error while compiling the program.

The source of "XURL_" is in the library list (I make a addlible before).

I have an error while running the program with firefox.

When I run the program with a green screen, I have no error.



I tried to copy all the instructions of "/INCLUDE" in my program, and there I have no error.


But I want to keep "XURL_" out of the program.

This will prevent me from maintaining two programs.



Thank you

Regards