Message Oracle ORA-48130 - invalid lock parameters for get file lock [string]

ERRORinvalid lock parameters for get file lock [string]
CAUSEInvalid lock parameters passed in for the get file lock routine. The user must pass in file as the lock type. Or, there is a lock mode mismatch. Exclusive locks are not allowed in read-only mode, and shared locks are not allowed in write-only mode.
ACTIONCheck that correct lock type is specified and that the correct lock mode is requested for the file given its open flags.