Java Stored procedure http url get [message #144812] |
Fri, 28 October 2005 08:16 |
heemanshu
Messages: 1 Registered: October 2005
|
Junior Member |
|
|
Hi,
I have a java stored procedure wherein I have attempted to make a connection to an HTTP URL.
I am using following code,
URL url = new URL("http://www.yahoo.com");
and I am opening this connection to get the default html page into oracle.
when I run this code on my local JDK it is running fine,
but when I store this as a JSP in oracle it compiles and gets stored successfully but gives me runtime error
Exception www.yahoo.com
I have granted following privileges to the schema as well
java.net.SocketPermission
java.net.RuntimePermission
java.net.NetPermission
other codes to concat strings, and all are working absoultely fine...
I am using ORACLE 8.1.7 which is shipped with JDK 1.3.1 and JRE 1.1.8
Also these have the libraries reqd
Can any one suggest where am I goin wrong..
THANKS in Advance
Heemanshu
|
|
|
|