[jboss-user] [JBossWS] - Could not find MessageBodyWriter for class java.util.List an

jej2003 do-not-reply at jboss.com
Fri Feb 27 15:51:33 EST 2009


Has anyone had any experience with getting the java.util.List multipart support working as described at http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-resteasy/ ?

When running the Client Framework I get the following:

Exception in thread "main" java.lang.RuntimeException: Could not find MessageBodyWriter for class java.util.List and mediaType multipart/mixed
  | 	at org.jboss.resteasy.client.core.MessageBodyParameterMarshaller.getMessageBodyWriter(MessageBodyParameterMarshaller.java:59)
  | 	at org.jboss.resteasy.client.core.MessageBodyParameterMarshaller.buildRequest(MessageBodyParameterMarshaller.java:48)
  | 	at org.jboss.resteasy.client.core.WebRequestIntializer.setHeadersAndRequestBody(WebRequestIntializer.java:43)
  | 	at org.jboss.resteasy.client.core.ClientInvoker.initBaseMethod(ClientInvoker.java:107)
  | 	at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:67)
  | 	at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:47)

I see the provider being loaded (or at least what I would assume is the provider) 


  | ...
  | 78 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.providers.multipart.ListMultipartReader
  | 78 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataReader
  | 78 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.providers.multipart.MapMultipartFormDataReader
  | 94 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.MultipartWriter
  | 94 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.MultipartFormDataWriter
  | 94 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.ListMultipartWriter
  | ...
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213863#4213863

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213863



More information about the jboss-user mailing list