[Jersey] Message Body Writer

From: Rimy Sfm <>
Date: Wed, 13 Apr 2011 02:03:25 -0700 (PDT)

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

Can anyone tell me what to do??


View this message in context:
Sent from the Jersey mailing list archive at