I have stand alone java program which is reading the emails using the Lotus notes API Notes.jar from Lotus notes server. I am getting error during reading the large attachments from the Email. If the email size is approximate >5 MB then I am getting
JVMLK005: current thread not owner(More details in Screen shot attached).
This error is not consistent. I am able to read the email around 10MB when I am running this program from the windows machine which has Lotus Notes, RAD installed. But I am getting error in Unix machine where the Batch this batch application is actually deployed.
java.lang.IllegalMonitorStateException: JVMLK005: current thread not owner
at java.lang.Object.notifyAll(Native Method)
at lotus.priv.CORBA.iiop.Lock.unlock(Unknown Source)
at lotus.priv.CORBA.iiop.IIOPConnection.writeUnlock(Unknown Source)
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.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at lotus.domino.corba._IDatabaseStub.createDocument(Unknown Source)