How to crash a Domino 6 http server ?!?

I have a notes document. In this document i have some passthru html, with form tags. The form has a action, posting the values to a agent. This works like a sharm. In the agent I print the values from the querystring, posted from the form, no problem. Values are posted.

The problem starts when I try to do something more in this agent, like just this simple line of code:

Set docMail = New NotesDocument(dbThis)

If I do this, the agent hangs, and you get multiple http threads hanging on your server, and nothing happens. You can’t stop the http server, you need to boot your domino server.

Why is this? Why can’t I create documents from a agent like this?

Rune Carlsen

http://www.dominozone.net

Subject: How to crash a Domino 6 http server ?!?

… don’t forget to set “dbThis” first :slight_smile:

If you forget :slight_smile: → Crash Boom Bang !

Rune

Subject: RE: How to crash a Domino 6 http server ?!?

So did you get variant does not contain a container? since you did not set dbThis it should give some similar error.

HTH – Cheers

Subject: RE: How to crash a Domino 6 http server ?!?

No.

Doing this (ps, i did not have option explicit):

Set doc = New NotesDocument(db)

without having db set, infact crashed the domino server.

Rune

Subject: RE: How to crash a Domino 6 http server ?!?

Well that’s a bug if I’ve ever seen one.

Two things…

  1. Always use “Option Explicit” or “Option Declare” (synonyms)

  2. I prefer to use…

Set notesDocument = notesDatebase.createDocument()

… over …

Set notesDocument = New NotesDocument(notesDatabase)

… since it is “cleaner” OO, can be used in COM, and wouldn’t fail in your situation. You’d get an “Object variable not set” runtime error instead.

But your way should fail with a runtime error, too, rather than hang the server. I would have expected a “… requires a valid ADT argument” error.

Subject: RE: How to crash a Domino 6 http server ?!?

There must be something different from an NT server to a Linux server. I tried to duplicate your situation Rune and unfortunately I got that container error and the server did not crash. Maybe we are just dealing with something NT can’t do that Linux can do (not crash as easily).

HTH – Cheers

Subject: RE: How to crash a Domino 6 http server ?!?

Probably, I have tried it on 3 servers now, and the same thing happens on all the serves…

Go Linux :slight_smile:

Rune