Oct 10, 2009 5:08:59 PM org.apache.cxf.jaxrs.utils.JAXRSUtils
readFromMessageBody
WARNING: .No message body reader found for request class : Gazetteer,
ContentType :
multipart/form-data;boundary=hxz8idwzzxgwwr7p0v1vregmn2wxnajqg0f_bxk6.
Oct 10, 2009 5:08:59 PM
org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
WARNING: WebApplicationException has been caught : no cause is available

And my function is:

    @POST
    @Path("/gazetteer/new")
    @Consumes("multipart/form-data")
    public Response addGazetteer(@Multipart(type = "application/json")
Gazetteer gazetteer) {
        try {
            configDb.addGazetteer(gazetteer);
        } catch (Exception e) {
            return Response.status(500).build();
        }
        return Response.ok().build();
    }

The client sends a multipart form posting with JSON in the one and only
part, and I expect it to get mapped. What am I missing?

Reply via email to