Explanation
A SecurityException or IllegalAccessException
was thrown while trying to get information about the method or field, or an
attempt was made to set the value of a field declared final. Fields declared
final cannot be modified.
User Response
Do as follows:
- If the problem happened when setting a value, change the program logic
so the code does not try to set the value of a field declared final; alternatively,
change the declaration of the field.
- If the problem was access to information, ask a system administrator to
update the security policy file of the Java™ Virtual Machine so that your program
has the necessary permission. The administrator probably needs to grant the
ReflectPermission "suppressAccessChecks".