[Jersey] Re: Message Body Writer

From: Pavel Bucek <>
Date: Wed, 13 Apr 2011 11:22:31 +0200

Can you share method declaration and optionally client code (or the way
how you are trying to invoke it)? Or whole resource..

BTW, you can check out our samples, we have covered there most of common
usecases, so it is probably you'll find there good starting point for
your application, see [1].

And BTW2, I recommend checking jersey user guide too: [2], especially
part called "Extracting request parameters" [3].



On 4/13/11 11:03 AM, Rimy Sfm wrote:
> I'm fairly new to restful web services restful and jersey. Within my web
> service I have a method that takes 2integers as parameters and I'm getting
> this error:
> GRAVE: Mapped exception to response: 500 (Internal Server Error)
> com.sun.jersey.api.MessageException: A
> message body writer for Java class java.lang.Integer, and Java type class
> java.lang.Integer, and MIME media type application/octet-stream was not
> found
> Can anyone tell me what to do??
> Thanks
> --
> View this message in context:
> Sent from the Jersey mailing list archive at