Just ran into this one, where an invalid UNID causes the notes driver to throw a fatal exception and shuts down. This does not happen on every occurence of Notes error 4091 (usually just an error status describing the Notes error is returned), but regularly. Any ideas?

DirXML: [10/02/09 16:22:22.70]: TRACE: Remote Loader: Received document for publisher channel
DirXML: [10/02/09 16:22:22.70]: TRACE: Remote Loader: Waiting for receive...
DirXML: [10/02/09 16:22:22.70]: TRACE: Remote Loader: DirXML returned:
DirXML: [10/02/09 16:22:22.70]: TRACE: <nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.10.4747">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<query class-name="Person" event-id="0" scope="entry">
<association>6C10A8C72139915AC125756D0031C725</association>
<read-attr attr-name="FullName"/>
<read-attr attr-name="MailAddress"/>
<read-attr attr-name="InternetAddress"/>
<read-attr attr-name="Location"/>
<read-attr attr-name="Login Disabled"/>
<read-attr attr-name="MailServer"/>
<read-attr attr-name="FirstName"/>
<read-attr attr-name="MiddleInitial"/>
<read-attr attr-name="Owner"/>
<read-attr attr-name="LastName"/>
<read-attr attr-name="ShortName"/>
<read-attr attr-name="Comment"/>
</query>
</input>
</nds>
DirXML: [10/02/09 16:22:22.70]: TRACE: DRV_NAMES: NotesPublicationShim.query()
DirXML: [10/02/09 16:22:22.72]: TRACE: DRV_NAMES: Publisher: query() sClassName=Person
DirXML: [10/02/09 16:22:22.72]: TRACE: DRV_NAMES: Publisher: query() sUNID=6C10A8C72139915AC125756D0031C725
DirXML: [10/02/09 16:22:22.72]: TRACE: DRV_NAMES: NotesPublicationShim query(): calling authenticateToDomino with sUserIDFile = D:\notes\data\_eDirectoryuser.id and sUserPwd = <!-- content suppressed -->
DirXML: [10/02/09 16:22:22.72]: TRACE: DRV_NAMES: NotesPublicationShim query(): authenticateToDomino returned Notes User Name: CN=eDirectory _User/O=mummert/C=de
DirXML: [10/02/09 16:22:22.76]: TRACE: DRV_NAMES: NotesPublicationShim.query - reading Mail-Directory (Meta)
DirXML: [10/02/09 16:22:22.76]: TRACE: DRV_NAMES: Query: Loading Note = 6C10A8C72139915AC125756D0031C725
DirXML: [10/02/09 16:22:22.76]: TRACE: DRV_NAMES: processAssociatedQueryEvent: Error processing note 6C10A8C72139915AC125756D0031C725 ID = 4091. Message: Invalid universal id.
DirXML: [10/02/09 16:22:23.01]:
DirXML Log Event -------------------
Driver = \MUMMERT-META\de\mummert\hamburg\DIRXML_DRVSET01\DRV_NAMES
Thread = Publisher
Object = \de\mummert\Ilias Agorakis
Level = error
Message = Exception caused by PublicationShim query()
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.write(ByteArrayOutpu tStream.java:94)
at java.io.PrintStream.write(PrintStream.java:430)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder. java:202)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEnc oder.java:272)
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder .java:85)
at java.io.OutputStreamWriter.flushBuffer(OutputStrea mWriter.java:168)
at java.io.PrintStream.write(PrintStream.java:477)
at java.io.PrintStream.print(PrintStream.java:619)
at java.io.PrintStream.println(PrintStream.java:756)
at java.lang.Throwable.printStackTrace(Throwable.java :464)
at java.lang.Throwable.printStackTrace(Throwable.java :451)
at com.novell.nds.dirxml.driver.notes.NotesQueryProce ssor.processAssociatedQueryEvent(NotesQueryProcess or.java:940)
at com.novell.nds.dirxml.driver.notes.NotesQueryProce ssor.processQueryEvent(NotesQueryProcessor.java:28 33)
at com.novell.nds.dirxml.driver.notes.NotesPublicatio nShim.query(NotesPublicationShim.java:2352)
at com.novell.nds.dirxml.remote.loader.Driver$XmlComm andProcessorImpl.execute(Driver.java:1143)
at com.novell.nds.dirxml.driver.notes.NotesPublicatio nShim.start(NotesPublicationShim.java:1643)
at com.novell.nds.dirxml.remote.loader.Driver.run(Dri ver.java:851)
at java.lang.Thread.run(Thread.java:619)
DirXML: [10/02/09 16:22:23.03]:
DirXML Log Event -------------------
Driver = \MUMMERT-META\de\mummert\hamburg\DIRXML_DRVSET01\DRV_NAMES
Thread = Publisher
Object = \de\mummert\Ilias Agorakis
Level = fatal
Message = Exception caused by PublicationShim query()
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.write(ByteArrayOutpu tStream.java:94)
at java.io.PrintStream.write(PrintStream.java:430)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder. java:202)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEnc oder.java:272)
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder .java:85)
at java.io.OutputStreamWriter.flushBuffer(OutputStrea mWriter.java:168)
at java.io.PrintStream.write(PrintStream.java:477)
at java.io.PrintStream.print(PrintStream.java:619)
at java.io.PrintStream.println(PrintStream.java:756)
at java.lang.Throwable.printStackTrace(Throwable.java :464)
at java.lang.Throwable.printStackTrace(Throwable.java :451)
at com.novell.nds.dirxml.driver.notes.NotesQueryProce ssor.processAssociatedQueryEvent(NotesQueryProcess or.java:940)
at com.novell.nds.dirxml.driver.notes.NotesQueryProce ssor.processQueryEvent(NotesQueryProcessor.java:28 33)
at com.novell.nds.dirxml.driver.notes.NotesPublicatio nShim.query(NotesPublicationShim.java:2352)
at com.novell.nds.dirxml.remote.loader.Driver$XmlComm andProcessorImpl.execute(Driver.java:1143)
at com.novell.nds.dirxml.driver.notes.NotesPublicatio nShim.start(NotesPublicationShim.java:1643)
at com.novell.nds.dirxml.remote.loader.Driver.run(Dri ver.java:851)
at java.lang.Thread.run(Thread.java:619)
DirXML: [10/02/09 16:22:23.03]: TRACE: Remote Loader: Sending...
DirXML: [10/02/09 16:22:23.03]: TRACE: <nds dtdversion="3.5" ndsversion="8.x">
<output>
<status event-id="report status" level="fatal" type="remoteloader">Exception caused by PublicationShim query()
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.write(ByteArrayOutpu tStream.java:94)
at java.io.PrintStream.write(PrintStream.java:430)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder. java:202)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEnc oder.java:272)
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder .java:85)
at java.io.OutputStreamWriter.flushBuffer(OutputStrea mWriter.java:168)
at java.io.PrintStream.write(PrintStream.java:477)
at java.io.PrintStream.print(PrintStream.java:619)
at java.io.PrintStream.println(PrintStream.java:756)
at java.lang.Throwable.printStackTrace(Throwable.java :464)
at java.lang.Throwable.printStackTrace(Throwable.java :451)
at com.novell.nds.dirxml.driver.notes.NotesQueryProce ssor.processAssociatedQueryEvent(NotesQueryProcess or.java:940)
at com.novell.nds.dirxml.driver.notes.NotesQueryProce ssor.processQueryEvent(NotesQueryProcessor.java:28 33)
at com.novell.nds.dirxml.driver.notes.NotesPublicatio nShim.query(NotesPublicationShim.java:2352)
at com.novell.nds.dirxml.remote.loader.Driver$XmlComm andProcessorImpl.execute(Driver.java:1143)
at com.novell.nds.dirxml.driver.notes.NotesPublicatio nShim.start(NotesPublicationShim.java:1643)
at com.novell.nds.dirxml.remote.loader.Driver.run(Dri ver.java:851)
at java.lang.Thread.run(Thread.java:619)
</status>
<init-params event-id="write-state"/>
</output>
</nds>
DirXML: [10/02/09 16:22:23.03]: TRACE: Remote Loader: Document sent.
DirXML: [10/02/09 16:22:23.03]: TRACE: DRV_NAMES: First returned status element with eventID: 6C10A8C72139915AC125756D0031C725 - 1254493342550 has level=-1
DirXML: [10/02/09 16:22:23.03]: TRACE: DRV_NAMES: Publication status = SL_UNKNOWN
DirXML: [10/02/09 16:22:23.03]: TRACE: Remote Loader: Calling DriverShim.shutdown()


Cheers, Lothar