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

can't find class org.apache.camel.common.http.HttpOperationFailedException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 2.23.2
    • Fix Version/s: None
    • Component/s: camel-http4
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I'm calling an external system and trying to catch the http exception but can't start the route as I receive the following error:

       

      Caused by: java.lang.ClassNotFoundException: org.apache.camel.common.http.HttpOperationFailedException

      this is the relevant part of the route I'm executing and I've attached the pom.xml

       

      <route id="A4-A5-flow"> <from id="commit-orders" uri="direct:a3-to-a4" /> <setHeader headerName="CamelHttpMethod"> <constant>POST</constant> </setHeader> <to uri="http://localhost:8090/api/commitOrder?bridgeEndpoint=true" /> <!-- exception handling http calls --> <onException> <exception>org.apache.camel.common.http.HttpOperationFailedException</exception> <redeliveryPolicy maximumRedeliveries="3" redeliveryDelay="2000" /> <handled> <constant>true</constant> </handled> </onException> <unmarshal> <custom ref="my-reply" /> </unmarshal> <to uri="direct:a5-to-a6" /> </route>
      

      pom.xml

      as you can see I included all possible libraries containing that class

       

        Attachments

        1. pom.xml
          9 kB
          Luca Ferrari

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lucamaf Luca Ferrari
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: