请教个windows下无法获取MAIN的问题

2021-08-03 17:26:53.785  INFO 18716 --- [main] com.hongjin.jfinaldb.JfinalDbRunner      : addSqlTemplate fileName:sys/Employee.sql
2021-08-03 17:26:53.786  INFO 18716 --- [main] com.hongjin.jfinaldb.JfinalDbRunner      : addSqlTemplate fileName:sys/PosTimesRecord.sql
2021-08-03 17:26:53.816  INFO 18716 --- [main] com.hongjin.jfinaldb.JfinalDbRunner      : JfinalDbRunner - Start completed. 
2021-08-03 17:27:17.457  INFO 18716 --- [http-nio-3085-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-08-03 17:27:17.458  INFO 18716 --- [http-nio-3085-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2021-08-03 17:27:17.471  INFO 18716 --- [http-nio-3085-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 13 ms
2021-08-03 17:28:33.485 ERROR 18716 --- [http-nio-3085-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException: null
at com.jfinal.plugin.activerecord.Db.getSqlPara(Db.java:675) ~[jfinal-4.3.jar:na]
at com.hongjin.common.kit.SqlParaKit.getSqlPara(SqlParaKit.java:20) ~[hongjin-common-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
at com.hongjin.pcadmin.impl.sys.PosTimesRecordServiceImpl.page(PosTimesRecordServiceImpl.java:47) ~[pcadmin-impl-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at com.hongjin.pcadmin.rest.controller.sys.PosTimesRecordController.page(PosTimesRecordController.java:46) ~[classes!/:0.0.1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_41]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_41]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_41]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_41]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]


程序在MAC下都正常,发布到windows环境下启动也正常,涉及Db的时候空指针,数据库是SqlServer

评论区

杜福忠

2021-08-04 18:27

看不出问题,确定数据库插件启动成功了?

热门反馈

扫码入社