Boa noite, estou tendo problemas para gerar um Json no Vraptor4, conforme método abaixo.
Meu Método:
@Get("/listaespera/json")
public void json() {
List<ListaEspera> listaEspera = dao.listAll(ListaEspera.class);
result.use(Results.json()).withoutRoot().from(listaEspera).serialize();
}
Está gerando a seguinte exception:
14:10:14,345 ERROR [io.undertow.request] (default task-54) UT005023: Exception handling request to /instituto-abc/listaespera/json: br.com.caelum.vraptor.InterceptionException: org.jboss.weld.exceptions.IllegalArgumentException: WELD-001456: Argument bean must not be null
Se alguém puder ajudar desde já agradeço.