java.lang.AbstractMethodError: com.mysql.jdbc.PreparedStatement.setBlob(ILjava/io/InputStream;)V <p>I'm trying to set a BLOB in MySQL DB as below:</p> <pre><code>PreparedStatement ps=con.prepareStatement("insert into image values(?,?,?,?,?)"); ps.setString(1,firstname); ps.setString(2,lastname); ps.setString(3,address); ps.setString(4,phone); if(is!=null) { ps.setBlob(5,is); } int i=ps.executeUpdate(); </code></pre> <p>The line <code>ps.setBlob(5,is)</code> throws the below exception:</p> <blockquote> <p>java.lang.AbstractMethodError: com.mysql.jdbc.PreparedStatement.setBlob(ILjava/io/InputStream;)V</p> </blockquote> <p>How it this caused and how can I solve it?</p>