users@jersey.java.net

Message Body Error

From: emile <shrrrine_at_gmail.com>
Date: Tue, 6 Apr 2010 06:01:31 -0800 (PST)

Hi,

I am using a method in my resource as follows -

        @POST
        @Consumes(MediaType.MULTIPART_FORM_DATA)
        @Produces(MediaType.APPLICATION_JSON)
        public Response createDocument(Objects objDoc)
        {
          ....
        }

and following is the curl command being used-
curl --header "auth: dmadmin:cGFzc3dvcmQ=" -F "files=_at_doc.xml"
"http://localhost:8076/dsi/rest/repositories/DEVDOC/documents.xml"

I am facing the following error -

SEVERE: A message body reader for Java type, class
com.dsi.ecm.rest.beans.Objects, and MIME media type,
multipart/form-data;boundary=----------------------------73505f6573a3, was
not found

TIA,
Emile


-- 
View this message in context: http://n2.nabble.com/Message-Body-Error-tp4859126p4859126.html
Sent from the Jersey mailing list archive at Nabble.com.