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
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
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.
Worked for me