• Anonymous
  • Login
  • Register
OpenLog - Defect: Not really an OpenLog bug but...

Created on Apr 6, 2004
Created by John Marshall
Status Submitted
Release 0.94

I was trying to log an event and for some reason the event was not saving. After switching on debugging I was presented with this error message:

OpenLogItem error: Notes error 4175: Couldn't get default View id for database (<database name>)

Ok I had not defined a default view for my database as per the error message, fine. But why on earth would I need to access a default view in my database from within the OpenLogItem class. I eventually tracked it down to this line:

Class: OpenLogItem
Method: writeToLog
Line: rtitem.appendDocLink(errDoc, errDoc.getUniversalID());

It seems the call to appendDocLink requires a default view to be defined in the database you are logging otherwise it fails with a NotesException. As the debugging level in OpenLog is set by default to "0" I only noticed when my custom event messages failed to appear. Setting a default view in the database solved the problem.

Sounds like a Domino Java feature to be aware of. Just thought I would let you know.



Taken Actions by Owners

No actions have been taken yet.


Documents
     
Creation Date
Author
Subject
Apr 6, 2004 John Marshall Not really an OpenLog bug but...
Apr 6, 2004 Julian Robichaux     Response: I think I've seen that sort of thing before...
Apr 6, 2004 John Marshall     Response: ...Tested Environment
     
In this field you can enter the actual defect.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.