Java Agent on iSeries

Hi all,

I have a java agent that is called from a LS agent…(the java agent generates a file and stores it on the file system) when the LS agent is triggered manually the agent works just fine. when scheduled on the iSeries… I get an object variable not set error due to the file not existing that the java agent creates.

Note - The scheduled agent is only different due to a string variable for the path to save the created file.

here are the logged errors:

03/02/2008 18:39:55 AMgr: Agent (‘PDFProcessor’ in ‘Temp/R-QuoteMainTest.nsf’) error message: at java.lang.Throwable.(Throwable.java:180)

03/02/2008 18:39:55 AMgr: Agent (‘PDFProcessor’ in ‘Temp/R-QuoteMainTest.nsf’) error message: at java.lang.Exception.(Exception.java:29)

03/02/2008 18:39:55 AMgr: Agent (‘PDFProcessor’ in ‘Temp/R-QuoteMainTest.nsf’) error message: at org.omg.CORBA.UserException.(UserException.java:27)

03/02/2008 18:39:55 AMgr: Agent (‘PDFProcessor’ in ‘Temp/R-QuoteMainTest.nsf’) error message: at lotus.domino.NotesException.(Unknown Source)

03/02/2008 18:39:55 AMgr: Agent (‘PDFProcessor’ in ‘Temp/R-QuoteMainTest.nsf’) error message: at lotus.domino.local.RichTextItem.NembedObject(Unknown Source)

03/02/2008 18:39:55 AMgr: Agent (‘PDFProcessor’ in ‘Temp/R-QuoteMainTest.nsf’) error message: at lotus.domino.local.RichTextItem.embedObject(Unknown Source)

03/02/2008 18:39:55 AMgr: Agent (‘PDFProcessor’ in ‘Temp/R-QuoteMainTest.nsf’) error message: at JavaAgent.NotesMain(JavaAgent.java:388)

03/02/2008 18:39:55 AMgr: Agent (‘PDFProcessor’ in ‘Temp/R-QuoteMainTest.nsf’) error message: at lotus.domino.AgentBase.runNotes(Unknown Source)

Any ideas?

Thanks a bunch!

Mark

Subject: Java Agent on iSeries

I think your problem may be caused by the file structure on an iSeries. I have never run an agent like this natively on iSeries. I have always run agents on the IXS card which supports an NT file structure. I effect then, Java agents are running on NT.

So, some research into the way in which Java creates native files on the iSeries may be in order.

HTH