Hi,
i have the below mentioned configuration
<int:chain input-channel="c1" id="chain1">
<int:header-enricher>
<int:header name="Accept" value="application/xml"/>
<int:header name="Content-Type" value="application/xml"/>
</int:header-enricher>
<int-http:outbound-gateway url="${serviceURL}a/b" http-method="POST" expected-response-type="com.m.a.X" />
</int:chain>
This keeps on failing even though i have a PropertyPlaceholderConfigurer with the url in the properties file.
Caused by: java.lang.IllegalArgumentException: Map has no value for 'serviceURL'
at org.springframework.web.util.UriComponents$MapTemp lateVariables.getValue(UriComponents.java:251)
at org.springframework.web.util.UriComponents.expandU riComponent(UriComponents.java:188)
at org.springframework.web.util.HierarchicalUriCompon ents$FullPathComponent.expand(HierarchicalUriCompo nents.java:662)
at org.springframework.web.util.HierarchicalUriCompon ents.expandInternal(HierarchicalUriComponents.java :314)
at org.springframework.web.util.HierarchicalUriCompon ents.expandInternal(HierarchicalUriComponents.java :44)
at org.springframework.web.util.UriComponents.expand( UriComponents.java:154)
at org.springframework.web.util.UriTemplate.expand(Ur iTemplate.java:101)
at org.springframework.web.client.RestTemplate.execut e(RestTemplate.java:454)
at org.springframework.web.client.RestTemplate.exchan ge(RestTemplate.java:402)
at org.springframework.integration.http.outbound.Http RequestExecutingMessageHandler.handleRequestMessag e(HttpRequestExecutingMessageHandler.java:351)
Can you help?


Reply With Quote
