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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...