java.lang.NullPointerException
at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1386)
at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1223)
at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4619)
at com.alibaba.druid.filter.FilterAdapter.dataSource_getConnection(FilterAdapter.java:2745)
at com.alibaba.druid.filter.FilterAdapter$$FastClassBySpringCGLIB$$57d94f6c.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:644)
5条答案
按热度按时间sd2nnvve1#
只有这么多信息了,某一个特定的实例有这个问题,别的实例就没这个问题
ufj5ltwl2#
mysql 驱动 5.1.18
yptwkmov3#
换其他版本的 mysql 驱动,会有其他的问题
可能是这个程序实例或数据库实例有啥特殊的
但不管咋说 NullPointerException 总是值得处理掉的
2q5ifsrm4#
druid什么版本?
vjhs03f75#
我也遇到这个问题。定位发现是因为druid配置的initialSize的值大于maxActive的值导致的。