开发者社区> 问答> 正文

JFinal整合snaker时插件启动报错。?报错

@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();

请问这个是什么原因。非常感谢

展开
收起
爱吃鱼的程序员 2020-06-12 10:41:00 568 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
    //流程引擎的插件SnakerPluginsnakerPlugin=newSnakerPlugin(c3p0Plugin,properties);me.add(snakerPlugin);




    没有snaker.xml或没配xml文件
    2020-06-12 10:41:16
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关实验场景

更多