Within the Using this Database help document, under the section "Using the LogErrorEx function for advanced error logging", there are several changes that are required for the Java method.
Firstly the Java method for calling LogErrorEx is not functionally identical to the LotusScript LogErrorEx, as it requires the passing of the Exception as the first parameter within the call.
Secondly the Java example requires the addition of the Exception such that this becomes:
private boolean updateDoc (Document doc, Integer appLevel) {
try {<br/>
doc.replaceItemValue("ApproverLevel", appLevel);<br/>
doc.computeWithForm(true, true);<br/>
doc.save(true, true);<br/>
return true;<br/>
} catch (Exception e) {<br/>
oli.logErrorEx( e, "ApproverLevel Update Failed", OpenLogItem.SEVERITY_HIGH, doc);<br/>
return false;<br/>
}<br/>
}