Do you know why I am getting this error?
SEVERE: Servlet.service() for servlet [enemr] in context with path [/enemr] threw exception [Request processing failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.github.dandelion.datatables.core.ajax.DatatablesCriterias]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.github.dandelion.datatables.core.ajax.DatatablesCriterias.<init>()] with root cause
java.lang.NoSuchMethodException: com.github.dandelion.datatables.core.ajax.DatatablesCriterias.<init>()
I changed my controller from this
@RequestMapping(value = "/results", method = RequestMethod.GET)
public @ResponseBody DatatablesResponse<Results> findAllForDataTables(HttpServletRequest request) {
DatatablesCriterias dataTableCriterias = DatatablesCriterias.getFromRequest(request);
DataSet<Results> results = this.resultsServiceimpl.findResultsWithDatatablesCriterias(dataTableCriterias);
return DatatablesResponse.build(results, dataTableCriterias);
}
to this:
@RequestMapping(value = "/results", method = RequestMethod.GET)
public @ResponseBody
DatatablesResponse<Results> findAllForDataTables(@DatatablesParams DatatablesCriterias criterias) {
DataSet<Results> results = this.resultsServiceimpl.findResultsWithDatatablesCriterias(criterias);
return DatatablesResponse.build(results, criterias);
}
and suddenly stop working
any help highly appreciated.
I am using spring 3.2 and dandelion datatables 1.1.0