I have problem with java agents.In log you can see:
2008-05-15 16:48:32 AMgr: Agent (‘ProductImport’ in ‘SmartBiz.nsf’) error message: java.lang.OutOfMemoryError
2008-05-15 16:48:32 AMgr: Agent (‘ProductImport’ in ‘SmartBiz.nsf’) error message: at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:157)
2008-05-15 16:48:32 AMgr: Agent (‘ProductImport’ in ‘SmartBiz.nsf’) error message: at lotus.domino.ClassHashtable.explodeArchive(Unknown Source)
2008-05-15 16:48:32 AMgr: Agent (‘ProductImport’ in ‘SmartBiz.nsf’) error message: at lotus.domino.ClassHashtable.addAttachment(Unknown Source)
2008-05-15 16:48:32 AMgr: Agent (‘ProductImport’ in ‘SmartBiz.nsf’) error message: at lotus.domino.AgentLoader.addAttachment(Unknown Source)
2008-05-15 16:48:32 JVM: The addAttachment (Ljava/lang/String;[B)V() method failed.
2008-05-15 16:49:30 AMgr: Agent ‘DataImport’ in ‘Base.nsf’ did not process all documents successfully. Check the Agent Log for more information: JVM: Attempt to retrieve Java agent attachments failed.
2008-05-15 16:54:45 Chronos: Performing hourly full text indexing
If I run this agent from console everything works fine.
Log here:
2008-05-15 16:31:58 Remote console command issued by Developer/Server: tell amgr run Base.nsf ‘DataImport’
2008-05-15 16:32:02 JVM: Java Virtual Machine initialized.
2008-05-15 16:32:02 AMgr: Start executing agent ‘DataImport’ in ‘Base.nsf’
2008-05-15 16:32:03 Agent Manager: Agent printing: Agent START
2008-05-15 16:32:04 Agent Manager: Agent printing: Wykonuje: exec SP_FillProductCategories
2008-05-15 16:32:04 Agent Manager: Agent printing: Wykonuje: exec SP_SelectProductCategories
2008-05-15 16:32:04 Agent Manager: Agent printing: Wykonuje: select * from v_form_fields where form_alias = ‘fProduct’
2008-05-15 16:32:04 Agent Manager: Agent printing: Wykonuje: exec SP_FillProduct
2008-05-15 16:32:13 Agent Manager: Agent printing: Wykonuje: exec SP_SelectProducts
2008-05-15 16:32:13 Agent Manager: Agent printing: Import Start
2008-05-15 16:32:21 Agent Manager: Agent printing: Import End
2008-05-15 16:32:21 Agent Manager: Agent printing: Agent END
2008-05-15 16:32:21 AMgr: Agent ‘DataImport’ in ‘Base.nsf’ completed execution
This crash reveals only when the agent is run by scheduler. I tried the solutions for version 6.x which I find on Notes 6 forum, but as you can see whithout results(http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllThreadedweb/c53ad23599cbab2085256d24005f0a61?OpenDocument and http://www.openntf.org/projects/pmt.nsf/HomeLookup/76e168547497b9df8625737f002cff2e!OpenDocument&Click=).
Thanks for help