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 ()
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.