You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Timothy James Ward (Jira)" <ji...@apache.org> on 2021/07/21 13:51:00 UTC

[jira] [Commented] (CXF-8565) Unable to use transport-http-petty-client with JAX-RS due to NPE

    [ https://issues.apache.org/jira/browse/CXF-8565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17384909#comment-17384909 ] 

Timothy James Ward commented on CXF-8565:
-----------------------------------------

Tests and a proposed fix available at [https://github.com/apache/cxf/pull/828|https://github.com/apache/cxf/pull/828]

> Unable to use transport-http-petty-client with JAX-RS due to NPE
> ----------------------------------------------------------------
>
>                 Key: CXF-8565
>                 URL: https://issues.apache.org/jira/browse/CXF-8565
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 3.4.4
>            Reporter: Timothy James Ward
>            Priority: Major
>
> When attempting to use the Netty transport in a JAX-RS client I encountered a NullPointerException from the CXF internals. This seems to be because CXF is trying to set a Content-Type for a GET request which has no body. As a result CXF passes null as the header value, which is not valid in the Netty Request.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)