Geeks Talk

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.

please answer my question

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...

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-26-2009
Junior Member
 
Join Date: Feb 2009
Location: Amalapuram
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
madhoo_09 is on a distinguished road
Question please answer my question

Any one can explain about the exception in thread "AWT-EventQueue-1" java.security.AccessControlException
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-26-2009
Junior Member
 
Join Date: Jun 2008
Location: Pune
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
sunilch is on a distinguished road
Re: please answer my question

Quote:
Originally Posted by madhoo_09 View Post
Any one can explain about the exception in thread "AWT-EventQueue-1" java.security.AccessControlException
Madhu, just copy and paste ur exception in google, u will get lot of link which u can take help from..
Reply With Quote
The Following User Says Thank You to sunilch For This Useful Post:
  #3 (permalink)  
Old 02-26-2009
Expert Member
 
Join Date: Nov 2008
Location: Chennai
Posts: 303
Thanks: 1
Thanked 37 Times in 32 Posts
amitpatel66 is on a distinguished road
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.
Reply With Quote
The Following User Says Thank You to amitpatel66 For This Useful Post:
Reply

  Geeks Talk > Software Development > Java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 04:27 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved