I got a error called java.lang.AbstractMethodError: com.mysql.jdbc.Connection.isValid(I)Z
when I connected IDEA with mysql database.
I think my configuration is correct as below.In addition, the test is successful.
The configuration pic
And then the something stranger happened. I cannot get the any schemes from my database on the database tool window,but I can get them with Navicat. When I type SELECT * FROM message
into console, that error appeared as below.
[2017-03-29 17:51:28] java.lang.AbstractMethodError: com.mysql.jdbc.Connection.isValid(I)Z
[2017-03-29 17:51:28] at com.intellij.database.remote.jdbc.impl.RemoteConnectionImpl.isValid(RemoteConnectionImpl.java:108)
[2017-03-29 17:51:28] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2017-03-29 17:51:28] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2017-03-29 17:51:28] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2017-03-29 17:51:28] at java.lang.reflect.Method.invoke(Method.java:497)
[2017-03-29 17:51:28] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
[2017-03-29 17:51:28] at sun.rmi.transport.Transport$1.run(Transport.java:200)
[2017-03-29 17:51:28] at sun.rmi.transport.Transport$1.run(Transport.java:197)
[2017-03-29 17:51:28] at java.security.AccessController.doPrivileged(Native Method)
[2017-03-29 17:51:28] at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
[2017-03-29 17:51:28] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
[2017-03-29 17:51:28] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
[2017-03-29 17:51:28] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$256(TCPTransport.java:683)
[2017-03-29 17:51:28] at java.security.AccessController.doPrivileged(Native Method)
[2017-03-29 17:51:28] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
[2017-03-29 17:51:28] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[2017-03-29 17:51:28] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[2017-03-29 17:51:28] at java.lang.Thread.run(Thread.java:745)
I search Internet for this question via google, then I upgrade mysql driver to even ver.5.1.40.But it doesn't work as well. The driver pic
So, How to deal with this error? It stuck me two days. Thanks in advance.