0 Replies Latest reply on Nov 21, 2016 3:20 PM by oicfar

    ERROR: "No message body writer has been found for response class ArrayList"

    oicfar

      Hi,

       

      I have own rest api call. But I can't give an ArrayList als result:

       

      // get all subscriptions
      List<SubscriptionData> subscriptionDataList = getSubscriptionDataList(user);

       

      return Response.ok(subscriptionDataList).build();

       

      I get this:

       

      WARN org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor - No message body writer has been found for response class ArrayList.

       

      error.

       

      How can I return the ArrayList?

       

       

      Regards,

      Rafal