Home » Developer & Programmer » JDeveloper, Java & XML » exception - security manager - sending email using java stored procedure
exception - security manager - sending email using java stored procedure [message #90936] Wed, 12 December 2001 18:19 Go to next message
kumar tsn
Messages: 1
Registered: December 2001
Junior Member
Hi All,
Could you plz help me by solving this.????
I have written a java stored procedure to send email using smtp. While executing, is giving the following exception.
java.lang.SecurityException
at oracle.aurora.rdbms.SecurityManagerImpl.checkRole(SecurityManagerImpl.java)
at
oracle.aurora.rdbms.SecurityManagerImpl.checkConnect(SecurityManagerImpl.java)
at java.net.InetAddress.getAllByName0(InetAddress.java)
at java.net.InetAddress.getByName(InetAddress.java)
at java.net.Socket.<init>(Socket.java)
at sendMail.email(sendMail:36)

could you plz help me to solve this...most urgent...
thanks

----------------------------------------------------------------------
Re: exception - security manager - sending email using java stored procedure [message #90995 is a reply to message #90936] Fri, 01 February 2002 03:37 Go to previous messageGo to next message
Euan Dean
Messages: 1
Registered: February 2002
Junior Member
-- These grants must be run for the Schema owner as sys changing schema to the name of the schema in which your java stored procedure will run

begin
sys.dbms_java.grant_permission('Schema','SYS:java.net.SocketPermission','smtp.jcom.net', 'resolve');
grant javasyspriv to 'Schema';
end;
Re: exception - security manager - sending email using java stored procedure [message #91045 is a reply to message #90936] Tue, 05 March 2002 09:00 Go to previous messageGo to next message
Ganesh
Messages: 31
Registered: November 2000
Member
Could you please send me the stored proc code that you wrote to send the email?

Thanks
Re: exception - security manager - sending email using java stored procedure [message #91749 is a reply to message #90995] Fri, 31 January 2003 21:54 Go to previous messageGo to next message
vinston
Messages: 1
Registered: January 2003
Junior Member
i want to more about java network(in lan & wan)
Re: exception - security manager - sending email using java stored procedure [message #92578 is a reply to message #90936] Wed, 22 September 2004 04:52 Go to previous message
khawar
Messages: 4
Registered: September 2004
Junior Member
yaar it is working
Previous Topic: i want solution
Next Topic: Unsubscribe
Goto Forum:
  


Current Time: Mon Nov 25 20:21:57 CST 2024