Spring MVC + Dandelion Datables异常启动过滤器dandelionFilter

时间:2015-07-20 17:41:01

标签: spring-mvc datatables dandelion

在我的Spring MVC应用程序中,我使用了Dandelion Datatables 0.10.1,由于一些性能问题,我决定按照官方迁移指南将版本升级到1.0.1:

http://dandelion.github.io/components/datatables/1.0.0/docs/from-0.10.x-to-1.x.html

我已经包含了所有必需的Maven依赖项,相应地配置了web.xml以使用Servlet 3.0版本但是当我尝试运行appplication时,我在dandelionFilter加载期间遇到以下异常。任何帮助表示赞赏。

Jul 20, 2015 7:23:08 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter dandelionFilter
java.lang.NoSuchFieldError: STRICT_DUPLICATE_DETECTION
    at com.github.dandelion.core.web.handler.debug.AbstractDebugPage.<clinit>(AbstractDebugPage.java:71)
    at com.github.dandelion.core.web.handler.debug.StandardDebugMenu.getPages(StandardDebugMenu.java:45)
    at com.github.dandelion.core.Context.initDebugMenus(Context.java:574)
    at com.github.dandelion.core.Context.init(Context.java:156)
    at com.github.dandelion.core.Context.<init>(Context.java:127)
    at com.github.dandelion.core.web.DandelionFilter.init(DandelionFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
    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.run(FutureTask.java:262)
    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:745)

1 个答案:

答案 0 :(得分:2)

Jackson-Core 2.3中添加了严格的重复检测功能。见http://fasterxml.github.io/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.Feature.html#STRICT_DUPLICATE_DETECTION

如果可能,您应该将此依赖关系更新为v2.3.x minimum。