users@jersey.java.net

Re: [Jersey] Help - Providing multipart/mixed as request from SOAPUI Tool

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Tue, 7 Sep 2010 14:07:26 +0200

Hi,

The error is indicates that the client is not sending a boundary
parameter with the media type.

What version of Jersey are you using?

Can you enable server-side logging and send the output (including the
server-side stack trace) and then we can determine if there is a
client error:

      <init-param>
          <param-
name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
          <param-
value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
      </init-param>

Paul.

On Sep 7, 2010, at 1:51 PM, Vedavalli Radhika wrote:

> I am trying to test my RESTful webservice method using SOAP-UI Tool.
> The service method uses multipart/mixed mime-type as request.
> I am unable to send a multipart/mixed request to the service using
> the tool.
>
> For the following request,
>
> --Boundary_1_27742346_1283484587534
> Content-Type: application/xhtml+xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <HTML xmlns:iBubble="http://ntr.lxnx.org">
> <META http-equiv="Content-Type" content="text/html;
> charset=UTF-8">
> ..............
> </META>
> <BODY>
> <doc iTag="test1">RYAN MICHAELS, an
> Individual, Plaintiff, vs. NANCY ZOSS, an Individual; and DOES 1
> through 100, inclusive, Defendants ............
> ...............
> .................
> ahead<br/>and do<br/>it.<br/><br/></span></doc>
> </BODY>
> </HTML>
>
> --Boundary_1_27742346_1283484587534
> Content-Type: text/plain
>
> Add_document.xml
> --Boundary_1_27742346_1283484587534
> Content-Type: text/plain
>
> Sudheer
> --Boundary_1_27742346_1283484587534
> Content-Type: application/xml
>
> <annotationList><annotation id="0b0e8631-
> a9ad-4045-8ddc-3841ec1058e1" startItag="test1"
> endItag="test1"><beginIndex>137</beginIndex><endIndex>172</
> endIndex></annotation></annotationList>
> --Boundary_1_27742346_1283484587534--
>
>
> Below is the Response received:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?
> ><error><date>2010-09-07T15:43:30.552+05:00</date><responseCode>500
> Internal Server Error</
> responseCode><name>javax.ws.rs.WebApplicationException:
> org.jvnet.mimepull.MIMEParsingException: Missing start boundary</
> name
> >
> <
> code
> >
> SysmanDefault:JAXRS:com
> .sun.jersey.multipart.impl.MultiPartReader.readFrom#203</code></error>
>
> Request your inputs on this issue.
>