Search code examples
lotus-notesalfrescojavaagents

Java Agent:- Notes Error : JVM : Attempt to retrieve java agent attachments failed


I have got problem while working with Java agent in Notes client. I need to upload the file from particular path in Notes client memo form. I am using Java agent. It uses Alfresco's API to upload file to alfresco server. It works fine in standalone Java application. It is working fine for the first time in Lotus Notes also. But when I want to update for the second time or if I run any Java agent which has JAR files imported for the second time, it throws the following error:

Notes Error : JVM : Attempt to retrieve java agent attachments failed.

I added necessary jar files in the server's jvm/lib/ext path. After restarting server, it works for first time, then it fails for second time. Any solutions would be appreciated.


Solution

  • It is known issue with memory leak if Java agent or Java script library contains JAR files. The bigger the sooner your server/amgr crashes. Not fixed since beginning of Java agents :-(.

    Common workaround is to put all JARs into jvm/lib/ext folder, as @Simon O'Doherty mentioned.

    Modern approach is to use XAgents or servlet.