dbrownell83
asked on
"JMFSecurityManager" giving me problems
I'm getting this error:
java.lang.RuntimeException : No permission to write files from applets
at com.sun.media.JMFSecurityM anager.che ckFileSave (JMFSecuri tyManager. java:250)
I'm not using an applet, and im using this policy file:
grant {
permission java.security.AllPermissio n;
};
grant {
permission java.io.FilePermission "C:\\myprogramdir\build\\- ", "read,write,delete";
};
Does anyone know what to do? JMFSecurityManager doesnt even exist in the javadocs or jmf docs
java.lang.RuntimeException
at com.sun.media.JMFSecurityM
I'm not using an applet, and im using this policy file:
grant {
permission java.security.AllPermissio
};
grant {
permission java.io.FilePermission "C:\\myprogramdir\build\\-
};
Does anyone know what to do? JMFSecurityManager doesnt even exist in the javadocs or jmf docs
grant {
permission java.io.FilePermission "C:\\myprogramdir\build\\- ", "read,write,delete";
};
should be
grant {
permission java.io.FilePermission "C:\\myprogramdir\\build\\ -", "read,write,delete";
};
permission java.io.FilePermission "C:\\myprogramdir\build\\-
};
should be
grant {
permission java.io.FilePermission "C:\\myprogramdir\\build\\
};
http://66.102.7.104/search?q=cache:jkIwQTeCCzMJ:forum.java.sun.com/thread.jspa%3FthreadID%3D576646%26tstart%3D75+com.sun.media.JMFSecurityManager.checkFileSave&hl=en
http://66.102.7.104/search?q=cache:7xh3HzfYVPAJ:forum.java.sun.com/thread.jspa%3FthreadID%3D576646%26tstart%3D90+com.sun.media.JMFSecurityManager.checkFileSave&hl=en
http://66.102.7.104/search?q=cache:v_Xij7M6Uy4J:forums.java.sun.com/thread.jspa%3FthreadID%3D592269%26messageID%3D3095246+com.sun.media.JMFSecurityManager.checkFileSave&hl=en
put some glance on these links too. You get some idea
Regards
Sudhakar
http://66.102.7.104/search?q=cache:7xh3HzfYVPAJ:forum.java.sun.com/thread.jspa%3FthreadID%3D576646%26tstart%3D90+com.sun.media.JMFSecurityManager.checkFileSave&hl=en
http://66.102.7.104/search?q=cache:v_Xij7M6Uy4J:forums.java.sun.com/thread.jspa%3FthreadID%3D592269%26messageID%3D3095246+com.sun.media.JMFSecurityManager.checkFileSave&hl=en
put some glance on these links too. You get some idea
Regards
Sudhakar
ASKER
none of the links are useful, and the extra \ didnt help :(
ASKER
it is an application, not an applet, and i do not use webstart
I may want to see the code snippet where you are facing this problem. Is it possible to post that code??
And post full stack trace also
I may not be helpful this time as it is already 12.45 AM. I am going to bed. May be you get some other experts
Good Night
Best Regards
Sudhakar
I may not be helpful this time as it is already 12.45 AM. I am going to bed. May be you get some other experts
Good Night
Best Regards
Sudhakar
ASKER
yes please hold on, i am finding the exact line it fails on...
ASKER
ok thanks anyway
ASKER
it fails on the open:
dsink = Manager.createDataSink(ds, outML);
dsink.open();
dsink = Manager.createDataSink(ds,
dsink.open();
ASKER
java.lang.RuntimeException : No permission to write files from applets
at com.sun.media.JMFSecurityM anager.che ckFileSave (JMFSecuri tyManager. java:250)
at com.sun.media.datasink.fil e.Handler. open(Handl er.java:21 9)
at com.metronome.beacon.outbo unddialer. RTPExport. createData Sink(WAVRe corder.jav a:370)
at com.metronome.beacon.outbo unddialer. RTPExport. doIt(WAVRe corder.jav a:190)
at com.metronome.beacon.outbo unddialer. WAVRecorde r.run(WAVR ecorder.ja va:116)
at java.lang.Thread.run(Unkno wn Source)
at com.sun.media.JMFSecurityM
at com.sun.media.datasink.fil
at com.metronome.beacon.outbo
at com.metronome.beacon.outbo
at com.metronome.beacon.outbo
at java.lang.Thread.run(Unkno
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
thank you. this is the only answer to that question on the internet.
Regards
Sudhakar