Incorrect order of *Provider #2924
-
Hi guys! So seems that that Resteasy doesn't see JSON properties. I was debuged the code and find out, that for parsing JSON, resteasy uploads the list of MessageBodyReader, like: class: ResteasyProviderFactory And I have different order of those MessageBodyReaders. In my local PC is org.jboss.resteasy.plugins.providers.jackson.ResteasyJacksonProvider But in remote server the order is different: org.jboss.resteasy.plugins.providers.jaxb.json.JettisonXmlRootElementProvider Somehow this JettisonXmlRootElementProvider comes at fist position and breaks the JSON parsing. I came deeper and foud that Providers are filling in org.jboss.resteasy.core.MediaTypeMap. They are uploading and sorting: Collections.sort(matches, new MediaTypeMap.TypedEntryComparator(type)); And the order of this resources is different in different environments! PS. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Are you targeting a specific container? That is a quite old version of RESTEasy. |
Beta Was this translation helpful? Give feedback.
Are you targeting a specific container? That is a quite old version of RESTEasy.