java: Upload file: A message body writer for Java type, class com.sun.jersey.multipart.FormDataMultiPart, and MIME media type, multipart/form-data; boundary=AaB03x, was not found
Hi,
I have a problem with the file upload through the java api (see stacktrace below, api-0.7.4, java 7).
Appearently this only occurs in specific environments - not sure if this is due to the fact that the java api uses a old jersey version? Any hint welcome!
Thanks in advance, Daniel
Stacktrace:
Exception in thread "pool-1-thread-1" com.podio.APITransportException: com.sun.j
ersey.api.client.ClientHandlerException: A message body writer for Java type, cl
ass com.sun.jersey.multipart.FormDataMultiPart, and MIME media type, multipart/f
orm-data; boundary=AaB03x, was not found
at com.podio.ExceptionFilter.handle(ExceptionFilter.java:36)
at com.sun.jersey.api.client.Client.handle(Client.java:648)
at com.podio.LoginFilter.handle(LoginFilter.java:28)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:5
53)
at com.podio.file.FileAPI.uploadFile(FileAPI.java:71)
-
I figured out a fix - not sure how clean and nice it is:
Please sign in to leave a comment.
Comments
3 comments