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: ORacle 8.1.5 Sockets and Java

Re: ORacle 8.1.5 Sockets and Java

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Mon, 29 Nov 1999 16:57:06 -0500
Message-ID: <lkt54ssvqabstbtv5ilt905r1ensi4m7qf@4ax.com>


A copy of this was sent to duncanjc_at_my-deja.com (if that email address didn't require changing) On Mon, 29 Nov 1999 20:21:29 GMT, you wrote:

>I am trying to create a new java.net.Socket object from a Java stored
>procedure using Oracle 8.1.5 on Solaris. The Socket object is created
>correctly when the code is invoked external to the database. After load
>ing publishing the java code, a null pointer exception is generated by
>the following code:
>
> java.net.Socket sock = new java.net.Socket("my.server.com", 80);
>
>The same behavior is exhibited by the java.net.URL.openConnection()
>method, as well.
>
>I'm thinking that this is probably a security issue, but can't find any
>reference to accessing external network resources in the documentation
>that is available on OTN.
>
>Any help would be appreciated.
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.

grant JAVASYSPRIV to <user>

will do it.

--
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'... Current article is "Part I of V, Autonomous Transactions" updated June 21'st  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Mon Nov 29 1999 - 15:57:06 CST

Original text of this message

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