Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: utl_http packages gives undefined exception

Re: utl_http packages gives undefined exception

From: Rev. WarFrost <di5p05abl3_at_hotmail.com>
Date: Fri, 06 Oct 2000 22:42:05 GMT
Message-ID: <8FC5BBD85PatGoD159tkn0krAt@209.0.215.132>

dontreply_tdykstra_at_cfol.ab.ca (Terry Dykstra) wrote in <WWoC5.12507$24.2354101_at_news0.telusplanet.net>:

[snip]
>and it gives me error:
>ORA-06510: PL/SQL: unhandled user-defined exception
>ORA-06512: at "SYS.UTL_HTTP", line 152
>ORA-06512: at line 1
>Any ideas what could be the cause?

The 'unhandled exceptions' are defined in the utl_http package, but must be explicitly handled within a package to avoid displaying the generic errors you describe.

INIT_FAILED is raised for http-callout subsystem failures; REQUEST_FAILED is raised for http call failures (e.g. bad URL, etc.)

A quick way to test which one it is from SQL*Plus:

DECLARE
   tst VARCHAR2(2000);
BEGIN

Some possibilities:

There are probably better ways to figure this out; I'm far from an expert, this has just been my experience.

HTH...

-- 
Rev. WarFrost
-------------
"The Net interprets censorship as damage and routes around it."
- John Gilmore

"And who is a serpent among us? Anyone who would strike a child."
- Kurt Vonnegut, Jr.

"We want things to be easier. How badly we want it can be
 measured by the size of Bill Gates's fortune."
- Neal Stephenson, 'In the Beginning was the Command Line'
Received on Fri Oct 06 2000 - 17:42:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US