“Service directory is not valid” Error + Oracle JCA Adapter

If you are facing this “Service directory is not valid” error in Oracle BPM 12c while creating a new or updating an existing adapter, this may be due to absolute file path containing space in it.

Remove the space, Restart Jdev and you are good to go.