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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...