Re: com.mysql.jdbc.UpdatableResultSet.updateBlob gives AbstractMethodError



pjvleeuwen@xxxxxxxxx wrote:
[SNIP]
### stderr output ###
Exception in thread "main" java.lang.AbstractMethodError:
com.mysql.jdbc.UpdatableResultSet.updateBlob(Ljava/lang/String;Ljava/
io/InputStream;)V
at nl.vanleeuwenwilmot.housing.search.woonnet.app.Test.main(Test.java:
52)
######
[SNIP]

The Java API documentation for java.lang.AbstractMethodError explains:

public class AbstractMethodError
extends IncompatibleClassChangeError

Thrown when an application tries to call an abstract method. Normally,
this error is caught by the compiler; this error can only occur at run
time if the definition of some class has incompatibly changed since
the currently executing method was last compiled.

This can happen if you have two versions of the Connector/J JAR file, and you are using the newer one when compiling your code but an older version when running it. Check your compile-time and run-time classpaths to ensure that they both reference the newer version of the JAR file.

David Harper
Cambridge, England
.