Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7443

ClassCastException in org.apache.cxf.transport.http.Headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.5, 3.1.7
    • 3.0.15, 3.1.13, 3.2.0
    • JAX-RS
    • None
    • Unknown

    Description

      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

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            wow2 Winter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: