06/24/2009

Java agent error amgr

Category java agent

Again, i got error when i try to run a scheduled agent on the server.
(server 6.5.4 fp3 and client 6.5.4)
on the client, all is running fine but on server, i got this error:
Agent  error: java.lang.UnsatisfiedLinkError: initIDs
Agent  error:         at java.awt.Color.(Color.java:216)
Agent  error:         at JavaAgent.NotesMain(JavaAgent.java:122)
Agent  error:         at lotus.domino.AgentBase.runNotes(Unknown Source)
Agent  error:         at lotus.domino.NotesThread.run(NotesThread.java:218)


Full story in Read More...

06/23/2009

getItemValueString() bug ?

Category java lotus

Hi all,

Can someone please say to me what's wrong with this code ? (on lotus designer 6.5.4)

View viewparam = db.getView("Parametres");
lotus.domino.Document docparam = viewparam.getFirstDocument();
       while (docparam != null) {
       String cntsuivi = docparam.getItemValueString("CltFollow");
               if (cntsuivi != "NON") {
                       String cntnom = docparam.getItemValueString("Name");
                       String cntprenom = docparam.getItemValueString("FirstName");
                       String cntemail = docparam.getItemValueString("Email");
                       System.out.println("Envoi du mail à " +cntprenom+" "+cntnom+" - "+cntemail);
                         }
.....


Of course, there is a problem as the println never occurs.
The CltFollow Field is a simple text field, and the documents have the "OUI" Value in it.

The only thing that seems to work is:
Item cntsuivi = docparam.getFirstItem("CltFollow");
String cntsuivivalue = cntsuivi.getValueString();
       if (cntsuivivalue.indexOf("OUI") == 0 ) {


And i do not understand why as i have on the same agent, these lines that are working well:
     String cdtmailaction = doc.getItemValueString("MailAction");
     if (cdtmailaction != "NON") {


Is this a getItemValueString() bug or something else ?