1 Reply Latest reply on Jul 7, 2016 12:20 PM by boldt

    ProcessingException: RESTEASY003215

    boldt

      Hello,

       

      I deployed a JAX-RS service on my Wildfly 10, which worked out of the box. Now, I need to call another REST interface within my JAX-RS interface. I do it as follows:


      ClientConfig
      config = new ClientConfig();
      Client client = ClientBuilder.newClient(config);
      Response res = client.target(url
      ).request().post(Entity.entity("DATA", MediaType.TEXT_PLAIN));

       

      Unfortunately, this throws an exception:

       

      17:42:45,962 ERROR [stderr] (default task-1) Caused by: javax.ws.rs.ProcessingException: RESTEASY003215: could not find writer for content-type text/plain type: java.lang.String

       

      Which dependency do I miss?

       

      Dennis

        • 1. Re: ProcessingException: RESTEASY003215
          boldt

          Finally, after one day of debugging: Removing the ClientConfig is the solution!

           

          Client client = ClientBuilder.newClient();
          Response res = client.target(url
          ).request().post(Entity.entity("DATA", MediaType.TEXT_PLAIN));


          Why is the ClientConfig forcing the issue?