Property permission
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, January 31, 2003 08:39 AM

Hi! I'm getting the following exception when trying to run my applet with corba : access denied (java.util.PropertyPermission * read,write) I'm trying to solve it with the following line: java.util.PropertyPermission propertyPermission = new java.util.PropertyPermission("*", "read,write"); but i'm not getting the correct answer and the exception still happens.... Do I have to set this permission in my property variable? My Code is like that bellow: java.util.PropertyPermission propertyPermission = new java.util.PropertyPermission("*", "read,write"); java.util.Properties props = new java.util.Properties();    More>>

Hi! I'm getting the following exception when trying to run my applet with corba :

access denied (java.util.PropertyPermission * read,write)

I'm trying to solve it with the following line:

java.util.PropertyPermission propertyPermission = new java.util.PropertyPermission("*", "read,write");

but i'm not getting the correct answer and the exception still happens....

Do I have to set this permission in my property variable?
My Code is like that bellow:


java.util.PropertyPermission propertyPermission = new java.util.PropertyPermission("*", "read,write");


java.util.Properties props = new java.util.Properties();

props = System.getProperties();

props.put("org.omg.CORBA.ORBInitialPort",getParameter("ORBInitialPort"));

props.put("org.omg.CORBA.ORBInitialHost",getParameter("ORBInitialHost"));

props.put("org.omg.CORBA.ORBClass",getParameter("ORBClass"));

org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(this,props);



Thanks,

Semíramis Assis

   <<Less
About | Sitemap | Contact