Kevin, I opened JIRA OPENJPA-743 (https://issues.apache.org/jira/browse/OPENJPA-743) for the issue you discovered where an OptimisticLockException is thrown when the Lob field was not being set. Apparently, when statement batching is enabled, Oracle does not like the mix of parameter types/values OpenJPA provides for null vs. non-null Lob fields. I'll look into the issue and hope to resolve it soon. Until a fix is available, if you need to store null values in a Lob field you may need to disable statement batching. The JIRA has details for disabling statement batching.
-Jeremy
