johnzon declares

@Produces("application/json")
@Consumes("application/json")


so it shouldnt match the content-type of your request


this is what is weird


a workaround is to configure it in openejb-jar.xml/resources.xml and
add to ignorable types MultipartBody



Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-12-28 16:12 GMT+01:00 Kirys <[email protected]>:

> On 28/12/2016 15:31, Romain Manni-Bucau wrote:
>
>> looks good,
>>
>> think the easiest is to debug in
>> https://github.com/apache/cxf/blob/2.6.x-fixes/rt/frontend/j
>> axrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java#L1019
>> to identify the issue
>>
>
>
> ok from what i see reading the code this maybe because somehow The first
> provider that declare that it could handle this is the jonhzon one.
> It tries to parse the full body as a json (tried with an empty body)
> the question now is why is this processed before the multipart?
>
> I'll try experimenting
>
> side note: this handling changed a bit for jaxrs 2 so tomee 7 can behave
>> better maybe
>>
>>
> yeah maybe but is not something i can do easily, and maybe this could not
> solve it.
> Thank You
> I'll let you know
>

Reply via email to