NutzCN Logo
问答 想问一下这个警告是什么问题?是数据库版本和驱动不兼容吗?
发布于 2216天前 作者 qq_722cb381 1785 次浏览 复制 上一个帖子 下一个帖子
标签:

想问一下这个警告是什么问题?是数据库版本和驱动不兼容吗?

10-29 15:02:43.930  WARN  - [MySqlValidConnectionChecker.http-apr-8080-exec-3] Cannot resolve com.my
sq.jdbc.Connection.ping method.  Will use 'SELECT 1' instead.
java.lang.NullPointerException
        at com.alibaba.druid.pool.vendor.MySqlValidConnectionChecker.<init>(MySqlValidConnectionChec
ker.java:50)
        at com.alibaba.druid.pool.DruidDataSource.initValidConnectionChecker(DruidDataSource.java:89
2)
        at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:608)
        at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:934)
        at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:930)
        at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:102)
        at org.nutz.trans.Trans.getConnectionAuto(Trans.java:263)
        at org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:101)
        at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:162)
        at org.nutz.dao.impl.NutDao.<init>(NutDao.java:110)
        at org.nutz.dao.impl.NutDao.<init>(NutDao.java:114)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
pl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
        at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67)
        at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:112)
        at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:196)
        at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
        at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
        at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
        at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:132)
        at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:196)
        at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:221)
        at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:106)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttribu
tesProcessor.java:15)
        at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40)
        at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
        at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
        at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:183)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:108
2)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav
a:623)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:744)
10-29 15:02:44.243  INFO  - [DruidDataSource.http-apr-8080-exec-3] {dataSource-1} inited
1 回复

druid与mysql驱动版本之间的问题

添加回复
请先登陆
回到顶部