This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes Signed Applet retuns Java.security.AccessControlException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Signed Applet retuns Java.security.AccessControlException" Watch "Signed Applet retuns Java.security.AccessControlException" New topic
Author

Signed Applet retuns Java.security.AccessControlException

Nitin Sinha
Greenhorn

Joined: May 08, 2008
Posts: 17
Hi,

I have an signed applet that tries to run ipconfig/all on user system to get the unique macAddress from the client machine

but each time I try to run it it throws the folling exception -



I tried to google the issue but it says that I need to set policy file in bb-manifest.xml. Where do i need to define this file & how would my applet gain refernce to policy from bb-manifest.xml
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10171
    
    8

Looks like you might not have signed the jar properly. Does your signed jar have MYCERT entries under META-INF?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41125
    
  45
I've never heard of a bb-manifest.xml file; I doubt that it will help in this case.

The code may need to be run as privileged code, though. See HowCanAnAppletReadFilesOnTheLocalFileSystem for more details.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Signed Applet retuns Java.security.AccessControlException
 
Similar Threads
Java AccessControlException : Access Denied (Java.io.fileSystem) error while running Applet from JS
AccessControlException with a custom ClassLoader
print Screen from a jsp
JSP having problem accessing signed .jar
AccessControlException is thrown when a signed applet is trying to read a file from local system