Why do I get java.lang.AbstractMethodError: oracle.jdbc.driver.OracleConnection error?

前端 未结 2 805
抹茶落季
抹茶落季 2020-12-10 17:47

I already read Why do I get java.lang.AbstractMethodError when trying to load a blob in the db?, downloaded all of the 11g jdbc drivers I could find, and added them as libr

相关标签:
2条回答
  • 2020-12-10 18:16

    As others have said this is due to an older Oracle JDBC driver.

    In my case replacing ojdbc14.jar (Oracle JDBC driver 10.1.0.5.0) with ojdbc16.jar (Oracle JDBC driver 11.2.0.4.0) fixed the problem.

    0 讨论(0)
  • 2020-12-10 18:18

    The cause of the problem is incompatible software (jar files).

    createBlob is a new method (introduced in java 1.6), so older drivers are very unlikely to implement it.

    Make sure your classpath only contains compatible drivers, and not any earlier versions of the drivers. (Thanks Jochen)

    0 讨论(0)
提交回复
热议问题