Document.getUniversalID hangs?

I wrote a independent Java application (not an agent) which uses the Notes Object Interface for Java.Sometimes, it hangs like this:

“JobWorker-1” daemon prio=5 tid=0x041ddc50 nid=0xbb0 in Object.wait() [0x0613f000…0x0613fd94]

    at java.lang.Object.wait(Native Method)

    - waiting on <0x10b8e530> (a lotus.priv.CORBA.iiop.Condition)

    at java.lang.Object.wait(Object.java:429)

    at lotus.priv.CORBA.iiop.Condition.wait(Unknown Source)

    - locked <0x10b8e530> (a lotus.priv.CORBA.iiop.Condition)

    at lotus.priv.CORBA.iiop.IIOPConnection.send(Unknown Source)

    at lotus.priv.CORBA.iiop.IIOPConnection.invoke(Unknown Source)

    at lotus.priv.CORBA.iiop.IIOPOutputStream.invoke(Unknown Source)

    at lotus.priv.CORBA.iiop.RepImpl.invoke(Unknown Source)

    at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)

    at lotus.domino.corba._IDatabaseStub.getDCDocumentByID(Unknown Source)

    at lotus.domino.cso.Database.getDocDataByID(Unknown Source)

    at lotus.domino.cso.Document.validate(Unknown Source)

    - locked <0x10b861f0> (a lotus.domino.cso.Document)

    at lotus.domino.cso.Document.getUniversalID(Unknown Source)

    - locked <0x10b861f0> (a lotus.domino.cso.Document)

    at com.vaultus.vms.domino.driver.NotesDatabase.getNotesDocumentByDocument(NotesDatabase.java:760)

    at 

As you might guess, the line at NotesDatabase.java:760 is this:

     String UNID = doc.getUniversalID();

Can anyone tell me what might be causing my program to hang - and what if anything I can do about it?

Chuck

Subject: Document.getUniversalID hangs?

What does the application do? Could you post more of its codes?

Subject: RE: Document.getUniversalID hangs?

Our application searches for documents that meet certain conditions, sorts them based on last modification dates, and caches the list of doc ids and dates. Later, on demand, it gets certain items from each of the documents on the list.

Unfortunately, there is lot of code in question - I’m not sure what I could or should post.

Chuck

Subject: RE: Document.getUniversalID hangs?

A basic feature of our algorithm is that for every Document in the DocumentCollection returned by the database search, we cache the document’s UNID and last modified date. This appears to be hanging while we try to get a document’s UNID.

Does that answer your question?

Chuck

Subject: Document.getUniversalID hangs?

By the way, since the thread where this code is running appears to be hanging, that particular DIIOP connection times out, closes the connection, and then throws an exception.

Chuck

Subject: Document.getUniversalID hangs?

Hi Chuck,

Have you discovered an explanation/solution for this issue?

I am experiencing the same problem in a .NET app.

Regards,

Alex