camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: getting exception for appending option providers=#cors-filter in camel cxfrs
Date Thu, 27 Aug 2015 13:53:38 GMT
Hi

There's no need to set this provider from the uri given that it is 
already registered on the rsServer bean.
However, it may be useful for simpler URI-only configurations, I'll have 
a look...

Sergey
On 27/08/15 10:26, chaituu wrote:
> getting below error when i used camel 2.15.2 version .Is it required to
> append cors-filter in the from endpoint <from
> uri="cxfrs://bean://dsServer?providers=#cors-filter"/> as I have already
> referenced cors-filter in <cxf:providers> tag in the CxfRs endpoint.
>
> when i removed providers=#cors-filter option in cxfrs://bean://dsServer then
> its working fine.
>
>
> Caused by: java.lang.IllegalArgumentException: Could not find a suitable
> setter for property: providers as there isn't a setter method with same
> type: java.lang.String nor type conversion possible: No type converter
> available to convert from type: java.lang.String to the required type:
> java.util.List with value #cors-filter
>
>   <cxf:rsServer id="dsServer" address="http://0.0.0.0:10089/test"
>                    serviceClass="com.xxx.xxx.xx.testservice"
>                    loggingFeatureEnabled="true" loggingSizeLimit="20">
>          <cxf:providers>
>              <ref bean="cors-filter"/>
>          </cxf:providers>
>      </cxf:rsServer>
> 	
> 	
> 	<camel:camelContext xmlns="http://camel.apache.org/schema/spring" id="xxxx"
>                          trace="true">
>           <route id="test">
>              <from uri="cxfrs://bean://dsServer?providers=#cors-filter"/>
>              <setBody>
>                  <constant>abcd</constant>
>              </setBody>
>              <to uri="log:com.xxx?level=INFO"/>
>          </route>
>      </camel:camelContext>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/getting-exception-for-appending-option-providers-cors-filter-in-camel-cxfrs-tp5771009.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Mime
View raw message