Notes error: JVM: Attempt to retrieve Java agent attachments failed

Hi,I’ve an agent lotusscript that run an Javaagent

sometimes this error:

Notes error: JVM: Attempt to retrieve Java agent attachments failed

02/12/2009 10.32.53 HTTP JVM: Eccezione nel thread “Thread-7”

02/12/2009 10.32.53 HTTP JVM: java.lang.OutOfMemoryError

02/12/2009 10.32.53 JVM: Creation of the byte object failed.

02/12/2009 10.32.53 HTTP Server: Agent ‘JRGeneraXMLMovimenti’ error: No RESUME

if restart the domino server the agent run

thanks

Subject: I’ve seen this too

http://www-10.lotus.com/ldd/nd85forum.nsf/DateAllThreadedWeb/5422e79fea64484d8525768000420328?OpenDocument

Subject: Notes error: JVM: Attempt to retrieve Java agent attachments failed.

i don’t use external jar.All .jar are in the agent contest archive.

i run java agent by Lotusscript :

Set Agent = DBD.GetAgent(“JReportXMLSaldi”)

If Agent.Run()  = 0 Then

	

	'Print "ok JReportXML."

Else

	 Print "ERRORE LUNCH JReport"

End If

and this is the error:

02/12/2009 15.49.36 HTTP JVM: Eccezione nel thread “Thread-4”

02/12/2009 15.49.37 HTTP JVM: java.lang.OutOfMemoryError

02/12/2009 15.49.37 HTTP JVM: at

02/12/2009 15.49.37 HTTP JVM: java.util.Arrays

02/12/2009 15.49.37 HTTP JVM: .

02/12/2009 15.49.37 HTTP JVM: copyOfRange

02/12/2009 15.49.37 HTTP JVM: (

02/12/2009 15.49.38 HTTP JVM: Arrays.java

02/12/2009 15.49.38 HTTP JVM: :

02/12/2009 15.49.38 HTTP JVM: 4

02/12/2009 15.49.38 HTTP JVM: 0

02/12/2009 15.49.38 HTTP JVM: 3

02/12/2009 15.49.38 HTTP JVM: 8

02/12/2009 15.49.38 HTTP JVM: )

02/12/2009 15.49.38 HTTP JVM: at

02/12/2009 15.49.38 HTTP JVM: java.util.Arrays

02/12/2009 15.49.38 HTTP JVM: .

02/12/2009 15.49.38 HTTP JVM: copyOf

02/12/2009 15.49.38 HTTP JVM: (

02/12/2009 15.49.38 HTTP JVM: Arrays.java

02/12/2009 15.49.38 HTTP JVM: :

02/12/2009 15.49.38 HTTP JVM: 3

02/12/2009 15.49.38 HTTP JVM: 7

02/12/2009 15.49.38 HTTP JVM: 7

02/12/2009 15.49.38 HTTP JVM: 0

02/12/2009 15.49.38 HTTP JVM: )

02/12/2009 15.49.38 HTTP JVM: at

02/12/2009 15.49.38 HTTP JVM: java.io.ByteArrayOutputStream

02/12/2009 15.49.38 HTTP JVM: .

02/12/2009 15.49.38 HTTP JVM: write

02/12/2009 15.49.38 HTTP JVM: (

02/12/2009 15.49.38 HTTP JVM: ByteArrayOutputStream.java

02/12/2009 15.49.38 HTTP JVM: :

02/12/2009 15.49.38 HTTP JVM: 1

02/12/2009 15.49.38 HTTP JVM: 0

02/12/2009 15.49.38 HTTP JVM: 5

02/12/2009 15.49.38 HTTP JVM: )

02/12/2009 15.49.38 HTTP JVM: at

02/12/2009 15.49.38 HTTP JVM: lotus.domino.ClassHashtable

02/12/2009 15.49.38 HTTP JVM: .

02/12/2009 15.49.38 HTTP JVM: explodeArchive

02/12/2009 15.49.38 HTTP JVM: (Unknown Source)

02/12/2009 15.49.38 HTTP JVM: at

02/12/2009 15.49.38 HTTP JVM: lotus.domino.ClassHashtable

02/12/2009 15.49.38 HTTP JVM: .

02/12/2009 15.49.38 HTTP JVM: addAttachment

02/12/2009 15.49.38 HTTP JVM: (Unknown Source)

02/12/2009 15.49.38 HTTP JVM: at

02/12/2009 15.49.38 HTTP JVM: lotus.domino.AgentLoader

02/12/2009 15.49.38 HTTP JVM: .

02/12/2009 15.49.38 HTTP JVM: addAttachment

02/12/2009 15.49.38 HTTP JVM: (Unknown Source)

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

02/12/2009 15.49.38 HTTP Server: Agent ‘JRGeneraXMLMovimenti’ error: No RESUME

Subject: I’d try increasing JVM heap…

  • I think there are INI settings for that. I’d have to search the forum to find them, which you can do just as easily. (grin)

  • I take that back. My INI has this:

HTTPJVMMaxHeapSize=256M

Hope this helps…

Subject: Java lang Out of memory error

I’ve

HTTPJVMMaxHeapSize=512MB

but return the same error

Notes error: JVM: Attempt to retrieve Java agent attachments failed.