Spring MVC + Dandelion Datables Exception starting filter dandelionFilter

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Spring MVC + Dandelion Datables Exception starting filter dandelionFilter

Mare Bohuncak
Hi,

as I have some performance troubles with the 0.10.1 version the production server. Taking minutes to get the server response containing a datatable for the first page load. I have decided to upgrade the version to 1.0.1 following the migration guide from

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

I have included all the required Maven dependencies, configured the web.xml accordingly to use also the Servlet 3.0 version but when I try to run the appplication I get the following exception during the dandelionFilter loading. Any help is appreciated.

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)

I'm using Spring framework 3.2.1 with Thymeleaf and the default theme for the datables
Here is also the link for the related StackOverflow that I have opened also
http://stackoverflow.com/questions/31522957/spring-mvc-dandelion-datables-exception-starting-filter-dandelionfilter
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Spring MVC + Dandelion Datables Exception starting filter dandelionFilter

Thibault Duchateau
Administrator
Hi,

It looks like a conflict issue with the Jackson dependency.
Could you please post the result of a mvn dependency:tree (or equivalent with Gradle)?

Moreover, please avoid double posts.

Regards,
Thibault.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Spring MVC + Dandelion Datables Exception starting filter dandelionFilter

Mare Bohuncak
Thx for the quick response Thibault,

here is the dependency tree result:

[INFO] +- org.springframework:spring-context-support:jar:3.2.1.RELEASE:compile
[INFO] |  \- org.springframework:spring-core:jar:3.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:3.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-web:jar:3.2.1.RELEASE:compile
[INFO] |  +- org.springframework:spring-aop:jar:3.2.1.RELEASE:compile
[INFO] |  \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework.data:spring-data-jpa:jar:1.4.1.RELEASE:compile
[INFO] |  +- org.springframework.data:spring-data-commons:jar:1.6.1.RELEASE:compile
[INFO] |  +- org.springframework:spring-tx:jar:3.1.4.RELEASE:compile
[INFO] |  \- org.aspectj:aspectjrt:jar:1.7.2:compile
[INFO] +- org.springframework:spring-webmvc:jar:3.2.1.RELEASE:compile
[INFO] |  \- org.springframework:spring-expression:jar:3.2.1.RELEASE:compile
[INFO] +- net.sf.supercsv:super-csv:jar:2.1.0:compile
[INFO] +- org.springframework:spring-context:jar:3.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-orm:jar:3.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-test:jar:3.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-jdbc:jar:3.2.1.RELEASE:compile
[INFO] +- net.sourceforge.javacsv:javacsv:jar:2.0:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.2.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.2.1:compile
[INFO] |  \- com.fasterxml.jackson.core:jackson-annotations:jar:2.2.1:compile
[INFO] +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.0.1:compile
[INFO] +- org.hibernate:hibernate-core:jar:4.2.4.Final:compile
[INFO] |  +- antlr:antlr:jar:2.7.7:compile
[INFO] |  +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:compile
[INFO] |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.1.Final:compile
[INFO] |  +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
[INFO] |  +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.2.Final:compile
[INFO] |  \- org.javassist:javassist:jar:3.15.0-GA:compile
[INFO] +- org.hibernate:hibernate-validator:jar:4.3.1.Final:compile
[INFO] |  \- javax.validation:validation-api:jar:1.0.0.GA:compile
[INFO] +- org.hibernate:hibernate-entitymanager:jar:4.2.6.Final:compile
[INFO] +- junit:junit:jar:4.8.2:compile
[INFO] +- org.apache.axis:axis:jar:1.4:compile
[INFO] +- javax.xml:jaxrpc-api:jar:1.1:compile
[INFO] +- javax.mail:mail:jar:1.4.7:compile
[INFO] |  \- javax.activation:activation:jar:1.1:compile
[INFO] +- mysql:mysql-connector-java:jar:5.1.36:compile
[INFO] +- javax.servlet:jstl:jar:1.2:compile
[INFO] +- org.thymeleaf:thymeleaf-spring3:jar:2.0.17:compile
[INFO] |  \- org.thymeleaf:thymeleaf:jar:2.0.17:compile
[INFO] |     \- ognl:ognl:jar:3.0.6:compile
[INFO] +- org.webjars:bootstrap:jar:2.3.2:compile
[INFO] +- org.webjars:jquery:jar:1.10.2:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.6.6:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.6.6:runtime
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.6:runtime
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.0-alpha4:compile
[INFO] |  +- org.apache.httpcomponents:httpcore:jar:4.0-beta1:compile
[INFO] |  +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] |  \- commons-codec:commons-codec:jar:1.3:compile
[INFO] +- commons-net:commons-net:jar:3.3:compile
[INFO] +- jaxen:jaxen:jar:1.1.4:compile
[INFO] +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |  \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] +- com.github.dandelion:datatables-thymeleaf:jar:1.0.1:compile
[INFO] |  +- com.github.dandelion:datatables-core:jar:1.0.1:compile
[INFO] |  |  +- com.github.dandelion:dandelion-core:jar:1.0.1:compile
[INFO] |  |  |  \- commons-io:commons-io:jar:2.4:compile
[INFO] |  |  +- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] |  |  \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] |  \- com.github.dandelion:dandelion-thymeleaf:jar:1.0.1:compile
[INFO] +- com.github.dandelion:datatables-spring3:jar:1.0.1:compile
[INFO] +- log4j:log4j:jar:1.2.15:runtime
[INFO] +- org.springframework.security:spring-security-web:jar:3.2.7.RELEASE:compile
[INFO] |  \- org.springframework.security:spring-security-core:jar:3.2.7.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-config:jar:3.2.7.RELEASE:compile
[INFO] \- org.thymeleaf.extras:thymeleaf-extras-springsecurity3:jar:2.0.1:compile
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Spring MVC + Dandelion Datables Exception starting filter dandelionFilter

Thibault Duchateau
Administrator
Yep, Maven issue.
The strict duplication detection feature was added in Jackson-Core 2.3.

Have you the possibility to upgrade jackson-core to v2.3.x min?

Regards,
Thibault.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Spring MVC + Dandelion Datables Exception starting filter dandelionFilter

Mare Bohuncak
You made my day, jackson-core update solved the issue.

Afterwards I got the following issue with Thymeleaf java.lang.ClassNotFoundException: org.thymeleaf.standard.expression.IStandardExpression
Update of thymeleaf-spring3 to version 2.1.2.RELEASE solved it and the datables are working now like a charm.

Thx a lot for your help.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Spring MVC + Dandelion Datables Exception starting filter dandelionFilter

Thibault Duchateau
Administrator
Great. You're welcome.
I've just answered the SO question as well.

Regards,
Thibault.
Loading...