Quando tento alterar um contato através do id, acontece o seguinte erro:
HTTP Status 500 - Servlet execution threw an exception
type Exception report
message Servlet execution threw an exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.Error: Unresolved compilation problem:
The method setId(int) in the type Contato is not applicable for the arguments ()
br.com.cefet.projeto.servlet.AlteraContatoServlet.doPost(AlteraContatoServlet.java:38)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.42 logs.
O id na classe Contato é int, e estou passando como argumento um int. Não consegui achar uma solução. Se alguém puder me dar uma ajuda, agradeço.