Java error message "Function requires a valid ADT argument"

Hi,

We have a agent in java and we have a error “Function requires a valid ADT argument” with the number 4207.

the error goes in line 15 with this code :

Database db = agentContext.getCurrentDatabase();

here are the line before :


import lotus.domino.*;

import java.io.*;

import java.util.*;

import java.net.*;

public class JavaAgent extends AgentBase {

private lotus.domino.Document demande;

public boolean flag_trace;

public void NotesMain() {

try {

Session session = getSession();

AgentContext agentContext = session.getAgentContext();


The application work fine on the production server in Domino 6.5.4 but in my new Domino 8.0.2 i have this problem.

Here are the step to call this agent :

  1. WebQuerySave agent is call

  2. call the Java agent that is in a other database

Did semeone as seen the same problem.

Thanks in advance