Diego Sotelo - 2008-12-11

Hi 
I trying to run a agent called Prueba in the image2.nsf database. When I run my program, called testApi, the program open a notes session, then the program open the database, and finally it try to run Prueba and crash and return the next error:

JVMDG217: Dump Handler is Processing a Signal - Please Wait.
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to /home/image/ImageII/java/ShootAgents/javacore.20081203.040608.30150.txt
JVMDG215: Dump Handler has Processed Exception Signal 11.
Segmentation fault

Installation:
------------

Linux 2.6.9-78.EL i686 i386 GNU/Linux ; Centos 4.7
Domino 7.02 (Notes client is not installed)
Java VM: Classic VM (build 1.4.2, J2RE 1.4.2 IBM

Environment:
-----------

export CLASSPATH=$CLASSPATH:/opt/lotus/notes/70020/linux/jvm/lib/ext/domingo-1.5.1.jar
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lotus/notes/70020/linux
export CLASSPATH=$CLASSPATH:/notes/notesr4/domino/java/NCSO.jar
export CLASSPATH=$CLASSPATH:/opt/lotus/notes/70020/linux/jvm/lib/ibmorbapi.jar
export PATH=$PATH:/notes/notesr4

Source Code:
-----------

import de.bea.domingo.DAgent;
import de.bea.domingo.DNotesException;
import de.bea.domingo.DNotesFactory;
import de.bea.domingo.DSession;
import de.bea.domingo.DDatabase;
import de.bea.domingo.DNotesRuntimeException;

public class testApi {

/**
* @param args
*/
public static void main(String[] args) {
DNotesFactory DNotesFactoryfactory = DNotesFactory.getInstance();
DSession session = DNotesFactoryfactory.getSession();
DDatabase database = null;
DAgent agent=null;
try {
System.out.println("Session:");
System.out.println("UserName:" + session.getUserName());
System.out.println("ServerName:" + session.getServerName());
System.out.println("isOnServer():" + session.isOnServer());
System.out.println("isValid():" + session.isValid());
System.out.println("CanonicalUserName:" + session.getCanonicalUserName());
System.out.println("CommonUserName:" + session.getCommonUserName());
System.out.println("getCurrentTime():" + session.getCurrentTime());
System.out.println("getNotesVersion():" + session.getNotesVersion());
System.out.println("getPlatform():" + session.getPlatform());
System.out.println("getTimeZone():" + session.getTimeZone());
System.out.println("___________________________________________________");
System.out.println("Database:");
database = session.getDatabase("", "/notes/notesr4/i_dir/image/brazil/image2.nsf");
System.out.println("getTitle():" + database.getTitle());
System.out.println("getCategories():" + database.getCategories());
System.out.println("getCurrentAccessLevel():" + database.getCurrentAccessLevel());
System.out.println("getDesignTemplateName():" + database.getDesignTemplateName());
System.out.println("getFileName():" + database.getFileName());
System.out.println("getFilePath():" + database.getFilePath());
System.out.println("getServer():" + database.getServer());
System.out.println("getSizeQuota():" + database.getSizeQuota());
System.out.println("getTemplateName():" + database.getTemplateName());

} catch (DNotesException e) {
// TODO Bloque catch generado automáticamente
System.out.println("Error:" + e.getMessage());
e.printStackTrace();
}

try {
System.out.println("isOpen()1:" + database.isOpen());
System.out.println("___________________________________________________");
System.out.println("Agent:");
agent = database.getAgent("Prueba");
System.out.println("getName():"+ agent.getName());
System.out.println("getOwner():" + agent.getOwner());
System.out.println("getCommonOwner():" + agent.getCommonOwner());
System.out.println("getQuery():" + agent.getQuery());
System.out.println("getServerName():" + agent.getServerName());
System.out.println("getTarget():" + agent.getTarget());
System.out.println("getTrigger():" + agent.getTrigger());
System.out.println("isEnabled()" + agent.isEnabled());
System.out.println("NotesAgent()" + agent.isEnabled());
System.out.println("isPublic()" + agent.isEnabled());
System.out.println("isWebAgent()" + agent.isEnabled());

System.out.println("- Running...");
agent.run();

} catch (DNotesRuntimeException e1) {
System.out.println("Error DNotesRuntimeException:" + e1.getMessage());
e1.printStackTrace();
}

}

Return:
-------

Session:
UserName:
ServerName:
isOnServer():false
isValid():true
CanonicalUserName:
CommonUserName:
getCurrentTime():12/3/08 5:51:29 AM GMT-03:00
getNotesVersion():
getPlatform():UNIX
getTimeZone():null
___________________________________________________
Database:
getTitle():Image
getCategories():
getCurrentAccessLevel():6
getDesignTemplateName():
getFileName():image2.nsf
getFilePath():/notes/notesr4/i_dir/image/brazil/image2.nsf
getServer():local
getSizeQuota():0
getTemplateName():
isOpen()1:true
___________________________________________________
Agent:
getName():Prueba
getOwner():CN=notes/O=image
getCommonOwner():notes
getQuery():
getServerName():CN=zulu/O=image
getTarget():3
getTrigger():1
isEnabled()true
NotesAgent()true
isPublic()true
isWebAgent()true
- Running...
JVMDG217: Dump Handler is Processing a Signal - Please Wait.
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to /home/image/ImageII/java/ShootAgents/javacore.20081203.045130.30566.txt
JVMDG215: Dump Handler has Processed Exception Signal 11.
Segmentation fault

here is the error in a dump file:

NULL ------------------------------------------------------------------------
0SECTION TITLE subcomponent dump routine
NULL ===============================
1TISIGINFO signal 11 received
1TIDATETIME Date: 2008/11/23 at 23:28:04
1TIFILENAME Javacore filename: /home/image/ImageII/java/ShootAgents/javacore.20081123.232804.27020.txt
NULL ------------------------------------------------------------------------
0SECTION XHPI subcomponent dump routine
NULL ==============================
1HPTIME Sun Nov 23 23:28:04 2008
1HPSIGRECV SIGSEGV received in Cstrncpy at 0xb44bd80d in /opt/lotus/notes/70020/linux/libnotes.so. Processing terminated.
1HPFULLVERSION J2RE 1.4.2 IBM build cxia321420-20040626
NULL
1HPOPENV Operating Environment
NULL ---------------------
2HPHOSTNAME Host : zulu.argentina.com.(none)
2HPOSLEVEL OS Level : 2.6.9-78.EL.#1 Thu Jul 24 23:46:01 EDT 2008
2HPLIBCVER glibc Version : 2.3.4
2HPCPUS Processors -
3HPARCH Architecture : (not implemented)
3HPNUMCPUS How Many : (not implemented)
3HPCPUSENABLED Enabled : 1
NULL

1XMCURTHDINFO Current Thread Details
NULL ----------------------
3XMTHREADINFO "Domingo Thread 0" (TID:1006B6F8, sys_thread_t:828B450, state:R, native ID:B613ABA0) prio=5
4XESTACKTRACE at lotus.domino.local.Agent.Nrun(Native Method)
4XESTACKTRACE at lotus.domino.local.Agent.run(Unknown Source)
4XESTACKTRACE at de.bea.domingo.proxy.AgentProxy.run(AgentProxy.java:326)
4XESTACKTRACE at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
4XESTACKTRACE at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
4XESTACKTRACE at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
4XESTACKTRACE at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
4XESTACKTRACE at java.lang.reflect.Method.invoke(Method.java:391)
4XESTACKTRACE at de.bea.domingo.service.InvocationTask.run(InvocationTask.java:102)
4XESTACKTRACE at de.bea.domingo.threadpool.SimpleThreadPool.run(SimpleThreadPool.java:369)
4XESTACKTRACE at de.bea.domingo.proxy.DNotesThread.run(DNotesThread.java:244)
NULL
3HPREGISTERS Register Values
NULL ---------------
3HPREGVALUES EAX : B613982C, EBX : B5975D60, ECX : B613982C
3HPREGVALUES EDX : 0000003D, ESI : 00000082, EDI : B613982C
3HPREGVALUES EBP : B61390C4, ESP : B61390BC, EIP : B44BD80D
3HPREGVALUES EFLAGS : 00010206
NULL
3HPNATIVESTACK Native Stack of "Domingo Thread 0" PID 27020
NULL -------------------------
3HPSTACKLINE Cstrncpy at B44BD80D in libnotes.so
3HPSTACKLINE _ZN10CAssistant7GetNameEPc at B525AE5B in libnotes.so
3HPSTACKLINE AgentRun at B5278F9C in libnotes.so
3HPSTACKLINE _ZN7ANMacro11ANMRunMacroEsPh at B5F85B1C in liblsxbe.so
3HPSTACKLINE Java_lotus_domino_local_Agent_Nrun at B5F872D6 in liblsxbe.so
3HPSTACKLINE A588C1E4
3HPSTACKLINE L0_invokeinterface_quick__ at B7F6EB67 in libjvm.so
3HPSTACKLINE mmipExecuteJava at B7F68D03 in libjvm.so
3HPSTACKLINE B6139CAC

Thank you in advance