Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-191

Custom endpoint throws exception on Mgnl 5.7.1/JDK9

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 2.1.1
    • services
    • None
    • Magnolia 5.7.1 Java 9.0.1

    Description

      Using a custom rest endpoint (extending info.magnolia.rest.AbstractEndpoint) throws the following exception:

      org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type: java.util.ArrayList of media type: application/xml;charset=UTF-8
      ...
              at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) [resteasy-jaxrs-3.5.1.Final.jar:3.5.1.Final]
      	at info.magnolia.rest.tools.SwaggerRestDispatcherServlet.service(SwaggerRestDispatcherServlet.java:141) [magnolia-rest-tools-2.1.1.jar:?]

       

      It used to work fine on magnolia-5.6.x/rest-services-2.1/Java8.

      I also tried the latest rest client jars (3.6.1.Final) and throws the same exception.

      Git of testing module: https://git.magnolia-cms.com/users/ebguilbert/repos/tours-rest-angular-demo/browse

      test request: /.rest/tours/v1?category=active&featured=false

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                ebguilbert Edwin Guilbert
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Bug DoR
                    Task DoD