Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8187

Ref count exception when throwing NettyHttpOperationFailedException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.14.1
    • None
    • camel-netty4-http
    • None
    • Unknown

    Description

      When catching "NettyHttpOperationFailedException" with "onException" - I've noticed that I'm getting:
      'io.netty.util.IllegalReferenceCountException' - cannot evaluate io.netty.handler.codec.http.HttpObjectAggregator$AggregatedFullHttpRequest.toString() - (As can be seen on screenshot.jpeg attached file)

      I've created a small app to reproduce the issue - you'll need to run the UT on the attached zip.
      when stopping on debug inside the onException clause and trying to inspect the exchange "In" message you can see the exception.

      Thx,
      Amit.

      P.S originally I've got the exception thrown during my real application running. in the example I'm setting the netty exception on the exchange "artificially" - the result however is the same.

      Attachments

        1. bug-reproduce-two.zip
          7 kB
          Amit R
        2. Screenshot.jpg
          126 kB
          Amit R

        Activity

          People

            njiang Willem Jiang
            amitr Amit R
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: