-
Bug
-
Resolution: Unresolved
-
Normal
-
CSB-4.4
-
None
-
False
-
-
False
-
-
-
-
Very Likely
-
0
The address is not getting resolved in the following bean which throws an exception at runtime (when the route is executed, not when the application starts):
<jaxws:client name="cxfClient" id="cxfClient" serviceClass="org.example.MyService" address="${my.address}" />
Caused by: java.net.URISyntaxException: Illegal character in path at index 1: ${my.address}
Workaround:
Delegating the address resolution to a separate String bean fixes the issue.
<jaxws:client name="cxfClient" id="cxfClient" serviceClass="org.example.MyService" address="#address" /> <bean name="address" class="java.lang.String"> <constructor-arg value="${my.address}"/> </bean>