I getting below error while trying to call con.createArrayOf method on Microsoft SQL server with datasource pool connection

Uncaught Throwable
java.lang.AbstractMethodError: org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.createArrayOf(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array;

Any lead would be appreciable.