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

CXF endpoint doesn't work with try/catch when @Oneway is used

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 2.20.1
    • Fix Version/s: 2.21.0
    • Component/s: camel-cxf
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Although this issue has been fixed, it is still not fully functional.
      When

      @Oneway 
      

      annotation is used in Endpoint, then Exception is hidden.

      Of course exceptions can happen in OneWay communication (take host not found, or timeout exceptions for example) so please fix it.

      I have attached working test case.
      1) Unzip it
      2) run: ./gradlew clean test -> It will fail
      3) Open src\main\java\sample\ws\service\Hello.java
      4) remove first (yes, one) slash from line 22 which will uncomment working solution
      5) run: ./gradlew clean test -> It will pass

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              eximius Kamil
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: