CreateFromTemplate error

I’am using the createFromTemplate function to generate new databases. The template is correctly open and everything seems to work fine.

I’am using Lotus Notes 6.5 running on Linux.

When I try to run the agent, the following error happens :

Notes Error : lookupHandle : null handle (myServer!!myDb)

Any clue ?