cancel
Showing results for 
Search instead for 
Did you mean: 

JAX-RS File Upload Service

sk90_
Champ in-the-making
Champ in-the-making

Hi,

I'm trying to create a JAX-RS service to hand file uploads. I'm using the code from http://puspendu.wordpress.com/2012/08/23/restful-webservice-file-upload-with-jersey/.

However, when I upload a file, I get the following error:

A message body reader for Java class com.sun.jersey.core.header.FormDataContentDisposition, and Java type class com.sun.jersey.core.header.FormDataContentDisposition, and MIME media type multipart/form-data; boundary=----WebKitFormBoundary07ilrug6EWQ3NpB2 was not found. The registered message body readers compatible with the MIME media type are: / -> com.sun.jersey.core.impl.provider.entity.FormProvider com.sun.jersey.core.impl.provider.entity.MimeMultipartProvider com.sun.jersey.core.impl.provider.entity.StringProvider ....

What can be the issue here? The JAR containing those classes are in the SDK.

Thanks

1 REPLY 1

sk90_
Champ in-the-making
Champ in-the-making

I managed to fix this. It was because the jersey-multipart.jar wasn't the same version as the other jersey jars that are in the nxserver/lib folder.

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.