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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 2.20.1
    • 2.21.0
    • camel-cxf
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: