You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2017/07/13 11:34:00 UTC

[jira] [Resolved] (CXF-7443) ClassCastException in org.apache.cxf.transport.http.Headers

     [ https://issues.apache.org/jira/browse/CXF-7443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin resolved CXF-7443.
-----------------------------------
       Resolution: Fixed
         Assignee: Sergey Beryozkin
    Fix Version/s: 3.2.0
                   3.1.13
                   3.0.15

Please try 3.1.13-SNAPSHOT 

> ClassCastException in org.apache.cxf.transport.http.Headers
> -----------------------------------------------------------
>
>                 Key: CXF-7443
>                 URL: https://issues.apache.org/jira/browse/CXF-7443
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.5, 3.1.7
>            Reporter: Winter
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.0.15, 3.1.13, 3.2.0
>
>
> WebClient client = WebClient.create(endpointURL, providers).path(path)
> 									.type(mediaType).accept(mediaType);
> Response response = client.post(serviceStatusRequest);
> yields ClassCastException in Headers.logProtocolHeaders(Level level):
> Caused by: java.lang.ClassCastException: javax.ws.rs.core.MediaType cannot be cast to java.lang.String
>         at org.apache.cxf.transport.http.Headers.logProtocolHeaders(Headers.java:282)
>         at org.apache.cxf.transport.http.Headers.setProtocolHeadersInConnection(Headers.java:325)
> There is a workaround: set log level > FINE



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)