Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.22.0
-
None
-
Unknown
Description
Say you have:
<camel:sslContextParameters id="sslContextParameters"> <camel:trustManagers> <camel:keyStore password="redhat123" type="JKS" ... /> </camel:trustManagers> </camel:sslContextParameters> .. and .. <bean id="myundertow" class="org.apache.camel.component.undertow.UndertowComponent"> <property name="sslContextParameters" value="#{sslContextParameters}"/> </bean> .. and .. <to id="_to1" pattern="InOut" uri="rest-swagger:swagger.json#getMembersList?basePath=/membersweb/rest/v2&componentName=myundertow&host=https://myapp.demolab.local:443”/>
It will fail with
java.io.IOException: UT000065: SSL must be specified to connect to a https URL
at io.undertow.client.http.HttpClientProvider.connect(HttpClientProvider.java:72)
at io.undertow.client.http.HttpClientProvider.connect(HttpClientProvider.java:60)
at io.undertow.client.UndertowClient.connect(UndertowClient.java:133)
at org.apache.camel.component.undertow.UndertowProducer.process(UndertowProducer.java:165)
at org.apache.camel.component.rest.RestProducer.process(RestProducer.java:86)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197)
at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)