@Dead_knight 你好,刚接触这个snaker,在整合JFinal的时候,启动TomCat报错,依赖包和core包都引入了,具体报错信息见如下:
SEVERE: Exception starting filter jfinal
java.lang.RuntimeException: Plugin start error: main.java.org.snaker.jfinal.plugin.SnakerPlugin.
[Assertion failed] - this argument is required; it must not be null
at com.jfinal.core.Config.startPlugins(Config.java:96)
at com.jfinal.core.Config.configJFinal(Config.java:48)
at com.jfinal.core.JFinal.init(JFinal.java:65)
at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
at org.snaker.engine.helper.AssertHelper.notNull(AssertHelper.java:68)
at org.snaker.engine.helper.AssertHelper.notNull(AssertHelper.java:77)
at org.snaker.engine.core.SnakerEngineImpl.configure(SnakerEngineImpl.java:96)
at org.snaker.engine.cfg.Configuration.buildSnakerEngine(Configuration.java:109)
at main.java.org.snaker.jfinal.plugin.SnakerPlugin.start(SnakerPlugin.java:80)
at com.jfinal.core.Config.startPlugins(Config.java:87)
... 16 more
我加入snaker源码进行调试时,报错处为:engine = config.buildSnakerEngine();
请问这个是什么原因。非常感谢
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。