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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...