开发者社区> 问答> 正文

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 561 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
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Java Spring Boot开发实战系列课程【第15讲】:Spring Boot 2.0 API与Spring REST Docs实战 立即下载
使用Spring.Initializr定制工程脚手架 立即下载
陈曦:使用Spring.Initializr定制工程脚手架 立即下载