JVM AddAttachment Crash

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

Subject: JVM AddAttachment Crash

Any success solving this?

I have the same error.

error message: java.lang.OutOfMemoryError

error message: at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:157)

while activating an java agent with ‘RunOnServer’ from a LS button

as well as running it locally with ‘Run’

any help is welcome!

Subject: In DDM I receive the same error

Version of code on the server is: 8.5.1 - on windows 2003 x335 ibm server.

Today, 10:54:52 AM

(160 occurrences, first seen at Tuesday, July 27, 2010 - 3:05:46 PM)

JVM: The addAttachment (Ljava/lang/String;[B)V() method failed.

Reported by:

HTTP Server

Severity and type:

Warning High in Application Code

(There is no addtl. explanation or help available for this event)

[of course there is not even a hint of what to do.]

The heap size is 256 mb and everything on the server runs quickly but error repeats.

Thank You,

Tony