nerdexam
IBM

C2040-407 · Question #73

Barry has written an XPage which utilizes code in custom Java classes. When opening the XPage the following security exception is thrown "java.security.AccessControlException: access denied…

The correct answer is C. grant {. See the full explanation below for the reasoning.

Question

Barry has written an XPage which utilizes code in custom Java classes. When opening the XPage the following security exception is thrown "java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)". What can be added to the java.policy file on the server to prevent this error?

Options

  • Agrant {
  • Ballow permission getClassLoader;
  • Cgrant {
  • Dallow permission java.lang.RuntimePermission "getClassLoader";

How the community answered

(32 responses)
  • A
    16% (5)
  • B
    6% (2)
  • C
    75% (24)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full C2040-407 Practice