When I try to execute a PUT against http://localhost:8080/users/{id} I get:

WARNING: WebApplicationException has been caught : Unrecognized field
"id" (Class com.ws.dto.UserDto), not marked as ignorable
 at [Source: org.apache.cxf.transport.http.AbstractHTTPDestination$1@1e0969b;
line: 1, column: 8] (through reference chain:
com.ws.dto.UserDto["id"])

Does anyone know what the problem is and how to resolve it?

Below is the relevant class:

@PUT
@Path("/{id}")
@Consumes("application/json")
@Transactional
public Response update(@PathParam("id") Long id, UserDto userDto) {
...
}

Thanks.

-Ari

Reply via email to