Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on please answer my question within the Java forums, part of the Software Development category; Any one can explain about the exception in thread "AWT-EventQueue-1" java.security.AccessControlException...
|
|||||||
|
|||
|
Re: please answer my question
Madhu, just copy and paste ur exception in google, u will get lot of link which u can take help from..
|
| The Following User Says Thank You to sunilch For This Useful Post: | ||
|
|||
|
Re: please answer my question
java.security.AccessControlException thrown when applet calls java.beans.Introspector.setBeanInfoSearchPath()
Symptoms When running an applet in a browser using the Sun JRE, an AccessControlException is thrown in the execution of Introspector.setBeanInfoSearchPath(): java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPropertiesAccess(Unknown Source) at java.beans.Introspector.setBeanInfoSearchPath(Unknown Source) at .... The same applet runs under the Microsoft VM. Cause The Introspector.setBeanInfoSearchPath() method call can change the list of package names used for finding BeanInfo classes. If more than one applet is running in the VM, an untrusted applet could call this method to redirect other applets to look up BeanInfo in unexpected packages. This is a security hole. A security check for java.util.PropertyPermission was added to this method in the JRE to address the security concern. If the applet is unsigned and it calls into this method, an AccessControlException will be thrown. Resolution The workaround is to either: Sign the applet using the Java 2 SDK jarsigner tool, so that the applet runs as a trusted applet and has permissions to call the Introspector.setBeanInfoSearchPath() method. Rearchitect the applet code to avoid the call to Introspector.setBeanInfoSearchPath(). For example, instead of relying on the BeanInfo search path, use a fully qualified package name for looking up the BeanInfo. |
| The Following User Says Thank You to amitpatel66 For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to answer this question | sripri | Interviews | 7 | 09-01-2009 02:06 AM |
| Please answer this question | desi_guru | Testing Issues | 1 | 01-13-2009 07:21 AM |
| Try out the answer for the following question | christia | Brainteasers | 1 | 08-07-2006 02:43 AM |