title: The registered message body readers compatible with the MIME media type are: application/json;charset=UTF-8
body: <p>I'm using Spring Rest API in server side and jersey API in client side.</p>
  
  <p>I'm creating a screen where it will fetch last 5 customer redeem transaction.</p>
  
  <p>From server side i'm returning list of RedeemTransactionDetails and accepting the same in client side.</p>
  
  <blockquote>
    <p>I had debugged server side code it's returns the valid list,
    and in client side response code is 200 ,  whereas while getting
    entity i'm getting error from client side.</p>
  </blockquote>
  
  <p>Server side:</p>
  
  <pre><code>    @RestController
      @RequestMapping("/rest/api")
      public class CustomerRestController {
              @Autowired private CustomerService customerService;
  
              @RequestMapping(value="/redeemTransactionList/{clientId}/{mobileNumber}/{numOfTransaction}" , method=RequestMethod.POST , produces = "application/json; charset=UTF-8")
              public @ResponseBody List&lt;RedeemTransactionDetails&gt; redeemTransaction(@PathVariable(value = "clientId") int clientId, @PathVariable(value = "mobileNumber") String mobileNumber , @PathVariable(value="numOfTransaction") int numOfTransaction) {
              LOG.debug("We are in redeemTransaction method for user {} " , clientId);
              List&lt;RedeemTransactionDetails&gt; redeemList = null ;
              try {
                  redeemList =  customerService.redeemTransactionList(clientId, mobileNumber,numOfTransaction);
  
              } catch (Exception e) {
                  LOG.debug("Excption while fetching redeemTransaction ");
              }
              return  redeemList;
          }
      }
  </code></pre>
  
  <p>Client Side :</p>
  
  <pre><code>public List&lt;RedeemTransactionDetails&gt; getRedeemTransactions(String mobileNumber, String clientId, String numberOfTransaction) {
      log.debug("inside authenticate() ");
      List&lt;RedeemTransactionDetails&gt; result = null; 
      try{
          webResource = client.resource(uri + "/redeemTransactionList").path(clientId).path(mobileNumber).path(numberOfTransaction) ;
          ClientResponse response = webResource.type(MediaType.APPLICATION_JSON).post(ClientResponse.class);
          if (response.getStatus() != 200) {
              log.debug("response.getStatus() : " +  response.getStatus() );  
              throw new RuntimeException("Failed : HTTP error code : " + response.getStatus());
           } 
          response.getType() ;
          result = (List&lt;RedeemTransactionDetails&gt;) response.getEntity(RedeemTransactionDetails.class);
          log.debug("user Details " + result);
      }
      catch(Exception e){
          log.debug(e);
      }
      return result ;
  }
  }
  </code></pre>
  
  <p>NOTE: I had used the following dependencies in pom xml file</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-json&lt;/artifactId&gt;
          &lt;version&gt;1.19.3&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
      &lt;version&gt;2.8.6&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>EDIT: </p>
  
  <p>ERROR LOG</p>
  
  <pre><code>SEVERE: A message body reader for Java class com.prom.via.rest.dto.RedeemTransactionDetails, and Java type class com.prom.via.rest.dto.RedeemTransactionDetails, and MIME media type application/json;charset=UTF-8 was not found
  Feb 23, 2017 4:52:17 PM com.sun.jersey.api.client.ClientResponse getEntity
  SEVERE: The registered message body readers compatible with the MIME media type are:
  */* -&gt;
    com.sun.jersey.core.impl.provider.entity.FormProvider
    com.sun.jersey.core.impl.provider.entity.StringProvider
    com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
    com.sun.jersey.core.impl.provider.entity.FileProvider
    com.sun.jersey.core.impl.provider.entity.InputStreamProvider
    com.sun.jersey.core.impl.provider.entity.DataSourceProvider
    com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
    com.sun.jersey.core.impl.provider.entity.ReaderProvider
    com.sun.jersey.core.impl.provider.entity.DocumentProvider
    com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader
    com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader
    com.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader
    com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
    com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
    com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General
    com.sun.jersey.core.impl.provider.entity.EntityHolderReader
  </code></pre>