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

LocalDestination with DirectDispatch does not work with interceptors that decorate the OutputStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.2, 2.4
    • 2.4.1, 2.3.5
    • Transports
    • None
    • Found in CXF 2.3.2, confirmed the code is the same in 2.4.0
      Windows 2003 Server x64

    Description

      Create a Server that uses the local transport.
      Set property org.apache.cxf.transport.local.LocalConduit.directDispatch
      Add an Out interceptor to the Server that decorates the OutputStream. For example GZIPOutInterceptor.

      Expected:
      decorated OutputStream to work.

      Actual:
      ClassCastException

      Cause:

      org.apache.cxf.transport.local.LocalDestination.close(Message)
      CachedOutputStream stream = (CachedOutputStream)message.getContent(OutputStream.class);
      

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            pkedvessy Peter Kedvessy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: