When I tried to upgrade my Oracle JDBC driver from ojdbc8 19.6.0.0
to ojdbc11 21.6.0.0.1
I started to receive the following exception when trying to do a batch insert with ids being generated in the database:
java.lang.AssertionError: autoKeyInfo is not initialized
I created a reproducer for this.
How can I resolve this problem?
CodePudding user response:
This seems to be a bug in the later versions of the Oracle JDBC drivers. They have the findings in the issue tracker, but I have nothing to link to since it is not public.
The recommended workaround is to use the LTS driver version, which is ojdbc 19.15.0.0.1