Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-1585

org.apache.servicemix.cxf.transport.nmr.NMRConduitOutputStream.commitOutputMessage() does not propagate exception.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.5.3, 4.6.0
    • cxf-nmr
    • CXF-NMR transport

    • Patch Available

    Description

      There is a bug in

      org.apache.servicemix.cxf.transport.nmr.NMRConduitOutputStream.java
      private void commitOutputMessage() throws IOException {
          try {
          ...
          } catch (Exception e) {
              e.printStackTrace();
              new IOException(e.toString());
          }
      

      Notice it creates a new IOException but never throws it. As a result the error is ignored completely.

      Attachments

        1. SMX4-1585.patch
          0.7 kB
          Torsten Mielke
        2. SMX4-1585.patch
          0.8 kB
          Torsten Mielke

        Activity

          People

            ffang Freeman Yue Fang
            tmielke Torsten Mielke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: