There are ton of this question, and none of them has answer... When I call this method, the error popup in my console and the return is success. Whats the reason to cause this?
Using grails 3.1.8
Ambiguous method overloading for method grails.artefact.controller.support.ResponseRenderer$Trait$Helper#render.
Cannot resolve which method to invoke for [class com.union.KardexEntradaController, null] due to overlapping prototypes between: [interface grails.artefact.controller.support.ResponseRenderer, interface java.lang.CharSequence] [interface grails.artefact.controller.support.ResponseRenderer, interface java.util.Map] [interface grails.artefact.controller.support.ResponseRenderer, interface org.grails.web.converters.Converter]
def getKardexs(){
def kardexs = Kardex.createCriteria().list{
filial{
eq('id', params.long('filial'))
}
produto {
eq('categoriaKardex', CategoriaKardex.get(params.long('categoriaKardex')))
eq('ativo', true)
order('nome', 'asc')
}
}.collect{
[id: it.id, nome: it.produto.nome]
}
render ((kardexs ? kardexs : null) as JSON)
}