Deployment Architecture

connect db mysql illegal use of nonvirtual function call

New Member

Hi, I did a clean install splunk,splunk DB connect 1.0.8 and I manage to get this strange error while fetching the database names(mysql).

" ERROR java.sql.SQLException: java.lang.VerifyError: (class: com/mysql/jdbc/DatabaseMetaData, method: supportsRefCursors signature: ()Z) Illegal use of nonvirtual function call "

Did noticed that mysql updated the mysql-connector-java-5.1.22-bin.jar to mysql-connector-java-5.1.23-bin.jar.

Tried both of them but still getting the error.

Hope anyone can help me with this or is it possible to get the 1.0.7 binaries and install them?

0 Karma


Seems like it's the problem with default methods in java 8 builds.
java.sql.DatabaseMetaData in java 8 (new as jdbc 4.2) has new method defined:

default boolean supportsRefCursors() throws SQLException {
    return false;

while mysql driver is compiled against previous version of jdbc where this method does not exist.

Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!