Need help with a .perm file (debugging, creating, etc)
I need some help troubleshooting what I do and don't have, with this .perm file.
Ok, here's what I have:
I'm trying to open a file, write to it, and close it. It throws:
access denied (org.cablelabs.impl.security.PersistentStoragePermission *)
the filename is: [opening local storage]/1/6021/whatever.txt
Which I get from amalgamating the persistent root properties, etc from dvb.persistent.root, org.id, app.id
What I think is appropriate from my hostapp.properties file
Just for the sake of this application, I'm using an organization id of '1', and an app ID of '6021' (although I'm not married to either of these numbers).
My perm file is:
<?xml version="1.0" ?>
...and finally, the basic code:
ObjectInputStream ois = new ObjectInputStream(new FileInputStream(
catch (FileNotFoundException e)
// This will happen virtually all the time this exists without a file.
System.out.println("Simple filenotfound exception");
catch (IOException e)
System.out.println("This is probably bad and should be investigated");
catch (Exception e)
System.out.println("This should never happen, and if it does, LOOK");
So, I'm curious if I even have it titled right, is it even getting the perm file... basically what I do have and what I don't, with this.