cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Winter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7443) ClassCastException in org.apache.cxf.transport.http.Headers
Date Wed, 12 Jul 2017 12:03:00 GMT

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

Winter commented on CXF-7443:
-----------------------------

we are on 3.1.7 now. Don't know if it is in higher versions too

> 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
>            Priority: Minor
>
> 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)

Mime
View raw message