I was getting the same issue.
I upgraded from 11c oracle to 19c and getting the same error. I fixed it by upgrading oracle connector from ojdbc.jar to ojdbc8.jar.
Remember, for 19c oracle, ojdbc8.jar is compatible, using any lower version will cause the error