Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
2.23.2
-
None
-
None
-
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>
as you can see I included all possible libraries containing that class