Open markwong-synechron opened 8 years ago
I debug and step through the code and found a number of datatable configurations are null when it get initialized. So I end up adding the default for them in
table.tagx
<c:if test="${empty autoWidth}">
<c:set var="autoWidth" value="true"/>
</c:if>
<c:if test="${empty cdn}">
<c:set var="cdn" value="false"/>
</c:if>
column.tagx
<c:if test="${empty filterable }">
<c:set var="filterable" value="true"/>
</c:if>
and it seems I have worked around the NullPointerException for the time being.
Long story short on how I can identify which config items got a null value. I switched on the tracing in log4.xml
<logger name="com.github.dandelion.datatables.core.configuration.Configuration">
<level value="trace"/>
</logger>
Then I can see FEATURE_AUTOWIDTH and MAIN_CDN has value null in the configuration (confirm by stepping through eclipse after attaching the source in the Maven repo) and similarly the "COLUMN_FILTERABLE".
What I really don't get is why this issue doesn't surface in tomcat 6 or 7 but only 8. Does that have something to do with JSP standard changed in the tomcat version???
My project using GvNix 1.5.1 RC4 has been running fine in Tomcat 6 and Tomcat 7.
However, when I run it in Tomcat 8.0.36 (and the one provided embedded in JBoss JWS) when I load the List page with datatables I got the following error:
My client have been pushing me for upgrading to Tomcat 8. I have found similar issue has been reported in http://stackoverflow.com/questions/27583271/nullpointerexception-at-com-github-dandelion-datatables-core-configuration-confi
I would like to know is where I can pull the code for dandelion and attempt to perform a version upgrade myself. (Happy to contribute if I end up able to do it.)