I am investigating how to use the Java Shared Libray feature which is accessed via the “Edit Project” button at the bottom of the Programmer’s Pane for Lotus Java agents. This as opposed to Imported Java agents.
The problem I’m encountering is that if I have a class in a database other than the current database the agent will not compile.
When I compile I get no compile error, nor do I get a successful compile message.
When I try to save the agent I get the popup box that tells me that there are Java errors.
So for grins I try to run this agent, note that it previously compiled using the local version of the class in the ScriptLibrary and ran fine. I get the following message in a popup:
Started running agent ‘Copy Of Test Agent Logging’ on 01/26/2004 11:11:06 AM
ERROR: Server error: Entry not found in index
Ran Java Agent Class
Done running agent ‘Copy Of Test Agent Logging’ on 01/26/2004 11:11:06 AM
Nothing is written to the Java Debug Console and the agent clearly does not run.
My question in all of this is how do I get my Java agent to compile using a Java Class in a ScriptLibrary in another Notes database?
Subject: RE: Java Agent using Java Shared Library will not compiler
Hi, I am using the Java shared library in my agent. Using Edit Project, I included the shared java libraries from FOP open source software and I am able to save and run the java agent without any problem. I am using 6.5.
Did Run. The reported problem is a notes error indicating that the document/view/form etc. that you were searching for in the database was not found:Started running agent ‘Copy Of Test Agent Logging’ on 01/26/2004 11:11:06 AM
ERROR: Server error: Entry not found in index
Ran Java Agent Class
Done running agent ‘Copy Of Test Agent Logging’ on 01/26/2004 11:11:06 AM
So it did run.Perhaps the agent did compile, despite the lack of a message to that effect, but it couldn’t find the class library which is in another database.
Or maybe it didn’t compile and the original compile was deleted. This leaving only a Domino marker to the compiled code which doesn’t exist.
Alas neither possibility helps me resolve my key issue of how to use a Shared Java Library
Subject: Java Agent using Java Shared Library will not compiler
I haven’t been able to get this to work either when pointing to a shared Java library in another database. I wanted to remove the step of refreshing application templates’ instances of shared design notes when the template was updated since many databases referenced these. The Edit Project button allows me to select a shared Java library in another database, but if I save the code after I have selected the resource the dialog allows me to browse to, I get a Java compile error but no specific line reference. Even if I don’t make any calls into the library via the agent trying to leverage it, there is never a ‘successful compile’ message. If I simply delete the reference the dialog allowed me to select and save, it once again successfully compiles despite no code change.