druid 空指针异常

rxztt3cl  于 4个月前  发布在  Druid
关注(0)|答案(5)|浏览(106)

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)

sd2nnvve

sd2nnvve1#

只有这么多信息了,某一个特定的实例有这个问题,别的实例就没这个问题

yptwkmov

yptwkmov3#

换其他版本的 mysql 驱动,会有其他的问题
可能是这个程序实例或数据库实例有啥特殊的
但不管咋说 NullPointerException 总是值得处理掉的

2q5ifsrm

2q5ifsrm4#

druid什么版本?

vjhs03f7

vjhs03f75#

我也遇到这个问题。定位发现是因为druid配置的initialSize的值大于maxActive的值导致的。

相关问题