Java NullPointerException in Java Agent

后端 未结 3 982
没有蜡笔的小新
没有蜡笔的小新 2020-12-22 13:00

I\'m developing a java agent. I have an NullPointerException error which I do believe should not happen.

Here is the debug console message:

java.lang         


        
相关标签:
3条回答
  • 2020-12-22 13:10

    It's pointless getting the response code before you've sent anything. You're supposed to send the request first, then get the response code, then get the response if required

    0 讨论(0)
  • 2020-12-22 13:15

    You may still have a code problem, but you could also have a permissions problem.

    Your code is running as a Java agent on an IBM Lotus Domino server. That means it is subjected to restrictions on what it can do. There are three levels of control: restrictions imposed by Domino's AMGR task, restrictions assigned to your agent, and restrictions imposed by the JVM. Presuming that you are the signer of the agent, have you made sure that you have permission to run unrestricted agents (Security tab of the Server Document in the Domiono Directory)? And have you checked the settings on your agent (the Security tab of the Agent Properties dialog for your agent)? If you have all of those set properly, then you may have to look at the file jvm/lib/security/java.policy in your Domino server installation.

    0 讨论(0)
  • 2020-12-22 13:23
    1. Close Notes/Designer
    2. Open Task Manager in Windows
    3. Find and kill all IBM Lotus Notes/Domino processes
    4. Try again

    Worked for me

    0 讨论(0)
提交回复
热议问题