java.lang.AbstractMethodError: com.mysql.jdbc.PreparedStatement.setBlob(ILjava/io/InputStream;)V [duplicate]

老子叫甜甜 提交于 2019-11-28 02:14:20

You should use mysql-connector-java-5.1.7-bin.jar to make this work.

ug_

As stated by giorgiga in this post its your JDBC driver's version. Either update it or use the older version of setBlob.

Edit: Taken from giorgiga's answer just in case link dies.

AbstractMethodError means your JDBC driver's PreparedStatements don't implement setBlob(int, InputStream, long).

Use the older setBlob(int, Blob) or update your driver (Connector/J 5.1 implements Jdbc 4.0, which should be what you need for setBlob(int, InputStream, long))

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!