This content has been marked as final. Show 4 replies
I should have mentioned that this example uses "standard update batching", as described in the "Oracle® Database JDBC Developer's Guide and Reference". I get the same error when using "oracle update batching". In that case the error is postponed until the number executeUpdate() calls meets the "batch value", i.e. triggers the sending of the batch.
I've just downloaded ojdbc6.jar, and rerun my test using
version 184.108.40.206.0-Production of the driver. The behavior
is the same:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 22
You should directly specify how big your batching is. For that reason you may use ExecutionContext where you can set setBatchingLimit(int) and setBatching(bool). This operation will tell execution context the size of supposed batching and also should be batching performed at all or not. You can add batching jobs but you can not execute the jobs without proper initialization of batching job size - it will fail with out of bounds.