Application fails with exceptions after upgrading to Oracle 12c