部署到tomcat会出现这个问题,大佬们,请求援助

7-Oct-2020 17:26:02.711 严重org.apache.catalina.core.StandardContext.filterStart Exception starting filter [jfinal]

 java.lang.NullPointerException

at com.jfinal.plugin.druid.DruidPlugin.autoCheckValidationQuery(DruidPlugin.java:123)

at com.jfinal.plugin.druid.DruidPlugin.<init>(DruidPlugin.java:95)

at com.uuerp.common.APPConfig.createDruidPlugin(APPConfig.java:173)

at com.uuerp.common.APPConfig.configPlugin(APPConfig.java:145)

at com.jfinal.core.Config.configJFinal(Config.java:53)

at com.jfinal.core.JFinal.init(JFinal.java:63)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)

at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4591)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

     检查数据库配置,没有错。请求大佬们援助。

评论区

JackLife

2020-10-27 18:21

找到问题了

doubuxingle

2020-10-27 18:21

at com.uuerp.common.APPConfig.configPlugin(APPConfig.java:145) 这个方法贴出来。

热门反馈

扫码入社