unning LotusScript Agent that calls a Java Library Generates the following Error: java.lang.Security

Technote (FAQ)


Question

A Designer has created a LotusScript agent that calls a Java Library using LotusScript to Java (LS2J). When executed, this agent generates a security exception error:


    "java.lang.SecurityException"

The signer of the agent is listed on the server document with rights to run Restricted and Unrestricted LotusScript/Java agents.

Answer

Agents in Domino 6 now have an additional security feature in the Agent properties that sets the security level of the agent. By default, this setting is set to not allow restricted operations (the default setting is "Do not allow restricted operations").


In order for the agent to run the property it must be set to one of the following options:

    "Allow restricted operations" 
    "Allow restricted operations with full administration rights" 
The property is found on the second tab, the key tab, of the Agent Properties dialog box.


也就是代理权限不正确,需要设置第二、三级权限

你可能感兴趣的:(unning LotusScript Agent that calls a Java Library Generates the following Error: java.lang.Security)