Deployment Architecture

connect db mysql illegal use of nonvirtual function call

nitb
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

satyr
Engager

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.

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...