Sporadic "Error creating product object"

We are running Domino 6.0.2 and LEI 6.0.2 on an AIX server running 5.1. We connect to a DB2 v7.2.8 database.

We have basically 2 types of agents: Tranmitters, which connect to DB2, extract data, and mail it out to the users; and Receivers, those which get something from the users and load it into DB2.

We wanted to increase the throughput of the Transmitters, and found that multiple agents could run concurrently very effectively. And we also found a way around the Domino restriction of “only 1 active agent per database”. We found that we could run an agent in a different database, and have it run an agent in the first database. Basically, remote-control. Since we already had 2 other databases in our environment, we put a “trigger” into each of those and were then able to run 3 concurrent transmitters in the first database. Worked great in our test environment. Each of the agents operated independently, reading data from DB2 and creating mailings. In fact, they all run the same code, with different data as input. A sample of the trigger and the body of the triggered agent is shown below.

After deploying this approach into production, we started experiencing “Error creating product object” errors with some agents. At first, it was sporadic, where we would get the error only occasionally. It might affect 10% of the runs over a few hours, and then clear up again. We couldn’t find a pattern to this error, either in the system load or in the number of agents running. It would happen during the day when we run 1 concurrent agent, and also at night when we allow 3 concurrent agents. And it would affect all of the scheduled agents EXCEPT for the “triggered” agents. They ran just fine.

Recently, we had a Domino crash, and after that the problem was pretty much continuous. Every run encountered the problem. We rebooted, and that fixed it for about an hour, and then the problem came back. Eventually, we disabled the triggered agents (to return the environment to the single-transmitter approach) and rebooted, and since then we have not seen the problem again. So it appears that something about this triggering approach, or something about the system environment, causes this error. We just can’t pin it down to an exact cause. Maybe it’s something in the Domino code, or maybe a resource constraint on the system. We don’t know.

Our concern is that there is something else happening here, perhaps a resource issue on the system, and that even if we went to a more conventional approach where the transmitters are all in separate databases that we would still have this problem. Especially since it’s such a sporadic problem, and we have been unable to reproduce it in our test environment.

Any ideas?

Here is the code for a trigger:

Sub Initialize

Dim db As NotesDatabase

Dim session As New NotesSession

Dim agent_to_run As notesagent

Set db = session.GetDatabase("","services\competencies\profdev\pdttransmitter.nsf",False)

Set agent_to_run = db.GetAgent("Transmitter1")

agent_to_run.run

Print "after agent"

End Sub

And here is the code which it executes:

Sub Initialize

Call getdata("Transmitter1")

End Sub

Note that there isn’t anything much to it, because everything is in the shared script libraries. The only difference between agents is the name of the configuration file, which tells them the DB2 name and connection information.

I’d include the script libraries, but they have lots of code and I don’t see the need. After all, sometimes it works and sometimes it doesn’t, and it’s always the same code, which tells me that the code is not likely to be the problem. There must be something with the resources on the system which is causing the problem, either not enough of something or something not being freed or something along those lines. At least, that’s how I see it. I just can’t seem to pin down the root cause.

Subject: Sporadic “Error creating product object”

This is exactly the same problem that I am facing in two different installations (LD 6.5.4, on Windows 2003, communicating with DB2 v8, on a windows DB server. DB communication is done through ODBC)…

The logic of the agents is the same, even the logic of the building of the script libraries.

Note that when I first saw this problem, I made a copy of the environment on my laptop and I run this logic about 1 million times (iterations): It took me half a day to complete but I didn’t have any problem!

If you tried to put your code inside a For Loop and execute it 1000 times, you will most probably see that it generally works, but you get this error sporadically (inside the loop). If you run the same code again, you will again see the problem happending in a different iteration cycle! This must lead us to the conclusion that it has something to do with the server’s resources or something.

.

I totaly agree with you that this can’t a code error. A piece of code either works or doesn’t work!

.

Other posts on the LD forum say that when your agent runs through AMGR, you souldn’t include statements like “DocumentContext” etc. I have also tried to strip down the code in my agents but again it didn’t fix the problem.

.

Needless to say that I have a lot of agents that run other agents, but when no ODBC connection is used in this context, I get no error.

.

My guess is this: Agent A uses a ODBC connection. When it calls agent B (which also uses another ODBC connection), Domino messes things up: You are instructing it to use “LSXODBC” twice in the same process or thread and this causes the problem.

.

Have you finally solved this problem or found a work-around? Any help or clue would be appreciated.

Subject: RE: Sporadic “Error creating product object”

I have had a similar experience. It occurs with 6.5.4 and 7.0.3 on both Windows 2003 and iSeries servers. An agent triggered via a web browser which in turn triggers another agent which connects to DB2/400 (iSeries) using LSXODBC hangs periodically and produces the error, “error creating product object”. The web user can click the back button and trigger the agent again, and many times, the agent runs properly. Sometimes the problem occurs a handful of times, then doesn’t happen again for weeks. Other times, the only way to rectify the problem is to restart HTTP or restart the server. I suspected that some system resource on the iSeries (governed) where DB2/400 resides is having issues. But after reading the previous posts, I’m not so certain.