Home » Developer & Programmer » JDeveloper, Java & XML » Java Stored procedure http url get
icon7.gif  Java Stored procedure http url get [message #144812] Fri, 28 October 2005 08:16 Go to next message
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
Re: Java Stored procedure http url get [message #145153 is a reply to message #144812] Tue, 01 November 2005 06:35 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Can you give the exact error message?

MHE
Previous Topic: callableStatment.execute() throwing NullPointerException from JDBC
Next Topic: How to write a Date field with Java and iBatis?
Goto Forum:
  


Current Time: Fri Apr 19 10:05:07 CDT 2024