[MGNLREST-191] Custom endpoint throws exception on Mgnl 5.7.1/JDK9 Created: 20/Sep/18 Updated: 12/Apr/21 |
|
| Status: | Open |
| Project: | Magnolia REST Framework |
| Component/s: | services |
| Affects Version/s: | 2.1.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Edwin Guilbert | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Magnolia 5.7.1 Java 9.0.1 |
||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| 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 |