Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.20.0
-
Component/s: camel-undertow
-
Labels:None
-
Estimated Complexity:Unknown
Description
Actually camel-undertow doesn't work in OSGi.
java.lang.IllegalArgumentException: UT001031: Unknown scheme in URI http://localhost:8010/test
at io.undertow.client.UndertowClient.getClientProvider(UndertowClient.java:163) [26:io.undertow.core:1.4.18.Final]
Because it is using
UndertowClient.getInstance(getCamelContext().getApplicationContextClassLoader())
and it cannot find its providers. We should use
UndertowClient.getInstance()